| #include <linux/ieee80211.h> |
| #include <linux/export.h> |
| #include <net/cfg80211.h> |
| int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev, |
| struct net_device *dev, bool notify) |
| struct wireless_dev *wdev = dev->ieee80211_ptr; |
| if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP && |
| dev->ieee80211_ptr->iftype != NL80211_IFTYPE_P2P_GO) |
| if (!wdev->beacon_interval) |
| err = rdev_stop_ap(rdev, dev); |
| wdev->beacon_interval = 0; |
| memset(&wdev->chandef, 0, sizeof(wdev->chandef)); |
| rdev_set_qos_map(rdev, dev, NULL); |
| nl80211_send_ap_stopped(wdev); |
| int cfg80211_stop_ap(struct cfg80211_registered_device *rdev, |
| struct net_device *dev, bool notify) |
| struct wireless_dev *wdev = dev->ieee80211_ptr; |
| err = __cfg80211_stop_ap(rdev, dev, notify); |