aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/ap.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/ap.c')
-rw-r--r--net/wireless/ap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/wireless/ap.c b/net/wireless/ap.c
index 68602be07cc1..3e02ade508d8 100644
--- a/net/wireless/ap.c
+++ b/net/wireless/ap.c
@@ -7,7 +7,7 @@
7 7
8 8
9static int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev, 9static int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev,
10 struct net_device *dev) 10 struct net_device *dev, bool notify)
11{ 11{
12 struct wireless_dev *wdev = dev->ieee80211_ptr; 12 struct wireless_dev *wdev = dev->ieee80211_ptr;
13 int err; 13 int err;
@@ -30,20 +30,21 @@ static int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev,
30 memset(&wdev->chandef, 0, sizeof(wdev->chandef)); 30 memset(&wdev->chandef, 0, sizeof(wdev->chandef));
31 wdev->ssid_len = 0; 31 wdev->ssid_len = 0;
32 rdev_set_qos_map(rdev, dev, NULL); 32 rdev_set_qos_map(rdev, dev, NULL);
33 nl80211_send_ap_stopped(wdev); 33 if (notify)
34 nl80211_send_ap_stopped(wdev);
34 } 35 }
35 36
36 return err; 37 return err;
37} 38}
38 39
39int cfg80211_stop_ap(struct cfg80211_registered_device *rdev, 40int cfg80211_stop_ap(struct cfg80211_registered_device *rdev,
40 struct net_device *dev) 41 struct net_device *dev, bool notify)
41{ 42{
42 struct wireless_dev *wdev = dev->ieee80211_ptr; 43 struct wireless_dev *wdev = dev->ieee80211_ptr;
43 int err; 44 int err;
44 45
45 wdev_lock(wdev); 46 wdev_lock(wdev);
46 err = __cfg80211_stop_ap(rdev, dev); 47 err = __cfg80211_stop_ap(rdev, dev, notify);
47 wdev_unlock(wdev); 48 wdev_unlock(wdev);
48 49
49 return err; 50 return err;