Sfoglia il codice sorgente

qcacld-3.0: Use local peer mac address for twt setup check

Currently, in twt get status command, params->peer_mac is used
check if twt setup exists for this peer mac, but if the input
is broadcast dialog id then params->peer_mac gets updated to
broadcast mac address and twt setup done check fails.

Fix is to use local peer mac address for twt setup check.

Change-Id: Iee98091bc86cfd48471b07464cda39666dd17ee3
CRs-Fixed: 3138601
David Oladunjoye 3 anni fa
parent
commit
421f6b4c63
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      os_if/twt/src/osif_twt_ext_req.c

+ 1 - 1
os_if/twt/src/osif_twt_ext_req.c

@@ -2011,7 +2011,7 @@ osif_twt_sta_get_session_params(struct wlan_objmgr_vdev *vdev,
 		qdf_copy_macaddr(&params[0].peer_mac, &bcast_addr);
 	}
 
-	if (!ucfg_twt_is_setup_done(psoc, &params[0].peer_mac,
+	if (!ucfg_twt_is_setup_done(psoc, &peer_mac,
 				    params[0].dialog_id)) {
 		osif_debug("vdev%d: TWT session %d setup incomplete", vdev_id,
 			   params[0].dialog_id);