From 7889a7e84ee4420ea3f9125bc82f9fa7702b406a Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Fri, 23 Jun 2017 14:58:02 +0530 Subject: [PATCH] qcacld-3.0: Do not change channel BW if channel is 0 in HT info Do not change channel BW if channel is 0 in HT info, As this will cause invalid channel and phymode sent to firmware and result into crash. Change-Id: Ia629314b9ced299afa5d89092d0a9fc5c7cb6b4c CRs-Fixed: 2065143 --- core/mac/src/pe/lim/lim_utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index c08ead8f820f..02b28c1c52fb 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -4328,6 +4328,11 @@ void lim_update_sta_run_time_ht_switch_chnl_params(tpAniSirGlobal pMac, return; } + if (!pHTInfo->primaryChannel) { + pe_debug("Ignore as primary channel is 0 in HT info"); + return; + } + if (psessionEntry->htSecondaryChannelOffset != (uint8_t) pHTInfo->secondaryChannelOffset || psessionEntry->htRecommendedTxWidthSet !=