diff options
author | matthieu castet <castet.matthieu@free.fr> | 2005-09-12 23:31:39 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-14 14:24:22 +0200 |
commit | 1141455d5e29e47004ad61e0fc385cb612d4e51c (patch) | |
tree | 6dd7e7e2e5e948a3b8fb817240204e0fbd450d22 /drivers/net/wireless | |
parent | [PATCH] Correct xircom_cb use of CONFIG_NET_POLL_CONTROLLER (diff) | |
download | linux-1141455d5e29e47004ad61e0fc385cb612d4e51c.tar.xz linux-1141455d5e29e47004ad61e0fc385cb612d4e51c.zip |
[PATCH] airo : fix channel number in scan
this patch display the correct channel number with iwlist scan
Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/airo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 2be65d308fbe..06998c2240d9 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c @@ -6852,7 +6852,10 @@ static inline char *airo_translate_scan(struct net_device *dev, /* Add frequency */ iwe.cmd = SIOCGIWFREQ; iwe.u.freq.m = le16_to_cpu(bss->dsChannel); - iwe.u.freq.m = frequency_list[iwe.u.freq.m] * 100000; + /* iwe.u.freq.m containt the channel (starting 1), our + * frequency_list array start at index 0... + */ + iwe.u.freq.m = frequency_list[iwe.u.freq.m - 1] * 100000; iwe.u.freq.e = 1; current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe, IW_EV_FREQ_LEN); |