how to get supported channels from iwi firmware

From: YAMAMOTO Shigeru <shigeru_at_iij.ad.jp>
Date: Tue, 21 Nov 2006 10:07:36 +0900 (JST)
Hi, all,

I'm using iwi(Intel(R) PRO/Wireless 2915ABG).
iwi driver does not support 802.11j channels (34, 38, 42, 46) which channles
are used in Japan. 
# a channel set, 34, 38, 42, 46 is called 'J52' in Japan.

So, I fix iwi to support 802.11j channels.
But it is no good fix.

I think it is better to get supported channels list from iwi firmware.
Does anybody know how to get supported channels list from iwi firmware?

Thanks,
-------
YAMAMOTO Shigeru	<shigeru_at_iij.ad.jp>

Index: sys/dev/iwi/if_iwi.c
===================================================================
RCS file: /share/cvsup/FreeBSD/current/usr/src/sys/dev/iwi/if_iwi.c,v
retrieving revision 1.42
diff -u -r1.42 if_iwi.c
--- sys/dev/iwi/if_iwi.c	7 Nov 2006 19:03:42 -0000	1.42
+++ sys/dev/iwi/if_iwi.c	21 Nov 2006 00:38:02 -0000
_at__at_ -410,6 +410,13 _at__at_
 		/* set supported .11a rates (2915ABG only) */
 		ic->ic_sup_rates[IEEE80211_MODE_11A] = iwi_rateset_11a;
 
+		/* set supported .11a(802.11j) channels, which is used in Japan */
+		for (i = 34; i <= 46; i += 4) {
+			ic->ic_channels[i].ic_freq =
+			    ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ);
+			ic->ic_channels[i].ic_flags = IEEE80211_CHAN_A;
+		}
+
 		/* set supported .11a channels */
 		for (i = 36; i <= 64; i += 4) {
 			ic->ic_channels[i].ic_freq =
Received on Tue Nov 21 2006 - 00:07:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:03 UTC