cfg80211: make __cfg80211_join_ibss() static
authorZhao, Gang <gamerh2o@gmail.com>
Sat, 8 Mar 2014 03:01:24 +0000 (11:01 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Mar 2014 20:29:56 +0000 (21:29 +0100)
Function __cfg80211_join_ibss() is only used in net/wireless/ibss.c,
so make it static.

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.h
net/wireless/ibss.c

index 3975ffa8feb2536b57984e173f8223714afeeb31..579149d0ea34f42f2a865ab705c355cc9c2ce085 100644 (file)
@@ -246,10 +246,6 @@ void cfg80211_bss_age(struct cfg80211_registered_device *dev,
                       unsigned long age_secs);
 
 /* IBSS */
-int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev,
-                        struct net_device *dev,
-                        struct cfg80211_ibss_params *params,
-                        struct cfg80211_cached_keys *connkeys);
 int cfg80211_join_ibss(struct cfg80211_registered_device *rdev,
                       struct net_device *dev,
                       struct cfg80211_ibss_params *params,
index 349db9ddc0d13737eb84f874bc3b556b61b38026..a6b5bdad039c7450f276d1e56994661e2e41952c 100644 (file)
@@ -82,10 +82,10 @@ void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid,
 }
 EXPORT_SYMBOL(cfg80211_ibss_joined);
 
-int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev,
-                        struct net_device *dev,
-                        struct cfg80211_ibss_params *params,
-                        struct cfg80211_cached_keys *connkeys)
+static int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev,
+                               struct net_device *dev,
+                               struct cfg80211_ibss_params *params,
+                               struct cfg80211_cached_keys *connkeys)
 {
        struct wireless_dev *wdev = dev->ieee80211_ptr;
        struct ieee80211_channel *check_chan;