diff options
| author | gaolez <gaolez@codeaurora.org> | 2017-03-24 19:05:44 +0800 |
|---|---|---|
| committer | gaolez <gaolez@codeaurora.org> | 2017-03-24 19:45:13 +0800 |
| commit | ffb10620038bb5bee2325ec5a0c97960373d0176 (patch) | |
| tree | f344e2d82ccbf3935669ad60c1eab64aed64cb54 | |
| parent | 7f5da933fa758648ee34ce460c06984bbbe8224a (diff) | |
qcacld-2.0: fix miss CSA IE when band switch
Setting CSA IE if not all the STA devices support ECSA while
configure the macro CHANNEL_HOPPING_ALL_BANDS. Otherwise, SAP
will miss CSA IE when switch band from 5G to 2G.
Change-Id: I7aad2bb0d967e73c0ea87acb9820bebdc0455410
CRs-Fixed: 2024425
| -rw-r--r-- | CORE/MAC/src/pe/sch/schBeaconGen.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CORE/MAC/src/pe/sch/schBeaconGen.c b/CORE/MAC/src/pe/sch/schBeaconGen.c index a3010c465faa..cc4bd5ac1ac0 100644 --- a/CORE/MAC/src/pe/sch/schBeaconGen.c +++ b/CORE/MAC/src/pe/sch/schBeaconGen.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -313,6 +313,9 @@ tSirRetStatus schSetFixedBeaconFields(tpAniSirGlobal pMac,tpPESession psessionEn psessionEntry->lim_non_ecsa_cap_num == 0) populate_dot_11_f_ext_chann_switch_ann( pMac, &pBcn2->ext_chan_switch_ann, psessionEntry); + else + PopulateDot11fChanSwitchAnn(pMac, &pBcn2->ChanSwitchAnn, + psessionEntry); } populate_dot11_supp_operating_classes(pMac, &pBcn2->SuppOperatingClasses, @@ -336,8 +339,7 @@ tSirRetStatus schSetFixedBeaconFields(tpAniSirGlobal pMac,tpPESession psessionEn * and SAP has instructed to announce channel switch IEs * in beacon and probe responses */ - if (!CHAN_HOP_ALL_BANDS_ENABLE || - psessionEntry->lim_non_ecsa_cap_num > 0) + if (!CHAN_HOP_ALL_BANDS_ENABLE) PopulateDot11fChanSwitchAnn(pMac, &pBcn2->ChanSwitchAnn, psessionEntry); |
