aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/mlme.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2012-06-29 06:46:58 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-06-29 07:39:15 -0400
commitf4489ebeffa436c8427a20e2f05004e783708cde (patch)
treef113512858b0114cc108375b81cab004e8a8369b /net/wireless/mlme.c
parentac800140c20e7ae51117e71289065bedd4930fc2 (diff)
cfg80211: add channel tracking for AP and mesh
We need to know which channel is used by a running AP and mesh for channel context accounting and finding matching/active interface combination. STA/IBSS have current_bss already which allows us to check which channel a vif is tuned to. Non-fixed channel IBSS can be handled with additional changes. Monitor mode is going to be handled differently. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r--net/wireless/mlme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index da4406f11929..a7882eb8c46e 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -947,6 +947,7 @@ void cfg80211_ch_switch_notify(struct net_device *dev, int freq,
947 if (WARN_ON(!chan)) 947 if (WARN_ON(!chan))
948 goto out; 948 goto out;
949 949
950 wdev->channel = chan;
950 nl80211_ch_switch_notify(rdev, dev, freq, type, GFP_KERNEL); 951 nl80211_ch_switch_notify(rdev, dev, freq, type, GFP_KERNEL);
951out: 952out:
952 wdev_unlock(wdev); 953 wdev_unlock(wdev);