Browse Source

qcacld-3.0: Always print SAE TX addr

Enhance the print of SAE TA, to always log the address passed to
cfg80211_external_auth_request().

Change-Id: I0765b3a0465d7271b3bf42bc7498d4b7e673c88e
CRs-Fixed: 3357863
Lin Bai 2 years ago
parent
commit
403aafca53
1 changed files with 6 additions and 5 deletions
  1. 6 5
      core/hdd/src/wlan_hdd_assoc.c

+ 6 - 5
core/hdd/src/wlan_hdd_assoc.c

@@ -242,15 +242,16 @@ void wlan_hdd_sae_copy_ta_addr(struct cfg80211_external_auth_params *params,
 	status = ucfg_cm_get_sae_auth_ta(adapter->hdd_ctx->pdev,
 					 sae_info->vdev_id,
 					 &ta);
-	if (QDF_IS_STATUS_SUCCESS(status)) {
+	if (QDF_IS_STATUS_SUCCESS(status))
 		qdf_mem_copy(params->tx_addr, ta.bytes, QDF_MAC_ADDR_SIZE);
-		hdd_debug("ta:" QDF_MAC_ADDR_FMT,
-			  QDF_MAC_ADDR_REF(params->tx_addr));
-	} else if (wlan_vdev_mlme_is_mlo_vdev(adapter->vdev)) {
+	else if (wlan_vdev_mlme_is_mlo_vdev(adapter->vdev))
 		qdf_mem_copy(params->tx_addr,
 			     wlan_vdev_mlme_get_linkaddr(adapter->vdev),
 			     QDF_MAC_ADDR_SIZE);
-	}
+
+	hdd_debug("status:%d ta:" QDF_MAC_ADDR_FMT, status,
+		  QDF_MAC_ADDR_REF(params->tx_addr));
+
 }
 #else
 static inline