Explorar el Código

qcacld-3.0: Add roaming source and bssid check before issuing disconnect

When fast reassoc command is received with bssid
and channel frequency set to zero, if no candidate
found, STA DUT should disconnect.
Currently STA is disconnecting from current AP but
the also when FW aborts roam.

To fix this add additional check for roaming source and bssid.

Change-Id: I6ee3f5cea6ef3976b9cc5549ab113e4af30484d7
CRs-Fixed: 3441770
Amruta Kulkarni hace 2 años
padre
commit
2514a9e8bd

+ 3 - 3
components/umac/mlme/connection_mgr/core/src/wlan_cm_roam_fw_sync.c

@@ -1257,9 +1257,9 @@ cm_disconnect_roam_abort_fail(struct wlan_objmgr_vdev *vdev,
 		return status;
 
 	if (source == CM_ROAMING_HOST ||
-	    (source == CM_ROAMING_NUD_FAILURE && nud_disconnect) ||
-	     source == CM_ROAMING_LINK_REMOVAL ||
-	     qdf_is_macaddr_zero(bssid))
+	    (source == CM_ROAMING_NUD_FAILURE &&
+	    (nud_disconnect || qdf_is_macaddr_zero(bssid))) ||
+	     source == CM_ROAMING_LINK_REMOVAL)
 		status = mlo_disconnect(vdev, CM_ROAM_DISCONNECT,
 					REASON_USER_TRIGGERED_ROAM_FAILURE,
 					NULL);