diff options
author | Holger Schurig <h.schurig@mn-solutions.de> | 2009-09-11 10:13:53 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-14 14:36:04 -0400 |
commit | a4e7b730f1c8c9179def7033a024183c58cf2538 (patch) | |
tree | b81bee6f9c4a69b5b9c81a2c03fe8284a6662daf | |
parent | d37b7da39dbac8197e41a5f9c8162730f6b36d8b (diff) | |
download | linux-a4e7b730f1c8c9179def7033a024183c58cf2538.tar.bz2 |
cfg80211: use cfg80211_wext_freq() for freq conversion
WEXT's "struct iw_freq" can also be used to handle a channel. This patch now
uses cfg80211_wext_freq() instead of hand-converting the frequency. That
allows user-space to specify channels as well, like with SIOCSIWFREQ.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/wireless/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 4c210c2debc6..6c20b6515ab0 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -662,7 +662,7 @@ int cfg80211_wext_siwscan(struct net_device *dev, int k; int wiphy_freq = wiphy->bands[band]->channels[j].center_freq; for (k = 0; k < wreq->num_channels; k++) { - int wext_freq = wreq->channel_list[k].m / 100000; + int wext_freq = cfg80211_wext_freq(wiphy, &wreq->channel_list[k]); if (wext_freq == wiphy_freq) goto wext_freq_found; } |