ANDROID: GKI: cfg80211: Add AP stopped interface
AP stopped interface can be used to indicate that the AP mode has
stopped functioning, WLAN driver may have encountered errors that has
forced the driver to stop the AP mode.
When the driver is in P2P-Go mode, and when it goes thru automatic
recovery from firmware crashes, it uses this interface to notify the
userspace that the group has been deleted.
CRs-Fixed: 1078172
Bug: 150894598
Test: make
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
Change-Id: Id566b35cd0afdb7277fbd2aef74601bfabc65e42
(cherry picked from commit 44643035d7
)
Signed-off-by: Hridya Valsaraju <hridya@google.com>
This commit is contained in:
parent
337a000671
commit
cf8be8db9b
2 changed files with 17 additions and 0 deletions
|
@ -6398,6 +6398,13 @@ void cfg80211_report_wowlan_wakeup(struct wireless_dev *wdev,
|
|||
*/
|
||||
void cfg80211_crit_proto_stopped(struct wireless_dev *wdev, gfp_t gfp);
|
||||
|
||||
/**
|
||||
* cfg80211_ap_stopped - notify userspace that AP mode stopped
|
||||
* @netdev: network device
|
||||
* @gfp: context flags
|
||||
*/
|
||||
void cfg80211_ap_stopped(struct net_device *netdev, gfp_t gfp);
|
||||
|
||||
/**
|
||||
* ieee80211_get_num_supported_channels - get number of channels device has
|
||||
* @wiphy: the wiphy
|
||||
|
|
|
@ -16068,6 +16068,16 @@ void cfg80211_crit_proto_stopped(struct wireless_dev *wdev, gfp_t gfp)
|
|||
}
|
||||
EXPORT_SYMBOL(cfg80211_crit_proto_stopped);
|
||||
|
||||
void cfg80211_ap_stopped(struct net_device *netdev, gfp_t gfp)
|
||||
{
|
||||
struct wireless_dev *wdev = netdev->ieee80211_ptr;
|
||||
struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy);
|
||||
|
||||
nl80211_send_mlme_event(rdev, netdev, NULL, 0,
|
||||
NL80211_CMD_STOP_AP, gfp, -1);
|
||||
}
|
||||
EXPORT_SYMBOL(cfg80211_ap_stopped);
|
||||
|
||||
void nl80211_send_ap_stopped(struct wireless_dev *wdev)
|
||||
{
|
||||
struct wiphy *wiphy = wdev->wiphy;
|
||||
|
|
Loading…
Reference in a new issue