summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 7cd0c0a44c10..9ff70811b799 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -5233,11 +5233,13 @@ QDF_STATUS hdd_set_sme_chan_list(hdd_context_t *hdd_ctx)
*/
bool hdd_is_5g_supported(hdd_context_t *hdd_ctx)
{
- /*
- * If wcnss_wlan_iris_xo_mode() returns WCNSS_XO_48MHZ(1);
- * then hardware support 5Ghz.
- */
- return true;
+ if (!hdd_ctx || !hdd_ctx->config)
+ return true;
+
+ if (hdd_ctx->config->nBandCapability != eCSR_BAND_24)
+ return true;
+ else
+ return false;
}
static int hdd_wiphy_init(hdd_context_t *hdd_ctx)