Re: [ PATCH ] airo : fix channel number in scan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



matthieu castet wrote:
Hi,

this patch display the correct channel number with iwlist scan


Please review it and apply it.


Matthieu CASTET
I forgot the
Signed-off-by: Matthieu CASTET <castet.matthieu@xxxxxxx>

--- linux-2.6.13rc/drivers/net/wireless/airo.c	2005-08-28 19:16:11.000000000 +0200
+++ linux-2.6.13/drivers/net/wireless/airo.c	2005-09-12 23:05:44.000000000 +0200
@@ -6853,7 +6846,10 @@
 	/* 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);
 

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux