From 3d72577fe234748b30ea80bb09e3aa1ac066cdeb Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 28 Apr 2018 17:20:56 -0700 Subject: [PATCH] qcacld-3.0: Correctly set channelBondingMode5GHz In wlan_hdd_update_phymode() when the curr_band is set to BAND_5G the channelBondingMode5GHz is not correctly set. Fix the logic which currently has duplicated test for BAND_2G to test for both BAND_2G and BAND_5G. Change-Id: I70ed07d12ae891374e511905213ef7fcc7a7f1f1 CRs-Fixed: 2232919 --- core/hdd/src/wlan_hdd_wext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index e1504aa73ced..e0d9065c2dfb 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -4072,7 +4072,7 @@ int wlan_hdd_update_phymode(struct net_device *net, tHalHandle hal, phddctx->config->Is11hSupportEnabled; if (curr_band == BAND_2G) sme_config->csrConfig.channelBondingMode24GHz = chwidth; - else if (curr_band == BAND_2G) + else if (curr_band == BAND_5G) sme_config->csrConfig.channelBondingMode5GHz = chwidth; else { sme_config->csrConfig.channelBondingMode24GHz = chwidth;