瀏覽代碼

qcacld-3.0: Reset parnter sta_ctx only for MLO roaming

Currently, connection info present in sta_ctx gets invalidated by
resetting the bssid and clearing corresponding link id bitmap.
But this is done even for non-ML case, which clears sta_ctx bssid
info of the roamed AP.
Don't reset connection info for non-MLO roaming.

Change-Id: Id37d7b972bd431443ba9d9c11d2891b15bd5500a
CRs-Fixed: 3643959
Srinivas Dasari 1 年之前
父節點
當前提交
31d2be87d6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/hdd/src/wlan_hdd_cm_connect.c

+ 2 - 1
core/hdd/src/wlan_hdd_cm_connect.c

@@ -1684,7 +1684,8 @@ hdd_cm_connect_success_pre_user_update(struct wlan_objmgr_vdev *vdev,
 			 * In case of roaming from 3 Link or 2 Link to 1 link
 			 * AP, then reset the STA context for other links
 			 */
-			hdd_adapter_reset_station_ctx(adapter);
+			if (wlan_vdev_mlme_is_mlo_vdev(vdev))
+				hdd_adapter_reset_station_ctx(adapter);
 		}
 		hdd_debug("is_roam_offload %d, is_roam %d, is_auth_required %d",
 			  is_roam_offload, is_roam, is_auth_required);