diff options
author | Zhao, Gang <gamerh2o@gmail.com> | 2014-04-08 21:28:06 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-04-10 04:06:19 -0400 |
commit | 96998e3a2f6aeb6e7d91f6b1ced98d4b903d75fd (patch) | |
tree | d57029884d2dbd6708af3ec16e029038c6b23523 /net | |
parent | aa51142fc5dee212ddcdab274b50cd541b7f2c49 (diff) |
cfg80211: remove unused wiphy argument from cfg80211_wext_freq()
cfg80211_wext_freq() is declared in wext-compat.h, but its
parameter struct wiphy's declaration is not included there.
As the parameter isn't used, just remove it.
Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
[remove parameter instead of changing to netdev]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/ibss.c | 2 | ||||
-rw-r--r-- | net/wireless/scan.c | 6 | ||||
-rw-r--r-- | net/wireless/wext-compat.c | 8 | ||||
-rw-r--r-- | net/wireless/wext-compat.h | 2 | ||||
-rw-r--r-- | net/wireless/wext-sme.c | 2 |
5 files changed, 12 insertions, 8 deletions
diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c index 071e99c75e82..e16cc132c58a 100644 --- a/net/wireless/ibss.c +++ b/net/wireless/ibss.c | |||
@@ -322,7 +322,7 @@ int cfg80211_ibss_wext_siwfreq(struct net_device *dev, | |||
322 | if (!rdev->ops->join_ibss) | 322 | if (!rdev->ops->join_ibss) |
323 | return -EOPNOTSUPP; | 323 | return -EOPNOTSUPP; |
324 | 324 | ||
325 | freq = cfg80211_wext_freq(wdev->wiphy, wextfreq); | 325 | freq = cfg80211_wext_freq(wextfreq); |
326 | if (freq < 0) | 326 | if (freq < 0) |
327 | return freq; | 327 | return freq; |
328 | 328 | ||
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 7d09a712cb1f..13f611469e6c 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -1147,7 +1147,11 @@ int cfg80211_wext_siwscan(struct net_device *dev, | |||
1147 | int k; | 1147 | int k; |
1148 | int wiphy_freq = wiphy->bands[band]->channels[j].center_freq; | 1148 | int wiphy_freq = wiphy->bands[band]->channels[j].center_freq; |
1149 | for (k = 0; k < wreq->num_channels; k++) { | 1149 | for (k = 0; k < wreq->num_channels; k++) { |
1150 | int wext_freq = cfg80211_wext_freq(wiphy, &wreq->channel_list[k]); | 1150 | struct iw_freq *freq = |
1151 | &wreq->channel_list[k]; | ||
1152 | int wext_freq = | ||
1153 | cfg80211_wext_freq(freq); | ||
1154 | |||
1151 | if (wext_freq == wiphy_freq) | 1155 | if (wext_freq == wiphy_freq) |
1152 | goto wext_freq_found; | 1156 | goto wext_freq_found; |
1153 | } | 1157 | } |
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 5661a54ac7ee..836b006ab066 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c | |||
@@ -253,12 +253,12 @@ EXPORT_SYMBOL_GPL(cfg80211_wext_giwrange); | |||
253 | 253 | ||
254 | /** | 254 | /** |
255 | * cfg80211_wext_freq - get wext frequency for non-"auto" | 255 | * cfg80211_wext_freq - get wext frequency for non-"auto" |
256 | * @wiphy: the wiphy | 256 | * @dev: the net device |
257 | * @freq: the wext freq encoding | 257 | * @freq: the wext freq encoding |
258 | * | 258 | * |
259 | * Returns a frequency, or a negative error code, or 0 for auto. | 259 | * Returns a frequency, or a negative error code, or 0 for auto. |
260 | */ | 260 | */ |
261 | int cfg80211_wext_freq(struct wiphy *wiphy, struct iw_freq *freq) | 261 | int cfg80211_wext_freq(struct iw_freq *freq) |
262 | { | 262 | { |
263 | /* | 263 | /* |
264 | * Parse frequency - return 0 for auto and | 264 | * Parse frequency - return 0 for auto and |
@@ -787,7 +787,7 @@ static int cfg80211_wext_siwfreq(struct net_device *dev, | |||
787 | case NL80211_IFTYPE_ADHOC: | 787 | case NL80211_IFTYPE_ADHOC: |
788 | return cfg80211_ibss_wext_siwfreq(dev, info, wextfreq, extra); | 788 | return cfg80211_ibss_wext_siwfreq(dev, info, wextfreq, extra); |
789 | case NL80211_IFTYPE_MONITOR: | 789 | case NL80211_IFTYPE_MONITOR: |
790 | freq = cfg80211_wext_freq(wdev->wiphy, wextfreq); | 790 | freq = cfg80211_wext_freq(wextfreq); |
791 | if (freq < 0) | 791 | if (freq < 0) |
792 | return freq; | 792 | return freq; |
793 | if (freq == 0) | 793 | if (freq == 0) |
@@ -798,7 +798,7 @@ static int cfg80211_wext_siwfreq(struct net_device *dev, | |||
798 | return -EINVAL; | 798 | return -EINVAL; |
799 | return cfg80211_set_monitor_channel(rdev, &chandef); | 799 | return cfg80211_set_monitor_channel(rdev, &chandef); |
800 | case NL80211_IFTYPE_MESH_POINT: | 800 | case NL80211_IFTYPE_MESH_POINT: |
801 | freq = cfg80211_wext_freq(wdev->wiphy, wextfreq); | 801 | freq = cfg80211_wext_freq(wextfreq); |
802 | if (freq < 0) | 802 | if (freq < 0) |
803 | return freq; | 803 | return freq; |
804 | if (freq == 0) | 804 | if (freq == 0) |
diff --git a/net/wireless/wext-compat.h b/net/wireless/wext-compat.h index 5d766b0118e8..ebcacca2f731 100644 --- a/net/wireless/wext-compat.h +++ b/net/wireless/wext-compat.h | |||
@@ -50,7 +50,7 @@ int cfg80211_wext_siwgenie(struct net_device *dev, | |||
50 | struct iw_point *data, char *extra); | 50 | struct iw_point *data, char *extra); |
51 | 51 | ||
52 | 52 | ||
53 | int cfg80211_wext_freq(struct wiphy *wiphy, struct iw_freq *freq); | 53 | int cfg80211_wext_freq(struct iw_freq *freq); |
54 | 54 | ||
55 | 55 | ||
56 | extern const struct iw_handler_def cfg80211_wext_handler; | 56 | extern const struct iw_handler_def cfg80211_wext_handler; |
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c index 86c331a65664..c05a0183df31 100644 --- a/net/wireless/wext-sme.c +++ b/net/wireless/wext-sme.c | |||
@@ -75,7 +75,7 @@ int cfg80211_mgd_wext_siwfreq(struct net_device *dev, | |||
75 | if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION)) | 75 | if (WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION)) |
76 | return -EINVAL; | 76 | return -EINVAL; |
77 | 77 | ||
78 | freq = cfg80211_wext_freq(wdev->wiphy, wextfreq); | 78 | freq = cfg80211_wext_freq(wextfreq); |
79 | if (freq < 0) | 79 | if (freq < 0) |
80 | return freq; | 80 | return freq; |
81 | 81 | ||