mac80211: Add log message to ieee80211_restart_hw()
authorMichael Buesch <mb@bu3sch.de>
Mon, 7 Mar 2011 12:09:12 +0000 (13:09 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Mar 2011 18:51:04 +0000 (13:51 -0500)
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.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c

index 2543e48bd813b7e32ec069d0246b1b7e887890d7..562d2984c4826fd39278a1924ae117ea0776afd1 100644 (file)
@@ -380,6 +380,9 @@ void ieee80211_restart_hw(struct ieee80211_hw *hw)
 
        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);