Explorar o código

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
Amar Singhal %!s(int64=6) %!d(string=hai) anos
pai
achega
6ee3f24bb7
Modificáronse 1 ficheiros con 12 adicións e 12 borrados
  1. 12 12
      core/mac/src/pe/sch/sch_beacon_process.c

+ 12 - 12
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",