Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00709514 authored by Deeksha Gupta's avatar Deeksha Gupta Committed by snandini
Browse files

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
parent fb81c26a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -7710,9 +7710,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);
}

/**