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)
commit2c9b735982ee8a2d34e7eeb3e26b683f81872fdb
treef2f0f0b741aa0b1ffaa2a95c0533d1eeba745868
parentf2d9330ee820b01e2b1caf46370bc7963d259908
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