Forráskód Böngészése

qcacld-3.0: Rate limit P2P OTA logs

P2P OTA rx frame indications are logged in info level.
This causes excessive logs to kernel logging when peer
sends multiple frames back to back. Rate limit the logs
to avoid excessive logs to kernel logging.

Change-Id: Ia97aef1490b8dbb759c27ba60c48c93ad7831497
CRs-Fixed: 3352880
Aravind Kishore Sukla 2 éve
szülő
commit
d73ef71ceb
1 módosított fájl, 7 hozzáadás és 6 törlés
  1. 7 6
      components/p2p/core/src/wlan_p2p_off_chan_tx.c

+ 7 - 6
components/p2p/core/src/wlan_p2p_off_chan_tx.c

@@ -518,6 +518,7 @@ static uint8_t p2p_get_noa_attr_stream(
  * @p2p_ie:       pointer to p2p ie
  * @noa_attr:     pointer to noa attr
  * @total_len:    pointer to total length of ie
+ * @noa_stream:   noa stream
  *
  * This function updates noa stream.
  *
@@ -969,9 +970,9 @@ static QDF_STATUS p2p_rx_update_connection_status(
 
 	if (rx_frame_info->public_action_type !=
 		P2P_PUBLIC_ACTION_NOT_SUPPORT)
-		p2p_info("%s <--- OTA from " QDF_MAC_ADDR_FMT,
-			  p2p_get_frame_type_str(rx_frame_info),
-			  QDF_MAC_ADDR_REF(mac_from));
+		p2p_info_rl("%s <--- OTA from " QDF_MAC_ADDR_FMT,
+			    p2p_get_frame_type_str(rx_frame_info),
+			    QDF_MAC_ADDR_REF(mac_from));
 
 	if ((rx_frame_info->public_action_type ==
 			P2P_PUBLIC_ACTION_PROV_DIS_REQ) ||
@@ -980,7 +981,7 @@ static QDF_STATUS p2p_rx_update_connection_status(
 	    (rx_frame_info->public_action_type ==
 			P2P_PUBLIC_ACTION_NEG_RSP)) {
 		p2p_status_update(p2p_soc_obj, P2P_GO_NEG_PROCESS);
-		p2p_info("[P2P State]Inactive state to GO negotiation progress state");
+		p2p_info_rl("[P2P State]Inactive state to GO negotiation progress state");
 	} else if (((rx_frame_info->public_action_type ==
 		     P2P_PUBLIC_ACTION_NEG_CNF) ||
 		   (rx_frame_info->public_action_type ==
@@ -988,12 +989,12 @@ static QDF_STATUS p2p_rx_update_connection_status(
 		   (p2p_soc_obj->connection_status ==
 		    P2P_GO_NEG_PROCESS)) {
 		p2p_status_update(p2p_soc_obj, P2P_GO_NEG_COMPLETED);
-		p2p_info("[P2P State]GO negotiation progress to GO negotiation completed state");
+		p2p_info_rl("[P2P State]GO negotiation progress to GO negotiation completed state");
 	} else if ((rx_frame_info->public_action_type ==
 		    P2P_PUBLIC_ACTION_INVIT_REQ) &&
 		   (p2p_soc_obj->connection_status == P2P_NOT_ACTIVE)) {
 		p2p_status_update(p2p_soc_obj, P2P_GO_NEG_COMPLETED);
-		p2p_info("[P2P State]Inactive state to GO negotiation completed state Autonomous GO formation");
+		p2p_info_rl("[P2P State]Inactive state to GO negotiation completed state Autonomous GO formation");
 	}
 
 	return QDF_STATUS_SUCCESS;