mac80211: Add iface name when calling WARN-ON.
authorBen Greear <greearb@candelatech.com>
Thu, 15 Mar 2012 23:22:05 +0000 (16:22 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 20:05:57 +0000 (16:05 -0400)
This lets the user know which interface has failed
the check_sdata_in_driver check.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/driver-ops.h

index af4691fed6457e4df103d3e27332a01b9b304f66..e8dbda1b5b8ae40801cdb7e76521a2c56516ca04 100644 (file)
@@ -7,7 +7,9 @@
 
 static inline void check_sdata_in_driver(struct ieee80211_sub_if_data *sdata)
 {
-       WARN_ON(!(sdata->flags & IEEE80211_SDATA_IN_DRIVER));
+       WARN(!(sdata->flags & IEEE80211_SDATA_IN_DRIVER),
+            "%s:  Failed check-sdata-in-driver check, flags: 0x%x\n",
+            sdata->dev->name, sdata->flags);
 }
 
 static inline struct ieee80211_sub_if_data *