[pkg-wpa-devel] Bug#721865: Bug#721865: hostapd: regdomain updated after channel setting is performed

Stefan Lippers-Hollmann s.L-H at gmx.de
Wed Sep 4 21:35:05 UTC 2013


Control: tags -1 + moreinfo

Hi

On Wednesday 04 September 2013, Martin Hodges wrote:
[…]
> Dear Maintainer,
> Stumbled across while migrating the home server from lenny to Wheezy.
> 
> I live in Norway and few people use channel 13, so I do.
> 
> Only listing modules in /etc/modules did not help.
> In addition: Calling 'iw set reg NO' in /etc/network/interfaces under section for wlan0 helped.
> 
> when the error is present:
> The call to CRDA seems to comes after the channel setting is performed.
> Trying to set to CH13 before changing the country to Norway will not work
[…]

I haven't quite understood how, and in which order, you're calling 
(explicitly or implicity be system events) crda, could you please 
clarify that a bit?

What you'd usually do, is configuring CRDA:
/etc/default/crda:
	REGDOMAIN=NO

In addition you'd configure hostapd:
$DEAMON_CONF (hostapd.conf):
	country_code=NO

Keep in mind that your kernel also receives external hints to update 
and intersect the active regulatory domain, be it by your device's 
EEPROM/ OTP (this is particularly valid for Atheros devices[1]) or that
is might even receive country IEs (IEEE 802.11d) from access points 
nearby. So it is a bit hard to guess what goes wrong on your system,
without further information. Fortunately dmesg usually tells a pretty 
good story about all regulatory hints received and how they arrived.

Useful information to debug this:
- full dmesg output since the system booted
- /sbin/iw reg get
- /sbin/iw list

Regards
	Stefan Lippers-Hollmann

[1]	http://wireless.kernel.org/en/users/Drivers/ath#Regulatory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-wpa-devel/attachments/20130904/e0d60188/attachment.sig>


More information about the Pkg-wpa-devel mailing list