ソースを参照

qcacld-3.0: Fix SAP vdev MAC different from adapter MAC

When switch wlan0 from STA to SAP mode, single link flag isn't set,
hdd_adapter_is_sl_ml_adapter returned false,
hdd_get_assoc_link_adapter didn’t return SAP adapter,
wrong MAC was copied to vdev in hdd_populate_vdev_create_params.
SAP started with wrong mac addr, which was different from real SAP
adapter mac.

To fix it, for SAP, copy MAC from adapter directly to vdev in
hdd_populate_vdev_create_params.

Change-Id: I5567cb83e4cc7d9f79979c3eea42760dab6c8926
CRs-Fixed: 3458921
Jianmin Zhu 2 年 前
コミット
6c0bb852ed
1 ファイル変更2 行追加1 行削除
  1. 2 1
      core/hdd/src/wlan_hdd_main.c

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

@@ -6717,7 +6717,8 @@ hdd_populate_vdev_create_params(struct hdd_adapter *adapter,
 	mlo_adapter_info = &adapter->mlo_adapter_info;
 
 	ucfg_psoc_mlme_get_11be_capab(hdd_ctx->psoc, &eht_capab);
-	if (mlo_adapter_info->is_ml_adapter && eht_capab) {
+	if (mlo_adapter_info->is_ml_adapter && eht_capab &&
+	    adapter->device_mode == QDF_STA_MODE) {
 		link_adapter = hdd_get_assoc_link_adapter(adapter);
 		if (link_adapter) {
 			qdf_mem_copy(vdev_params->macaddr,