diff options
-rw-r--r-- | net/wireless/core.c | 3 | ||||
-rw-r--r-- | net/wireless/util.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index ddd32afa5f0a..c65f59c952c9 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -810,6 +810,9 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb, | |||
810 | case NL80211_IFTYPE_MESH_POINT: | 810 | case NL80211_IFTYPE_MESH_POINT: |
811 | cfg80211_leave_mesh(rdev, dev); | 811 | cfg80211_leave_mesh(rdev, dev); |
812 | break; | 812 | break; |
813 | case NL80211_IFTYPE_AP: | ||
814 | cfg80211_stop_ap(rdev, dev); | ||
815 | break; | ||
813 | default: | 816 | default: |
814 | break; | 817 | break; |
815 | } | 818 | } |
diff --git a/net/wireless/util.c b/net/wireless/util.c index 316cfd00914f..fc948d0a53f3 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c | |||
@@ -814,6 +814,9 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev, | |||
814 | dev->ieee80211_ptr->mesh_id_up_len = 0; | 814 | dev->ieee80211_ptr->mesh_id_up_len = 0; |
815 | 815 | ||
816 | switch (otype) { | 816 | switch (otype) { |
817 | case NL80211_IFTYPE_AP: | ||
818 | cfg80211_stop_ap(rdev, dev); | ||
819 | break; | ||
817 | case NL80211_IFTYPE_ADHOC: | 820 | case NL80211_IFTYPE_ADHOC: |
818 | cfg80211_leave_ibss(rdev, dev, false); | 821 | cfg80211_leave_ibss(rdev, dev, false); |
819 | break; | 822 | break; |