]> 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)
commit590e3e30592276ea2444577d668f72ec472ff302
treef2f0f0b741aa0b1ffaa2a95c0533d1eeba745868
parentd1fc7769bd4ae02589c366ae3c70091e3943b0e0
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