From 6c40b760d54501688a50231b5660059bed25db1c Mon Sep 17 00:00:00 2001 From: bings Date: Fri, 26 Jan 2018 17:12:15 +0800 Subject: [PATCH] qcacmn: set center freq segment0 for channel params in 2g HT20 mode In the routine sap_ch_params_to_bonding_channels, the channels is set invalid value 0 if center freq segment0 for channel params is 0. ch_params->center_freq_seg0 should be set for 2g HT20 mode. Change-Id: I063f1341da5a4934c97dec4bcda9367101de7cc5 CRs-Fixed: 2179368 --- umac/regulatory/core/src/reg_services.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/umac/regulatory/core/src/reg_services.c b/umac/regulatory/core/src/reg_services.c index b9358c318d..affab85255 100644 --- a/umac/regulatory/core/src/reg_services.c +++ b/umac/regulatory/core/src/reg_services.c @@ -1257,8 +1257,10 @@ static void reg_set_2g_channel_params(struct wlan_objmgr_pdev *pdev, HIGH_PRIMARY_CH; ch_params->center_freq_seg0 = (oper_ch + sec_ch_2g)/2; - } else + } else { ch_params->sec_ch_offset = NO_SEC_CH; + ch_params->center_freq_seg0 = oper_ch; + } break; }