Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Nov 2006 10:07:36 +0900 (JST)
From:      YAMAMOTO Shigeru <shigeru@iij.ad.jp>
To:        freebsd-current@freebsd.org
Subject:   how to get supported channels from iwi firmware
Message-ID:  <20061121.100736.48665070.shigeru@iij.ad.jp>

next in thread | raw e-mail | index | archive | help
----Next_Part(Tue_Nov_21_10_07_36_2006_863)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


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@iij.ad.jp>

----Next_Part(Tue_Nov_21_10_07_36_2006_863)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="iwi.j52.diff"

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 =

----Next_Part(Tue_Nov_21_10_07_36_2006_863)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061121.100736.48665070.shigeru>