diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2013-12-13 14:13:50 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-12-16 09:07:46 -0500 |
commit | 82a8e17d4a4faae2366aca61c617af87bcc822c1 (patch) | |
tree | 3232357ffa4ea547480ff1e10403439a0240f9b5 /net/mac80211/cfg.c | |
parent | 43552be1da3c420931c89727b6115b7fa35368f8 (diff) |
mac80211: refactor ieee80211_ibss_process_chanswitch()
Refactor ieee80211_ibss_process_chanswitch() to use
ieee80211_channel_switch() and avoid code duplication.
Tested by: Simon Wunderlich <sw@simonwunderlich.de>
Acked by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index df32df383f52..35bb71be72bb 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -3038,8 +3038,8 @@ unlock: | |||
3038 | sdata_unlock(sdata); | 3038 | sdata_unlock(sdata); |
3039 | } | 3039 | } |
3040 | 3040 | ||
3041 | static int ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, | 3041 | int ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, |
3042 | struct cfg80211_csa_settings *params) | 3042 | struct cfg80211_csa_settings *params) |
3043 | { | 3043 | { |
3044 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 3044 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
3045 | struct ieee80211_local *local = sdata->local; | 3045 | struct ieee80211_local *local = sdata->local; |