]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: add ieee80211_vif_change_bandwidth
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Feb 2013 20:37:29 +0000 (21:37 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Feb 2013 08:41:36 +0000 (09:41 +0100)
commit50083d8460d1b983f7903ed987cb47c3d23fd2a2
treef2f0f0b741aa0b1ffaa2a95c0533d1eeba745868
parent92069f70b14dbb5b21a4cba92535d9d397d8df74
mac80211: add ieee80211_vif_change_bandwidth

For HT and VHT the current bandwidth can change,
add the function ieee80211_vif_change_bandwidth()
to take care of this. It returns a failure if the
new bandwidth isn't compatible with the existing
channel context, the caller has to handle that.
When it happens, also inform the driver that the
bandwidth changed for this virtual interface (no
drivers would actually care today though.)

Changing to/from HT/VHT isn't allowed though.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/chan.c
net/mac80211/ieee80211_i.h