diff options
| author | Amar Singhal <asinghal@codeaurora.org> | 2016-10-26 16:29:01 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-29 17:28:23 -0700 |
| commit | 79da812012e54c3c6180177c373bb562c66876fc (patch) | |
| tree | 83c77dbd59b91a6f3f7167e84e8fced1c724ca9f | |
| parent | 5d7138ba9363cf16a2beae3e40fc3790e8a6ba7f (diff) | |
qcacld-3.0: Combine channel states only for 80P80
We dont need to combine channel states if the Channel width is not
80P80MHZ. Fix this so the logic is easier to understand.
CRs-Fixed: 1082221
Change-Id: Ie31d564f63278fe6549a2d54165920c28958c274
(cherry picked from commit a53a28f26e2add8309bb0c2ebacaa8f97f2506d3)
| -rw-r--r-- | core/cds/src/cds_reg_service.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/cds/src/cds_reg_service.c b/core/cds/src/cds_reg_service.c index b486963516cb..87706810b97b 100644 --- a/core/cds/src/cds_reg_service.c +++ b/core/cds/src/cds_reg_service.c @@ -486,13 +486,14 @@ static void cds_set_5g_channel_params(uint16_t oper_ch, chan_state = cds_get_5g_bonded_channel_state(oper_ch, ch_params->ch_width); - if (CH_WIDTH_80P80MHZ == ch_params->ch_width) + if (CH_WIDTH_80P80MHZ == ch_params->ch_width) { chan_state2 = cds_get_5g_bonded_channel_state( ch_params->center_freq_seg1 - 2, CH_WIDTH_80MHZ); - chan_state = cds_combine_channel_states(chan_state, - chan_state2); + chan_state = cds_combine_channel_states(chan_state, + chan_state2); + } if ((CHANNEL_STATE_ENABLE == chan_state) || (CHANNEL_STATE_DFS == chan_state)) { |
