| #include <linux/ieee80211.h> |
| #include <linux/export.h> |
| #include <net/cfg80211.h> |
| static int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev, |
| 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; |
| rdev_set_qos_map(rdev, dev, NULL); |
| int cfg80211_stop_ap(struct cfg80211_registered_device *rdev, |
| struct wireless_dev *wdev = dev->ieee80211_ptr; |
| err = __cfg80211_stop_ap(rdev, dev); |