qcacld-3.0: Add cfg80211_stop_iface API to stop P2P Go after SSR

Currently, In P2P Connection, After SSR P2P CLI is
disconnected but P2P GO is still showing connected
with the P2P CLI in kernel 5.4. Beacause cfg80211_ap_stopped
API does not work for kernel 5.4.

Add the cfg80211_stop_iface API to stop P2P GO after
SSR in kernel 5.4.

Change-Id: I94adadb0b3314a571f6a16a78285d444c007d9d5
CRs-Fixed: 2802830
This commit is contained in:
Deeksha Gupta
2020-10-14 12:26:09 +05:30
committed by snandini
parent 99c06bb032
commit cb2ce562eb

View File

@@ -8197,9 +8197,13 @@ static void hdd_stop_p2p_go(struct hdd_adapter *adapter)
static inline void hdd_delete_sta(struct hdd_adapter *adapter) static inline void hdd_delete_sta(struct hdd_adapter *adapter)
{ {
} }
#else #else
static inline void hdd_stop_p2p_go(struct hdd_adapter *adapter) static void hdd_stop_p2p_go(struct hdd_adapter *adapter)
{ {
hdd_debug("[SSR] send stop iface ap to supplicant");
cfg80211_stop_iface(adapter->hdd_ctx->wiphy, &adapter->wdev,
GFP_KERNEL);
} }
/** /**