mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
af61a16518
commit
fc73f11f5f
8 changed files with 41 additions and 18 deletions
|
|
@ -2300,7 +2300,9 @@ static void ieee80211_rfkill_poll(struct wiphy *wiphy)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_NL80211_TESTMODE
|
||||
static int ieee80211_testmode_cmd(struct wiphy *wiphy, void *data, int len)
|
||||
static int ieee80211_testmode_cmd(struct wiphy *wiphy,
|
||||
struct wireless_dev *wdev,
|
||||
void *data, int len)
|
||||
{
|
||||
struct ieee80211_local *local = wiphy_priv(wiphy);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue