Skip to contentSkip to conversation

ath11k: reduce log spam

PATCH New John Crispin 1 participant 1 message Apr 16, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: reduce log spam

ath11k_bss_info_changed() is currently very chatty. Turns the info log messages into debug ones.

---
 drivers/net/wireless/ath/ath11k/mac.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/net/wireless/ath/ath11k/mac.c +14 -14
index 2f213966c16c..3a10fc395096 100644
@@ -1849,9 +1849,9 @@ static void ath11k_bss_info_changed(struct ieee80211_hw *hw,
 			ath11k_warn(ar->ab, "Failed to set beacon interval for VDEV: %d\n",
 				    arvif->vdev_id);
 		else
-			ath11k_info(ar->ab,
-				    "Beacon interval: %d set for VDEV: %d\n",
-				    arvif->beacon_interval, arvif->vdev_id);
+			ath11k_dbg(ar->ab, ATH11K_DBG_MAC,
+				   "Beacon interval: %d set for VDEV: %d\n",
+				   arvif->beacon_interval, arvif->vdev_id);
 	}
 
 	if (changed & BSS_CHANGED_BEACON) {
@@ -1863,9 +1863,9 @@ static void ath11k_bss_info_changed(struct ieee80211_hw *hw,
 			ath11k_warn(ar->ab, "Failed to set beacon mode for VDEV: %d\n",
 				    arvif->vdev_id);
 		else
-			ath11k_info(ar->ab,
-				    "Set staggered beacon mode for VDEV: %d\n",
-				    arvif->vdev_id);
+			ath11k_dbg(ar->ab, ATH11K_DBG_MAC,
+				   "Set staggered beacon mode for VDEV: %d\n",
+				   arvif->vdev_id);
 
 		ret = ath11k_mac_setup_bcn_tmpl(arvif);
 		if (ret)
@@ -1906,8 +1906,8 @@ static void ath11k_bss_info_changed(struct ieee80211_hw *hw,
 				ath11k_warn(ar->ab, "Failed to set CTS prot for VDEV: %d\n",
 					    arvif->vdev_id);
 			else
-				ath11k_info(ar->ab, "Set CTS prot: %d for VDEV: %d\n",
-					    cts_prot, arvif->vdev_id);
+				ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "Set CTS prot: %d for VDEV: %d\n",
+					   cts_prot, arvif->vdev_id);
 		} else {
 			ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "defer protection mode setup, vdev is not ready yet\n");
 		}
@@ -1929,9 +1929,9 @@ static void ath11k_bss_info_changed(struct ieee80211_hw *hw,
 			ath11k_warn(ar->ab, "Failed to set erp slot for VDEV: %d\n",
 				    arvif->vdev_id);
 		else
-			ath11k_info(ar->ab,
-				    "Set slottime: %d for VDEV: %d\n",
-				    slottime, arvif->vdev_id);
+			ath11k_dbg(ar->ab, ATH11K_DBG_MAC,
+				   "Set slottime: %d for VDEV: %d\n",
+				   slottime, arvif->vdev_id);
 	}
 
 	if (changed & BSS_CHANGED_ERP_PREAMBLE) {
@@ -1949,9 +1949,9 @@ static void ath11k_bss_info_changed(struct ieee80211_hw *hw,
 			ath11k_warn(ar->ab, "Failed to set preamble for VDEV: %d\n",
 				    arvif->vdev_id);
 		else
-			ath11k_info(ar->ab,
-				    "Set preamble: %d for VDEV: %d\n",
-				    preamble, arvif->vdev_id);
+			ath11k_dbg(ar->ab, ATH11K_DBG_MAC,
+				   "Set preamble: %d for VDEV: %d\n",
+				   preamble, arvif->vdev_id);
 	}
 
 	if (changed & BSS_CHANGED_ASSOC) {
Signature · 7 lines
2.11.0


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k