diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2014-05-07 13:05:12 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-05-08 06:00:12 -0400 |
commit | f29f58a9e53252a50eaea0ece59f1af5fad56b5f (patch) | |
tree | c931471688832e143bb856fda1405e04697c2af0 /net/mac80211/cfg.c | |
parent | c3d620362dfe9218c7637354c7bce344ea771a31 (diff) |
mac80211: fix sparse warning caused by __ieee80211_channel_switch()
Commit 59af6928 (mac80211: fix CSA tx queue stopping) introduced a
sparse warning:
net/mac80211/cfg.c:3274:5: warning: symbol '__ieee80211_channel_switch' was not declared. Should it be static?
Fix it by declaring the function static.
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 7d358037d4e9..7c5644572253 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -3282,8 +3282,9 @@ static int ieee80211_set_csa_beacon(struct ieee80211_sub_if_data *sdata, | |||
3282 | return 0; | 3282 | return 0; |
3283 | } | 3283 | } |
3284 | 3284 | ||
3285 | int __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, | 3285 | static int |
3286 | struct cfg80211_csa_settings *params) | 3286 | __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, |
3287 | struct cfg80211_csa_settings *params) | ||
3287 | { | 3288 | { |
3288 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 3289 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
3289 | struct ieee80211_local *local = sdata->local; | 3290 | struct ieee80211_local *local = sdata->local; |