Commit 3cde38e7f3491ea62429556149713b7a875c9ac2

Authored by Bob Copeland
Committed by Johannes Berg
1 parent 1daa37c7ba

mac80211: fix off-by-one in llid check.

According to IEEE 802.11-2012 (8.4.2.104), no peering
management element exists with length 7. This code is checking
to see if llid is present to ignore close frames with different
llid, which would be IEs with length 8.

Signed-off-by: Bob Copeland <bob@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/mac80211/mesh_plink.c
... ... @@ -825,7 +825,7 @@
825 825 event = CLS_ACPT;
826 826 else if (sta->plid != plid)
827 827 event = CLS_IGNR;
828   - else if (ie_len == 7 && sta->llid != llid)
  828 + else if (ie_len == 8 && sta->llid != llid)
829 829 event = CLS_IGNR;
830 830 else
831 831 event = CLS_ACPT;