aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorDavid Spinadel <david.spinadel@intel.com>2013-07-31 11:04:15 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-08-12 08:11:37 -0400
commitfc73f11f5fa230f8c687d51b0fddb00433092ce0 (patch)
treef1c2e5c855a97dd4039b3df2a0b8cde96744898f /net/mac80211/cfg.c
parentaf61a165187bb94b1dc7628ef815c23d0eacf40b (diff)
cfg80211: add wdev to testmode cmd
To allow drivers to implement per-interface testmode operations more easily, pass a wdev pointer if any identification for one was given from userspace. Clean up the code a bit while at it. Signed-off-by: David Spinadel <david.spinadel@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 44449ceb7966..c77916ffe74c 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2300,7 +2300,9 @@ static void ieee80211_rfkill_poll(struct wiphy *wiphy)
2300} 2300}
2301 2301
2302#ifdef CONFIG_NL80211_TESTMODE 2302#ifdef CONFIG_NL80211_TESTMODE
2303static int ieee80211_testmode_cmd(struct wiphy *wiphy, void *data, int len) 2303static int ieee80211_testmode_cmd(struct wiphy *wiphy,
2304 struct wireless_dev *wdev,
2305 void *data, int len)
2304{ 2306{
2305 struct ieee80211_local *local = wiphy_priv(wiphy); 2307 struct ieee80211_local *local = wiphy_priv(wiphy);
2306 2308