Skip to content

Latest commit

 

History

History
89 lines (73 loc) · 2.91 KB

README-wifi.md

File metadata and controls

89 lines (73 loc) · 2.91 KB

Wifi

Known Issues

ath10k does not change country code

The country of the wireless card cannot be changed. It's always US or UNSET.

The wireless-regdb is signed and the default debian kernel only accept untouched and signed regdbs.

Options:

  • Rebuild whole kernel without regdb crypto
  • Patch ath kernel module like so
ii  wireless-regdb                   2022.06.06-1                   all          wireless regulatory database for Linux
ii  firmware-atheros                 20230210-5                     all          Binary firmware for Qualcomm Atheros wireless cards
~# cat /boot/config-6.4.0-3-amd64 | grep 'CFG80211' | grep -v '#'
CONFIG_CFG80211=m
CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y
CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_CFG80211_CRDA_SUPPORT=y
CONFIG_CFG80211_WEXT=y
CONFIG_CFG80211_WEXT_EXPORT=y
~# cat /etc/modprobe.d/cfg80211.conf
options cfg80211 internal_regdb=y
options cfg80211 crda_support=y
options cfg80211 ieee80211_regdom=DE
05:00.0 Network controller: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ath10k_pci 0000:05:00.0 wlp5s0: renamed from wlan0
ath10k_pci 0000:05:00.0: pdev param 0 not supported by firmware
~# iw reg get
global
country 98: DFS-UNSET
        (2400 - 2472 @ 40), (N/A, 20), (N/A)
        (5150 - 5250 @ 100), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
        (5250 - 5350 @ 100), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
        (5470 - 5725 @ 160), (N/A, 24), (0 ms), DFS
        (5725 - 5730 @ 5), (N/A, 13), (0 ms), DFS
        (5730 - 5850 @ 80), (N/A, 13), (N/A)
        (5850 - 5875 @ 25), (N/A, 13), (N/A), NO-OUTDOOR, PASSIVE-SCAN
        (5945 - 6425 @ 160), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
        (57240 - 66000 @ 2160), (N/A, 40), (N/A)

phy#0
country US: DFS-FCC
        (902 - 904 @ 2), (N/A, 30), (N/A)
        (904 - 920 @ 16), (N/A, 30), (N/A)
        (920 - 928 @ 8), (N/A, 30), (N/A)
        (2400 - 2472 @ 40), (N/A, 30), (N/A)
        (5150 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5350 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
        (5470 - 5730 @ 160), (N/A, 24), (0 ms), DFS
        (5730 - 5850 @ 80), (N/A, 30), (N/A), AUTO-BW
        (5850 - 5895 @ 40), (N/A, 27), (N/A), NO-OUTDOOR, AUTO-BW, PASSIVE-SCAN
        (5925 - 7125 @ 320), (N/A, 12), (N/A), NO-OUTDOOR, PASSIVE-SCAN
        (57240 - 71000 @ 2160), (N/A, 40), (N/A)

Resources

Wifi, hostapd etc: