Subject: kern/26710: ath: can't set countrycode
To: None <gnats-bugs@gnats.NetBSD.org>
From: Hubert Feyrer <feyrer@miyu.feyrer.net>
List: netbsd-bugs
Date: 08/19/2004 00:35:56
>Number:         26710
>Category:       kern
>Synopsis:       ath: can't set countrycode
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    dyoung
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 18 22:37:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hubert Feyrer
>Release:        NetBSD 2.0_BETA
>Organization:
bla!
>Environment:
	ath0 at pci2 dev 7 function 0
	ath0: interrupting at irq 11
	ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3
	ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
	ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
	ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
	ath0: turbo rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
	ath0: 802.11 address: 00:0b:6b:30:d3:2b

System: NetBSD miyu 2.0_BETA NetBSD 2.0_BETA (MIYU) #15: Tue Aug 17 02:17:44 MEST 2004 feyrer@miyu:/home/cvs/src-2.0/sys/arch/i386/compile/obj.i386/MIYU i386
Architecture: i386
Machine: i386
>Description:
	The countrycode in the ath(4) driver can't be set, which limits the
	number of channels available. In germany, a channel list of 100-140
	or 149 would be required, but they are not available in the default
	list that "wiconfig ath0" lists:

		Channel list:                           [ 2 3 4 5 6 7 8 9 10 11 12 ]
	
	In Linux, the channel list can be changed via the country code.
	Unfortunately, that one is read-only in NetBSD:

		pc9649# sysctl -w hw.ath.countrycode=276
		sysctl: hw.ath.countrycode: sysctl() failed with Operation not permitted

	(List of country codes seems to be identical with the Unicode
	UN Numeric-3 country value from 
	http://www.unicode.org/onlinedat/countries.html)


>How-To-Repeat:
	See above.

>Fix:
	Yes please!
>Release-Note:
>Audit-Trail:
>Unformatted: