diff options
| -rw-r--r-- | core/mac/src/pe/lim/lim_prop_exts_utils.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/mac/src/pe/lim/lim_prop_exts_utils.c b/core/mac/src/pe/lim/lim_prop_exts_utils.c index 01dd4d88298a..e4b82a1bf8bf 100644 --- a/core/mac/src/pe/lim/lim_prop_exts_utils.c +++ b/core/mac/src/pe/lim/lim_prop_exts_utils.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2018, 2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -215,6 +215,9 @@ lim_extract_ap_capability(tpAniSirGlobal mac_ctx, uint8_t *p_ie, else if (center_freq_diff > 16) ap_bcon_ch_width = WNI_CFG_VHT_CHANNEL_WIDTH_80_PLUS_80MHZ; + else + ap_bcon_ch_width = + WNI_CFG_VHT_CHANNEL_WIDTH_80MHZ; } fw_vht_ch_wd = wma_get_vht_ch_width(); @@ -267,18 +270,15 @@ lim_extract_ap_capability(tpAniSirGlobal mac_ctx, uint8_t *p_ie, */ vht_ch_wd = WNI_CFG_VHT_CHANNEL_WIDTH_80MHZ; session->ch_center_freq_seg1 = 0; + session->ch_center_freq_seg0 = + lim_get_80Mhz_center_channel( + beacon_struct->channelNumber); } } else if (vht_ch_wd == WNI_CFG_VHT_CHANNEL_WIDTH_80MHZ) { - /* DUT or AP supports only 80MHz */ - if (ap_bcon_ch_width == - WNI_CFG_VHT_CHANNEL_WIDTH_160MHZ && - !new_ch_width_dfn) - /* AP is in 160MHz mode */ - session->ch_center_freq_seg0 = + session->ch_center_freq_seg0 = lim_get_80Mhz_center_channel( beacon_struct->channelNumber); - else - session->ch_center_freq_seg1 = 0; + session->ch_center_freq_seg1 = 0; } session->ch_width = vht_ch_wd + 1; pe_debug("cntr_freq0: %d cntr_freq1: %d width: %d", |
