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
This commit is contained in:
Srinivas Girigowda 2021-02-16 15:45:42 -08:00
commit 1f44d239af

View file

@ -7731,11 +7731,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(adapter);
if (vdev) {