瀏覽代碼

qcacld-3.0: Fix wrong bitmap to update inactive link

Use link bitmap to update inactive link bitmap instead of
link id in Roam indication.

Change-Id: Ibdffbf7a4ab06f34affb0f4b1876c9dbbe95c395
CRs-Fixed: 3583587
Liangwei Dong 1 年之前
父節點
當前提交
6db9e28a32
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      components/umac/mlme/connection_mgr/core/src/wlan_cm_roam_fw_sync.c

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

@@ -1070,8 +1070,9 @@ cm_get_and_disable_link_from_roam_ind(struct wlan_objmgr_psoc *psoc,
 	for (i = 0; i < synch_data->num_setup_links; i++) {
 		if (synch_data->ml_link[i].vdev_id == vdev_id &&
 		    synch_data->ml_link[i].flags & CM_ROAM_LINK_FLAG_DISABLE) {
-			mlme_info("Vdev %d: link flags 0x%x, indicate link disable",
-				  vdev_id, synch_data->ml_link[i].flags);
+			mlme_info("Vdev %d: link id %d flags 0x%x, indicate link disable",
+				  vdev_id, synch_data->ml_link[i].link_id,
+				  synch_data->ml_link[i].flags);
 			policy_mgr_move_vdev_from_connection_to_disabled_tbl(
 								psoc, vdev_id);
 
@@ -1083,7 +1084,7 @@ cm_get_and_disable_link_from_roam_ind(struct wlan_objmgr_psoc *psoc,
 				break;
 			}
 			ml_nlink_set_curr_force_inactive_state(
-				psoc, vdev, synch_data->ml_link[i].link_id,
+				psoc, vdev, 1 << synch_data->ml_link[i].link_id,
 				LINK_ADD);
 			wlan_objmgr_vdev_release_ref(vdev, WLAN_MLME_SB_ID);
 			break;