#721865 hostapd: regdomain updated after channel setting is performed

Package:
hostapd
Source:
wpa
Description:
access point and authentication server for Wi-Fi and Ethernet
Submitter:
Martin Hodges
Date:
2024-12-13 11:51:01 UTC
Severity:
normal
Tags:
#721865#5
Date:
2013-09-04 20:21:25 UTC
From:
To:
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

#721865#10
Date:
2013-09-04 21:35:05 UTC
From:
To:
Hi

On Wednesday 04 September 2013, Martin Hodges wrote:
[…]
[…]

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

#721865#17
Date:
2013-09-05 19:20:46 UTC
From:
To:
Sorry.

I originally tried solely to use the 'country_code' option
in /etc/hostapd/hostapd.conf assuming that it would take care of everything.

Why would I need to?

Oh?

Yes. I've been down that road. I had to edit the EEPROM contents on the
Atheros card I had been using.

I am trying to use a PCIE rt2800 card.
Attached.
country NO:
        (2402 - 2482 @ 40), (N/A, 20)
        (5170 - 5250 @ 40), (N/A, 20)
        (5250 - 5330 @ 40), (N/A, 20), DFS
        (5490 - 5710 @ 40), (N/A, 27), DFS

Attached

The output from syslog was useful as it showed the relation between the
loading of the wireless module, the error messages from hostapd -then the
setting of the reg_domain of the wireless card.

Attached an excerpt concerning these events.

#721865#22
Date:
2022-02-10 23:41:49 UTC
From:
To:
Hello, Do you want to join the great Illuminati brotherhood to become rich, famous and protected in life, join us today and kick out your financial problems, if you wish to become a member of the Illuminati
CONTACT US NOW.

Email: illuminatih1222@gmail.com
Gr.James pascal

#721865#27
Date:
2022-02-10 23:41:49 UTC
From:
To:
Hello, Do you want to join the great Illuminati brotherhood to become rich, famous and protected in life, join us today and kick out your financial problems, if you wish to become a member of the Illuminati
CONTACT US NOW.

Email: illuminatih1222@gmail.com
Gr.James pascal

#721865#32
Date:
2024-12-13 11:50:12 UTC
From:
To:
Regards
Nikki Fenton.