瀏覽代碼

qcacmn: Add fix to validate disconnect req for MLO STA

In case of MLO, to avoid race between ongoing connect and a new
disconnect, add fix to validate disconnect req for MLO STA

Change-Id: I4b27a06103ffce637738b1894c3bdcf46533043c
CRs-Fixed: 3493915
Himanshu Batra 2 年之前
父節點
當前提交
25e0531edd
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      umac/mlo_mgr/src/wlan_mlo_mgr_sta.c

+ 7 - 0
umac/mlo_mgr/src/wlan_mlo_mgr_sta.c

@@ -1372,6 +1372,13 @@ QDF_STATUS mlo_sync_disconnect(struct wlan_objmgr_vdev *vdev,
 			sta_ctx->connect_req = NULL;
 		}
 
+		status = mlo_validate_disconn_req(vdev, source,
+						  reason_code, bssid);
+		if (QDF_IS_STATUS_ERROR(status)) {
+			mlo_err("Connect in progress, deferring disconnect");
+			return status;
+		}
+
 		status = mlo_send_link_disconnect_sync(mlo_dev_ctx, source,
 						       reason_code, bssid);
 		if (QDF_IS_STATUS_SUCCESS(status))