diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2012-06-29 06:46:58 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-29 07:39:15 -0400 |
commit | f4489ebeffa436c8427a20e2f05004e783708cde (patch) | |
tree | f113512858b0114cc108375b81cab004e8a8369b /net/wireless/ap.c | |
parent | ac800140c20e7ae51117e71289065bedd4930fc2 (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/ap.c')
-rw-r--r-- | net/wireless/ap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/wireless/ap.c b/net/wireless/ap.c index 45199cca63d..fcc60d8dbef 100644 --- a/net/wireless/ap.c +++ b/net/wireless/ap.c | |||
@@ -24,8 +24,10 @@ static int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev, | |||
24 | return -ENOENT; | 24 | return -ENOENT; |
25 | 25 | ||
26 | err = rdev->ops->stop_ap(&rdev->wiphy, dev); | 26 | err = rdev->ops->stop_ap(&rdev->wiphy, dev); |
27 | if (!err) | 27 | if (!err) { |
28 | wdev->beacon_interval = 0; | 28 | wdev->beacon_interval = 0; |
29 | wdev->channel = NULL; | ||
30 | } | ||
29 | 31 | ||
30 | return err; | 32 | return err; |
31 | } | 33 | } |