diff options
| author | Service qcabuildsw <qcabuildsw@localhost> | 2016-10-28 10:23:36 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-28 10:23:36 -0700 |
| commit | aaeffdf5b97240ff7507ae5bd800d97bd2cb28ce (patch) | |
| tree | bd3f61ac1fc407d96a7e9c490fc19ed7fe790765 | |
| parent | 030f94c44e5b09358b00f568510cec41df9c58e1 (diff) | |
| parent | 833aa96a5b4fa25a3f1aaf1e5a835b0631f741b9 (diff) | |
Merge "qcacld-3.0: Set maximum channel width correctly" into wlan-cld3.driver.lnx.1.1-dev
| -rw-r--r-- | core/cds/src/cds_reg_service.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/cds/src/cds_reg_service.c b/core/cds/src/cds_reg_service.c index 9b6b00d8d079..b486963516cb 100644 --- a/core/cds/src/cds_reg_service.c +++ b/core/cds/src/cds_reg_service.c @@ -469,8 +469,12 @@ static void cds_set_5g_channel_params(uint16_t oper_ch, const struct bonded_chan *bonded_chan_ptr = NULL; const struct bonded_chan *bonded_chan_ptr2 = NULL; - if (CH_WIDTH_MAX <= ch_params->ch_width) - ch_params->ch_width = CH_WIDTH_80P80MHZ; + if (CH_WIDTH_MAX <= ch_params->ch_width) { + if (0 != ch_params->center_freq_seg1) + ch_params->ch_width = CH_WIDTH_80P80MHZ; + else + ch_params->ch_width = CH_WIDTH_160MHZ; + } while (ch_params->ch_width != CH_WIDTH_INVALID) { bonded_chan_ptr = NULL; |
