Browse Source

qcacmn: retry with same num links incase of assoc failure

Currently for any assoc failure the number of links part of the
association is reduced and retried with less number of partner links.

If the failure is due to "Association request rejected temporarily,
try again later" retry to the same with the same number
of partner links instead of downgrading the links.

Change-Id: Id2b50469a5265b0151c000b3bcead2db361ad152
CRs-Fixed: 3708221
Aasir Rasheed 1 year ago
parent
commit
6ecdcfe927
1 changed files with 5 additions and 2 deletions
  1. 5 2
      umac/mlme/connection_mgr/core/src/wlan_cm_connect.c

+ 5 - 2
umac/mlme/connection_mgr/core/src/wlan_cm_connect.c

@@ -1012,8 +1012,11 @@ static bool cm_is_retry_with_same_candidate(struct cnx_mgr *cm_ctx,
 	is_mlo_vdev = wlan_vdev_mlme_is_mlo_vdev(cm_ctx->vdev);
 	mlo_link_num = wlan_mlme_get_sta_mlo_conn_max_num(psoc);
 
-	/* Try once again for the invalid PMKID case without PMKID */
-	if (resp->status_code == STATUS_INVALID_PMKID)
+	/* Try once again for the invalid PMKID case without PMKID or
+	 * Association request rejected temporarily; try again later
+	*/
+	if (resp->status_code == STATUS_INVALID_PMKID ||
+	    resp->status_code == STATUS_ASSOC_REJECTED_TEMPORARILY)
 		goto use_same_candidate;
 
 	sae_connection = key_mgmt & (1 << WLAN_CRYPTO_KEY_MGMT_SAE |