ソースを参照

qcacld-3.0: Iterate all links in hdd_indicate_mgmt_frame

To fill the VDEV array from adapters, loop through all the
active links in each adapter.

Change-Id: I5607a8d7afaa3a2e6df210cfff4e678050505f42
CRs-Fixed: 3523474
Vinod Kumar Pirla 2 年 前
コミット
8306eab0e2
1 ファイル変更5 行追加4 行削除
  1. 5 4
      core/hdd/src/wlan_hdd_main.c

+ 5 - 4
core/hdd/src/wlan_hdd_main.c

@@ -9939,8 +9939,6 @@ QDF_STATUS hdd_adapter_iterate(hdd_adapter_iterate_cb cb, void *context)
 			}
 		}
 		hdd_adapter_put(adapter);
-		if (status != QDF_STATUS_SUCCESS)
-			return status;
 	}
 
 	return ret;
@@ -12805,8 +12803,11 @@ void hdd_indicate_mgmt_frame(tSirSmeMgmtFrameInd *frame_ind)
 		num_adapters = 0;
 		hdd_for_each_adapter_dev_held_safe(hdd_ctx, adapter,
 						   next_adapter, dbgid) {
-			vdev_id[num_adapters] = adapter->deflink->vdev_id;
-			num_adapters++;
+			hdd_adapter_for_each_active_link_info(adapter,
+							      link_info) {
+				vdev_id[num_adapters] = link_info->vdev_id;
+				num_adapters++;
+			}
 			/* dev_put has to be done here */
 			hdd_adapter_dev_put_debug(adapter, dbgid);
 		}