• B
    nl80211: relax ht operation checks for mesh · 188f60ab
    Bob Copeland 提交于
    Commit 9757235f, "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: 9757235f ("nl80211: correct checks for NL80211_MESHCONF_HT_OPMODE value")
    Cc: Masashi Honma <masashi.honma@gmail.com>
    Signed-off-by: NBob Copeland <bobcopeland@fb.com>
    Reviewed-by: NMasashi Honma <masashi.honma@gmail.com>
    Reviewed-by: NMasashi Honma <masashi.honma@gmail.com>
    Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
    188f60ab
nl80211.c 422.5 KB