diff options
author | Johannes Berg | 2018-12-15 10:03:16 +0100 |
---|---|---|
committer | Johannes Berg | 2018-12-19 09:41:10 +0100 |
commit | 93bc8ac49e82a329160604556b805b7fa614ff9e (patch) | |
tree | 4e51fba2a2618693d9d0ff47cdbe9f40007eda34 /include/net/rose.h | |
parent | mac80211: fix radiotap vendor presence bitmap handling (diff) | |
download | kernel-qcow2-linux-93bc8ac49e82a329160604556b805b7fa614ff9e.tar.gz kernel-qcow2-linux-93bc8ac49e82a329160604556b805b7fa614ff9e.tar.xz kernel-qcow2-linux-93bc8ac49e82a329160604556b805b7fa614ff9e.zip |
cfg80211: fix ieee80211_get_vht_max_nss()
Fix two bugs in ieee80211_get_vht_max_nss():
* the spec says we should round down
(reported by Nissim)
* there's a double condition, the first one is wrong,
supp_width == 0 / ext_nss_bw == 2 is valid in 80+80
(found by smatch)
Fixes: b0aa75f0b1b2 ("ieee80211: add new VHT capability fields/parsing")
Reported-by: Nissim Bendanan <nissimx.bendanan@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/rose.h')
0 files changed, 0 insertions, 0 deletions