how to get supported channels from iwi firmware
YAMAMOTO Shigeru
shigeru at iij.ad.jp
Mon Nov 20 17:07:39 PST 2006
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>
-------------- next part --------------
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
@@ -410,6 +410,13 @@
/* 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 =
More information about the freebsd-current
mailing list