Skip to contentSkip to conversation

mac80211: Add log message to ieee80211_restart_hw()

PATCH New Michael Buesch 1 participant 1 message Mar 7, 2011 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: Add log message to ieee80211_restart_hw()

Add a log message to ieee80211_restart_hw() to highlight that special codepath in the logs. This helps debugging bugs in the rarely tested restart code.

---

net/mac80211/main.c +3 -0
Index: compat-wireless-2011-02-25/net/mac80211/main.c
===================================================================
@@ -384,6 +384,9 @@ void ieee80211_restart_hw(struct ieee802
 
 	trace_api_restart_hw(local);
 
+	wiphy_info(hw->wiphy,
+		   "Hardware restart was requested\n");
+
 	/* use this reason, ieee80211_reconfig will unblock it */
 	ieee80211_stop_queues_by_reason(hw,
 		IEEE80211_QUEUE_STOP_REASON_SUSPEND);
Signature · 1 line
Greetings, Michael.