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
Esse commit está contido em:
Bing Sun
2021-09-23 14:58:54 +08:00
commit de Madan Koyyalamudi
commit 0855f4f6ae

Ver arquivo

@@ -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(