Parcourir la source

qcacld-3.0: Remove excessive logging during NUD Tracking

Remove excessive logging during NUD Tracking in soft_irq context.

Change-Id: I2dd56ee6356bdcabf3e54facf378699d0d842cee
CRs-Fixed: 2326807
Alok Kumar il y a 6 ans
Parent
commit
b027702ffe
1 fichiers modifiés avec 4 ajouts et 10 suppressions
  1. 4 10
      core/hdd/src/wlan_hdd_nud_tracking.c

+ 4 - 10
core/hdd/src/wlan_hdd_nud_tracking.c

@@ -192,8 +192,6 @@ static void hdd_nud_set_tracking(struct hdd_adapter *adapter,
 				 uint8_t nud_state,
 				 bool capture_enabled)
 {
-	hdd_debug("set the NUD tracking");
-
 	adapter->nud_tracking.curr_state = nud_state;
 	qdf_atomic_set(&adapter->nud_tracking.tx_rx_stats.gw_rx_packets, 0);
 	adapter->nud_tracking.is_gw_rx_pkt_track_enabled = capture_enabled;
@@ -350,12 +348,9 @@ static void hdd_nud_filter_netevent(struct neighbour *neigh)
 	if (status)
 		return;
 
-	if (adapter->device_mode != QDF_STA_MODE) {
-		hdd_err("Device_mode %s(%d) is not supported for NUD handling",
-			hdd_device_mode_to_string(adapter->device_mode),
-			adapter->device_mode);
+	if (adapter->device_mode != QDF_STA_MODE)
 		return;
-	}
+
 	conn_state = (WLAN_HDD_GET_STATION_CTX_PTR(adapter))
 		->conn_info.connState;
 
@@ -370,10 +365,9 @@ static void hdd_nud_filter_netevent(struct neighbour *neigh)
 	}
 
 	if (!qdf_is_macaddr_equal(&adapter->nud_tracking.gw_mac_addr,
-				  (struct qdf_mac_addr *)&neigh->ha[0])) {
-		hdd_debug("NUD event not for registered GW");
+				  (struct qdf_mac_addr *)&neigh->ha[0]))
 		return;
-	}
+
 	switch (neigh->nud_state) {
 	case NUD_PROBE:
 	case NUD_INCOMPLETE: