diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2013-12-13 21:13:50 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-12-16 15:07:46 +0100 |
commit | 82a8e17d4a4faae2366aca61c617af87bcc822c1 (patch) | |
tree | 3232357ffa4ea547480ff1e10403439a0240f9b5 /net/mac80211/cfg.c | |
parent | 43552be1da3c420931c89727b6115b7fa35368f8 (diff) | |
download | talos-obmc-linux-82a8e17d4a4faae2366aca61c617af87bcc822c1.tar.gz talos-obmc-linux-82a8e17d4a4faae2366aca61c617af87bcc822c1.zip |
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: sdata_unlock(sdata); } -static int ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, - struct cfg80211_csa_settings *params) +int ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, + struct cfg80211_csa_settings *params) { struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_local *local = sdata->local; |