mac80211: fix off-by-one in llid check.
authorBob Copeland <me@bobcopeland.com>
Tue, 5 Nov 2013 19:16:49 +0000 (11:16 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 19:49:48 +0000 (20:49 +0100)
commit3cde38e7f3491ea62429556149713b7a875c9ac2
tree2173aa3a3f80e82a6578a08c54d4ce8d615193a3
parent1daa37c7ba01bd788148d6a9dc5d6fb491a20931
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>
net/mac80211/mesh_plink.c