From: matthieu castet Date: Mon, 12 Sep 2005 21:31:39 +0000 (+0200) Subject: [PATCH] airo : fix channel number in scan X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1141455d5e29e47004ad61e0fc385cb612d4e51c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] airo : fix channel number in scan this patch display the correct channel number with iwlist scan Signed-off-by: Matthieu CASTET Signed-off-by: Jeff Garzik --- 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);