瀏覽代碼

qcacld-3.0: Start 11be AP without mlo IE with WLAN_FEATURE_11BE_MLO

When WLAN_FEATURE_11BE_MLO is enabled, 11be AP without mlo IE fails
to start because of number of links being 0.

11be AP without mlo IE is a valid case. It should be supported.

Change-Id: I66fce67e7235cd75db4599f7f06d239f7e1d965a
CRs-Fixed: 3042868
Bing Sun 3 年之前
父節點
當前提交
0855f4f6ae
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      core/hdd/src/wlan_hdd_hostapd.c

+ 7 - 3
core/hdd/src/wlan_hdd_hostapd.c

@@ -5288,10 +5288,14 @@ static QDF_STATUS wlan_hdd_mlo_update(struct hdd_context *hdd_ctx,
 		wlan_hdd_get_mlo_link_id(beacon, &link_id, &num_link);
 		hdd_debug("MLO SAP vdev id %d, link id %d total link %d",
 			  adapter->vdev_id, link_id, num_link);
-		if (!num_link)
-			return QDF_STATUS_E_INVAL;
-		if (!mlo_ap_vdev_attach(adapter->vdev, link_id, num_link))
+		if (!num_link) {
+			hdd_debug("start 11be AP without mlo");
+			return QDF_STATUS_SUCCESS;
+		}
+		if (!mlo_ap_vdev_attach(adapter->vdev, link_id, num_link)) {
+			hdd_err("MLO SAP attach fails");
 			return QDF_STATUS_E_INVAL;
+		}
 	}
 
 	if (!policy_mgr_is_mlo_sap_concurrency_allowed(