]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mac80211: Use proper chan_width enum in sta opmode event
authortamizhr@codeaurora.org <tamizhr@codeaurora.org>
Tue, 27 Mar 2018 13:46:17 +0000 (19:16 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 29 Mar 2018 08:19:59 +0000 (10:19 +0200)
commit97f5f4254a61d7a104b5e609a6a0d9a10c73d29e
tree83e2dc1aa0562a897c7bd83fe63d58575c271b38
parent57566b20033f23bdc9f25d5fa4c36a7287aa08d2
mac80211: Use proper chan_width enum in sta opmode event

Bandwidth change value reported via nl80211 contains mac80211
specific enum value(ieee80211_sta_rx_bw) and which is not
understand by userspace application. Map the mac80211 specific
value to nl80211_chan_width enum value to avoid using wrong value
in the userspace application. And used station's ht/vht capability
to map IEEE80211_STA_RX_BW_20 and IEEE80211_STA_RX_BW_160 with
proper nl80211 value.

Signed-off-by: Tamizh chelvam <tamizhr@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/rx.c
net/mac80211/vht.c