Commit 3cde38e7 authored by Bob Copeland's avatar Bob Copeland Committed by Johannes Berg
Browse files

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

According to IEEE 802.11-2012 (, 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: default avatarBob Copeland <>
Signed-off-by: default avatarJohannes Berg <>
parent 1daa37c7
......@@ -825,7 +825,7 @@ void mesh_rx_plink_frame(struct ieee80211_sub_if_data *sdata,
event = CLS_ACPT;
else if (sta->plid != plid)
event = CLS_IGNR;
else if (ie_len == 7 && sta->llid != llid)
else if (ie_len == 8 && sta->llid != llid)
event = CLS_IGNR;
event = CLS_ACPT;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment