|
@@ -13699,11 +13699,18 @@ static bool hdd_is_cfg_dot11_mode_11be(enum hdd_dot11_mode dot11_mode)
|
|
|
|
|
|
/**
|
|
|
* hdd_is_11be_supported() - Check if 11be is supported or not
|
|
|
+ * @hdd_ctx: Pointer to hdd context
|
|
|
*
|
|
|
* Return: True, if 11be is supported else return false
|
|
|
*/
|
|
|
-static bool hdd_is_11be_supported(void)
|
|
|
+static bool hdd_is_11be_supported(struct hdd_context *hdd_ctx)
|
|
|
{
|
|
|
+ bool mlo_capab;
|
|
|
+
|
|
|
+ ucfg_psoc_mlme_get_11be_capab(hdd_ctx->psoc, &mlo_capab);
|
|
|
+ if (!mlo_capab)
|
|
|
+ return false;
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
#else
|
|
@@ -13713,7 +13720,7 @@ static bool hdd_is_cfg_dot11_mode_11be(enum hdd_dot11_mode dot11_mode)
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-static bool hdd_is_11be_supported(void)
|
|
|
+static bool hdd_is_11be_supported(struct hdd_context *hdd_ctx)
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
@@ -13732,7 +13739,7 @@ static WMI_HOST_WIFI_STANDARD hdd_get_wifi_standard(struct hdd_context *hdd_ctx,
|
|
|
WMI_HOST_WIFI_STANDARD wifi_standard = WMI_HOST_WIFI_STANDARD_4;
|
|
|
|
|
|
if (hdd_ctx->config->dot11Mode == eHDD_DOT11_MODE_AUTO) {
|
|
|
- if (hdd_is_11be_supported())
|
|
|
+ if (hdd_is_11be_supported(hdd_ctx))
|
|
|
wifi_standard = WMI_HOST_WIFI_STANDARD_7;
|
|
|
else if (band_capability & BIT(REG_BAND_6G))
|
|
|
wifi_standard = WMI_HOST_WIFI_STANDARD_6E;
|