소스 검색

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
Deeksha Gupta 4 년 전
부모
커밋
cb2ce562eb
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      core/hdd/src/wlan_hdd_main.c

+ 5 - 1
core/hdd/src/wlan_hdd_main.c

@@ -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);
 }
 }
 
 
 /**
 /**