diff options
| author | Amar Singhal <asinghal@codeaurora.org> | 2018-08-17 10:46:59 -0700 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2019-04-18 02:08:03 -0700 |
| commit | e17b6e2639c75a77d69430b88fefad543fea6969 (patch) | |
| tree | 3a96ecce4ede9645a03edeb82c0c033b4a8c2637 | |
| parent | 1207a4129acbe251273c7bdf9324a9b5b27c190e (diff) | |
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.
CRs-Fixed: 2298986
Change-Id: I47ab8111613292781bddca435f9800544b1e6d58
| -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 ba12a507375a..787e43a0a545 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. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -546,15 +546,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; } @@ -620,15 +619,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", |
