diff options
author | Daniel Drake <dsd@gentoo.org> | 2006-11-22 00:05:30 (GMT) |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-02 05:12:05 (GMT) |
commit | 84bc715c465f76584fc5127955fca0c61592e04b (patch) | |
tree | 85205c39f49e3e62c72f3d2d98a1d87e56ad5095 /drivers/net/wireless/zd1211rw/zd_ieee80211.c | |
parent | 571d6eee9b5bce28fcbeb7588890ad5ca3f8c718 (diff) | |
download | linux-fsl-qoriq-84bc715c465f76584fc5127955fca0c61592e04b.tar.xz |
[PATCH] zd1211rw: Remove IW_FREQ_AUTO support
http://bugzilla.kernel.org/show_bug.cgi?id=7399
zd1211rw's support for IW_FREQ_AUTO is broken: when specified, the driver
tries to change to a channel specified in an uninitialized integer. As
IW_FREQ_AUTO is hard to implement properly, the solution (at least for now)
is to drop support for it and start ignoring the flags like all other wireless
drivers do.
This has the added advantage that kismet also starts working with zd1211rw,
even though kismet requesting IW_FREQ_AUTO is also a bug (fixed in their svn)
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_ieee80211.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_ieee80211.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_ieee80211.c b/drivers/net/wireless/zd1211rw/zd_ieee80211.c index 66905f7..1b215a0 100644 --- a/drivers/net/wireless/zd1211rw/zd_ieee80211.c +++ b/drivers/net/wireless/zd1211rw/zd_ieee80211.c @@ -133,9 +133,6 @@ int zd_find_channel(u8 *channel, const struct iw_freq *freq) int i, r; u32 mhz; - if (!(freq->flags & IW_FREQ_FIXED)) - return 0; - if (freq->m < 1000) { if (freq->m > NUM_CHANNELS || freq->m == 0) return -EINVAL; |