瀏覽代碼

qcacld-3.0: Inform teardown all TWT sessions in P2P client mode

When SSR happens, Inform the user space about teardown all TWT sessions
in P2P client mode also.

Change-Id: I190529724519a2520dfa190fcb10cafc398745a5
CRs-Fixed: 2879404
Srinivas Girigowda 4 年之前
父節點
當前提交
d1a00dcdd5
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      core/hdd/src/wlan_hdd_main.c

+ 2 - 3
core/hdd/src/wlan_hdd_main.c

@@ -7645,11 +7645,10 @@ QDF_STATUS hdd_reset_all_adapters(struct hdd_context *hdd_ctx)
 
 		hdd_adapter_abort_tx_flow(adapter);
 
-		if (adapter->device_mode == QDF_STA_MODE)
-			hdd_send_twt_del_all_sessions_to_userspace(adapter);
-
 		if ((adapter->device_mode == QDF_STA_MODE) ||
 		    (adapter->device_mode == QDF_P2P_CLIENT_MODE)) {
+			hdd_send_twt_del_all_sessions_to_userspace(adapter);
+
 			/* Stop tdls timers */
 			vdev = hdd_objmgr_get_vdev_by_user(adapter,
 							   WLAN_OSIF_TDLS_ID);