From 62515940d17fbc775e151c763049ff64c20d8b47 Mon Sep 17 00:00:00 2001 From: Deeksha Gupta Date: Wed, 14 Oct 2020 12:26:09 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index d2d3f3a67855..20541d41d4b4 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -8193,9 +8193,13 @@ static void hdd_stop_p2p_go(struct hdd_adapter *adapter) static inline void hdd_delete_sta(struct hdd_adapter *adapter) { } + #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); } /**