aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-07 15:37:29 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-15 03:41:36 -0500
commit2c9b735982ee8a2d34e7eeb3e26b683f81872fdb (patch)
treef2f0f0b741aa0b1ffaa2a95c0533d1eeba745868 /net/mac80211/ieee80211_i.h
parentf2d9330ee820b01e2b1caf46370bc7963d259908 (diff)
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>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 892bac64a189..d1074442f1b5 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1613,6 +1613,10 @@ int __must_check
1613ieee80211_vif_use_channel(struct ieee80211_sub_if_data *sdata, 1613ieee80211_vif_use_channel(struct ieee80211_sub_if_data *sdata,
1614 const struct cfg80211_chan_def *chandef, 1614 const struct cfg80211_chan_def *chandef,
1615 enum ieee80211_chanctx_mode mode); 1615 enum ieee80211_chanctx_mode mode);
1616int __must_check
1617ieee80211_vif_change_bandwidth(struct ieee80211_sub_if_data *sdata,
1618 const struct cfg80211_chan_def *chandef,
1619 u32 *changed);
1616void ieee80211_vif_release_channel(struct ieee80211_sub_if_data *sdata); 1620void ieee80211_vif_release_channel(struct ieee80211_sub_if_data *sdata);
1617void ieee80211_vif_vlan_copy_chanctx(struct ieee80211_sub_if_data *sdata); 1621void ieee80211_vif_vlan_copy_chanctx(struct ieee80211_sub_if_data *sdata);
1618void ieee80211_vif_copy_chanctx_to_vlans(struct ieee80211_sub_if_data *sdata, 1622void ieee80211_vif_copy_chanctx_to_vlans(struct ieee80211_sub_if_data *sdata,