Browse Source

qcacld-3.0: Allow twt get_params for SAP mode with dialog_id 255

Allow twt get_params command with dialog_id 255 to get all session
parameters in user space.

Change-Id: I1b5dbc742c65f2445681aebf1f69255eaf6e1954
CRs-Fixed: 2882925
Nirav Shah 4 years ago
parent
commit
de64ab6c6e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      core/hdd/src/wlan_hdd_twt.c

+ 3 - 1
core/hdd/src/wlan_hdd_twt.c

@@ -765,7 +765,9 @@ static int hdd_twt_get_session_params(struct hdd_adapter *adapter,
 			  QDF_MAC_ADDR_REF(params[0].peer_mac));
 	}
 
-	if (!ucfg_mlme_is_twt_setup_done(adapter->hdd_ctx->psoc,
+	if ((adapter->device_mode != QDF_SAP_MODE ||
+	     params[0].dialog_id != WLAN_ALL_SESSIONS_DIALOG_ID) &&
+	    !ucfg_mlme_is_twt_setup_done(adapter->hdd_ctx->psoc,
 					 &hdd_sta_ctx->conn_info.bssid,
 					 params[0].dialog_id)) {
 		hdd_debug("vdev%d: TWT session %d setup incomplete",