diff options
| -rw-r--r-- | core/mac/src/pe/lim/lim_scan_result_utils.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/core/mac/src/pe/lim/lim_scan_result_utils.c b/core/mac/src/pe/lim/lim_scan_result_utils.c index d17eacea4cf1..e1dd42c3e83a 100644 --- a/core/mac/src/pe/lim/lim_scan_result_utils.c +++ b/core/mac/src/pe/lim/lim_scan_result_utils.c @@ -203,8 +203,15 @@ lim_collect_bss_description(tpAniSirGlobal pMac, /* HT capability */ if (pBPR->HTCaps.present) { pBssDescr->ht_caps_present = 1; - if (pBPR->HTCaps.supportedChannelWidthSet) - pBssDescr->chan_width = eHT_CHANNEL_WIDTH_40MHZ; + if (pBPR->HTCaps.supportedChannelWidthSet) { + if (!pBPR->HTInfo.present) { + pBssDescr->chan_width = + eHT_CHANNEL_WIDTH_40MHZ; + } else if (pBPR->HTInfo.recommendedTxWidthSet) { + pBssDescr->chan_width = + eHT_CHANNEL_WIDTH_40MHZ; + } + } } /* VHT Parameters */ |
