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
2023-03-22 14:46:35 -07:00
提交者 Madan Koyyalamudi
父節點 0e81b157fb
當前提交 2514a9e8bd

查看文件

@@ -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);