aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/scan.c
diff options
context:
space:
mode:
authorZhao, Gang <gamerh2o@gmail.com>2014-04-08 21:28:06 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-04-10 04:06:19 -0400
commit96998e3a2f6aeb6e7d91f6b1ced98d4b903d75fd (patch)
treed57029884d2dbd6708af3ec16e029038c6b23523 /net/wireless/scan.c
parentaa51142fc5dee212ddcdab274b50cd541b7f2c49 (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/wireless/scan.c')
-rw-r--r--net/wireless/scan.c6
1 files changed, 5 insertions, 1 deletions
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 }