#4675 closed enhancement (fixed)
Add country option for hostapd
Reported by: | thomas@… | Owned by: | developers |
---|---|---|---|
Priority: | normal | Milestone: | Barrier Breaker 14.07 |
Component: | packages | Version: | |
Keywords: | hostapd, crda, country, wireless, wifi | Cc: |
Description
In newer Linux/compat-wireless versions, the kernel can call crda to obtain a list of allowed channels for your country. However, some application has to set this country code. "iw" can be used for that, but wpa_supplicant and hostapd also have this capability when using the nl80211 driver (available in their 0.6 branches).
I am attaching a patch to add a "country" option to the "wifi-device" configuration section. When using this option, you see the following (or similar) in dmesg after a wifi restart:
cfg80211: Calling CRDA for country: DE
cfg80211: Regulatory domain changed to country: DE
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm)
(5150000 KHz - 5255000 KHz @ 40000 KHz), (N/A, 2301 mBm)
(5470000 KHz - 5650000 KHz @ 40000 KHz), (N/A, 3000 mBm)
Attachments (1)
Change History (3)
Changed 9 years ago by thomas@…
comment:1 Changed 9 years ago by nbd
- Resolution set to fixed
- Status changed from new to closed
added in r14608
comment:2 Changed 4 years ago by jow
- Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07
Milestone Attitude Adjustment 12.09 deleted
patch against trunk