diff options
| -rw-r--r-- | core/mac/src/pe/lim/lim_api.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index dfe87be16c15..8238659d6874 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -1914,27 +1914,9 @@ lim_roam_fill_bss_descr(tpAniSirGlobal pMac, } bss_desc_ptr->channelIdSelf = bss_desc_ptr->channelId; - if ((bss_desc_ptr->channelId > 0) && (bss_desc_ptr->channelId < 15)) { - int i; - /* * - * 11b or 11g packet - * 11g if extended Rate IE is present or - * if there is an A rate in suppRate IE - * */ - for (i = 0; i < parsed_frm_ptr->supportedRates.numRates; i++) { - if (sirIsArate(parsed_frm_ptr->supportedRates.rate[i] & - 0x7f)) { - bss_desc_ptr->nwType = eSIR_11G_NW_TYPE; - break; - } - } - if (parsed_frm_ptr->extendedRatesPresent) { - bss_desc_ptr->nwType = eSIR_11G_NW_TYPE; - } - } else { - /* 11a packet */ - bss_desc_ptr->nwType = eSIR_11A_NW_TYPE; - } + bss_desc_ptr->nwType = lim_get_nw_type(pMac, bss_desc_ptr->channelId, + SIR_MAC_MGMT_FRAME, + parsed_frm_ptr); bss_desc_ptr->sinr = 0; bss_desc_ptr->beaconInterval = parsed_frm_ptr->beaconInterval; |
