]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: relax ht operation checks for mesh
authorBob Copeland <me@bobcopeland.com>
Mon, 25 Jun 2018 01:10:49 +0000 (21:10 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 29 Jun 2018 07:39:30 +0000 (09:39 +0200)
commit6fa187b2998f304f7d7794759a76edafd4efb380
treecd775c0f97134a5c2898d645ae0efa25a6768a17
parent0911de9304acbb3b3389d4e6d765455ffd836867
nl80211: relax ht operation checks for mesh

Commit 127d200a0042, "nl80211: correct checks for
NL80211_MESHCONF_HT_OPMODE value") relaxed the range for the HT
operation field in meshconf, while also adding checks requiring
the non-greenfield and non-ht-sta bits to be set in certain
circumstances.  The latter bit is actually reserved for mesh BSSes
according to Table 9-168 in 802.11-2016, so in fact it should not
be set.

wpa_supplicant sets these bits because the mesh and AP code share
the same implementation, but authsae does not.  As a result, some
meshconf updates from authsae which set only the NONHT_MIXED
protection bits were being rejected.

In order to avoid breaking userspace by changing the rules again,
simply accept the values with or without the bits set, and mask
off the reserved bit to match the spec.

While in here, update the 802.11-2012 reference to 802.11-2016.

Fixes: 127d200a0042 ("nl80211: correct checks for NL80211_MESHCONF_HT_OPMODE value")
Cc: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Bob Copeland <bobcopeland@fb.com>
Reviewed-by: Masashi Honma <masashi.honma@gmail.com>
Reviewed-by: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c