From 6ee3f24bb7fbafe0799fc09a593def592d040842 Mon Sep 17 00:00:00 2001 From: Amar Singhal Date: Fri, 17 Aug 2018 10:46:59 -0700 Subject: [PATCH] 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 --- core/mac/src/pe/sch/sch_beacon_process.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core/mac/src/pe/sch/sch_beacon_process.c b/core/mac/src/pe/sch/sch_beacon_process.c index 50c382586cec..b24053fb919c 100644 --- a/core/mac/src/pe/sch/sch_beacon_process.c +++ b/core/mac/src/pe/sch/sch_beacon_process.c @@ -555,15 +555,15 @@ sch_bcn_update_opmode_change(tpAniSirGlobal mac_ctx, tpDphHashNode sta_ds, if ((oper_mode == 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 do not + * update the chan width */ - pe_debug("CB disabled & CH_WIDTH changed old[%d] new[%d]", - oper_mode, bcn->OperatingMode.chanWidth); + pe_debug_rl("CB disabled skip bw update: old[%d] new[%d]", + oper_mode, + bcn->OperatingMode.chanWidth); return; } @@ -629,15 +629,15 @@ sch_bcn_update_opmode_change(tpAniSirGlobal mac_ctx, tpDphHashNode sta_ds, 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 do not + * update the chan width */ - pe_err("CB disabled & CH_WIDTH changed old[%d] new[%d]", - oper_mode, bcn->OperatingMode.chanWidth); + pe_debug_rl("CB disabled skip bw update: old[%d] new[%d]", + oper_mode, bcn->OperatingMode.chanWidth); + return; } + if (!skip_opmode_update && (oper_mode != bcn->VHTOperation.chanWidth)) { pe_debug("received VHTOP CHWidth %d staIdx = %d",