Kaynağa Gözat

qcacld-3.0: Reduce the level of kmsg for multiple assoc req

For multiple assoc requests, corresponding APIs are called
multiple times, which leads to the crash.

Reduce the level of kmsg, so that it reduces the number of logs
per second.

Change-Id: I846a88c75cc326e7e7bb6aa8dfb22717c6dba5c2
CRs-Fixed: 3249830
Aravind Kishore Sukla 2 yıl önce
ebeveyn
işleme
0c13057466

+ 2 - 2
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -708,8 +708,8 @@ lim_reject_association(struct mac_context *mac_ctx, tSirMacAddr peer_addr,
 				STATUS_AP_UNABLE_TO_HANDLE_NEW_STA,
 				1, peer_addr, sub_type, sta_ds, session_entry,
 				false);
-		pe_warn("received Re/Assoc req when max associated STAs reached from");
-		lim_print_mac_addr(mac_ctx, peer_addr, LOGW);
+		pe_debug("Received Re/Assoc req when max associated STAs reached from " QDF_MAC_ADDR_FMT,
+			 QDF_MAC_ADDR_REF(peer_addr));
 		lim_send_sme_max_assoc_exceeded_ntf(mac_ctx, peer_addr,
 					session_entry->smeSessionId);
 		return;

+ 2 - 2
core/mac/src/pe/lim/lim_process_assoc_req_frame.c

@@ -1235,8 +1235,8 @@ static bool lim_process_assoc_req_no_sta_ctx(struct mac_context *mac_ctx,
 		 * Maximum number of STAs that AP can handle reached.
 		 * Send Association response to peer MAC entity
 		 */
-		pe_err("Max Sta count reached : %d",
-				mac_ctx->lim.maxStation);
+		pe_info_rl("Max Sta count reached : %d",
+			   mac_ctx->lim.maxStation);
 		lim_reject_association(mac_ctx, sa, sub_type, false,
 				       (tAniAuthType)0, 0, false,
 				       STATUS_UNSPECIFIED_FAILURE,

+ 1 - 3
core/mac/src/pe/lim/lim_utils.c

@@ -1133,10 +1133,8 @@ lim_decide_ap_protection(struct mac_context *mac, tSirMacAddr peerMacAddr,
 	sta =
 		dph_lookup_hash_entry(mac, peerMacAddr, &tmpAid,
 				      &pe_session->dph.dphHashTable);
-	if (!sta) {
-		pe_err("sta is NULL");
+	if (!sta)
 		return;
-	}
 	lim_get_rf_band_new(mac, &rfBand, pe_session);
 	/* if we are in 5 GHZ band */
 	if (REG_BAND_5G == rfBand) {