aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-11-19 10:05:09 -0500
committerJohannes Berg <johannes.berg@intel.com>2012-11-19 10:20:37 -0500
commit49884568628db47a1f8c1f596c6ab3b8db81b73c (patch)
treec5fb7a7c9c5a4ea3c91b201f5f0bb692eaa8afe1 /drivers/net
parent3475b0946bd2057497628790d4b4fce4bfdcc304 (diff)
mac80211: make remain_on_channel() op pass vif param
Drivers (e.g. wl12xx) might need to know the vif to roc on (mainly in order to configure the rx filters correctly). Add the vif to the op params, and update the current users (iwlwifi) to use the new api. Signed-off-by: Eliad Peller <eliad@wizery.com> [fix hwsim] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/mac80211.c1
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/mac80211.c b/drivers/net/wireless/iwlwifi/dvm/mac80211.c
index ff8162d4c454..e75d80341f28 100644
--- a/drivers/net/wireless/iwlwifi/dvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/dvm/mac80211.c
@@ -1032,6 +1032,7 @@ done:
1032} 1032}
1033 1033
1034static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw, 1034static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw,
1035 struct ieee80211_vif *vif,
1035 struct ieee80211_channel *channel, 1036 struct ieee80211_channel *channel,
1036 enum nl80211_channel_type channel_type, 1037 enum nl80211_channel_type channel_type,
1037 int duration) 1038 int duration)
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index c242f5a9b8bc..3baa51f1bb83 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -1453,6 +1453,7 @@ static void hw_roc_done(struct work_struct *work)
1453} 1453}
1454 1454
1455static int mac80211_hwsim_roc(struct ieee80211_hw *hw, 1455static int mac80211_hwsim_roc(struct ieee80211_hw *hw,
1456 struct ieee80211_vif *vif,
1456 struct ieee80211_channel *chan, 1457 struct ieee80211_channel *chan,
1457 enum nl80211_channel_type channel_type, 1458 enum nl80211_channel_type channel_type,
1458 int duration) 1459 int duration)