Skip to content

Commit

Permalink
mac80211: Add iface name when calling WARN-ON.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Greear authored and John W. Linville committed Apr 9, 2012
1 parent 68d9e1f commit d17087e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/mac80211/driver-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit d17087e

Please sign in to comment.