diff options
author | Amar Singhal <asinghal@codeaurora.org> | 2018-08-17 10:46:59 -0700 |
---|---|---|
committer | Kumar Anand <kumaranand@google.com> | 2019-04-16 23:29:35 +0000 |
commit | 5c4a4e140b78c9039f613716fca01f2a6aa6920e (patch) | |
tree | 88178249c8bb565d909d68f34606d4eaa65fe532 | |
parent | 79e98222c37a2c8899fa38d371d2663ebea7e2f1 (diff) | |
download | qcacld-5c4a4e140b78c9039f613716fca01f2a6aa6920e.tar.gz |
qcacld-3.0: Reduce logging level while processing beacon
Channel bonding mode can be disabled when connection happens. So reduce the
log level and rate for this log.
Bug: 130026526
CRs-Fixed: 2298986
Change-Id: I47ab8111613292781bddca435f9800544b1e6d58
Signed-off-by: Srinivas Girigowda <quic_sgirigow@quicinc.com>
-rw-r--r-- | core/mac/src/pe/sch/sch_beacon_process.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/core/mac/src/pe/sch/sch_beacon_process.c b/core/mac/src/pe/sch/sch_beacon_process.c index f533526c53..c52f546ec3 100644 --- a/core/mac/src/pe/sch/sch_beacon_process.c +++ b/core/mac/src/pe/sch/sch_beacon_process.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -555,15 +555,14 @@ sch_bcn_process_sta_ibss(tpAniSirGlobal mac_ctx, if ((operMode == eHT_CHANNEL_WIDTH_80MHZ) && (bcn->OperatingMode.chanWidth > eHT_CHANNEL_WIDTH_80MHZ)) skip_opmode_update = true; + if (WNI_CFG_CHANNEL_BONDING_MODE_DISABLE == cb_mode) { /* - * if channel bonding is disabled from INI and - * receiving beacon which has operating mode IE - * containing channel width change then don't update - * CH_WIDTH + * if channel bonding is disabled from INI don't + * update the CH_WIDTH */ - pe_err("CB disabled & CH_WIDTH changed old[%d] new[%d]", - operMode, bcn->OperatingMode.chanWidth); + pe_debug_rate_limited(30, "CB disabled skip bw update: old[%d] new[%d]", + operMode, bcn->OperatingMode.chanWidth); return; } @@ -629,15 +628,14 @@ sch_bcn_process_sta_ibss(tpAniSirGlobal mac_ctx, if (WNI_CFG_CHANNEL_BONDING_MODE_DISABLE == cb_mode) { /* - * if channel bonding is disabled from INI and - * receiving beacon which has operating mode IE - * containing channel width change then don't update - * the CH_WIDTH + * if channel bonding is disabled from INI don't + * update the CH_WIDTH */ - pe_err("CB disabled & VHT CH_WIDTH changed old[%d] new[%d]", - operMode, bcn->VHTOperation.chanWidth); + pe_debug_rate_limited(30, "CB disabled, skip ch width update: old[%d] new[%d]", + operMode, bcn->VHTOperation.chanWidth); return; } + if (!skip_opmode_update && (operMode != bcn->VHTOperation.chanWidth)) { pe_debug("received VHTOP CHWidth %d staIdx = %d", |