Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d17087e7 authored by Ben Greear's avatar Ben Greear Committed by John W. Linville
Browse files

mac80211: Add iface name when calling WARN-ON.



This lets the user know which interface has failed
the check_sdata_in_driver check.

Signed-off-by: default avatarBen Greear <greearb@candelatech.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 68d9e1fa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 *