greearb / ath10k-ct

Stand-alone ath10k driver based on Candela Technologies Linux kernel.
111 stars 40 forks source link

compiled linux-ct-5.8, wifi not up because of regdomain set issue. #151

Closed gsustek closed 3 years ago

gsustek commented 4 years ago

Please provide this info. See this link for more info on how to gather debug info: http://www.candelatech.com/ath10k-bugs.php

Maybe: this is issue...

https://bbs.archlinux.org/viewtopic.php?id=254535

Description of the problem (how to configure, how to reproduce, how often it happens). Wifi is not up. i compile your kernel, install on Ubuntu 20.04 error: hostapd_free_hapd_data: Interface wlp6s0 wasn't started: Sep 01 19:11:45 u1804 hostapd[9318]: Channel 36 (primary) not allowed for AP mode, flags: 0x11873 NO-IR Sep 01 19:11:45 u1804 hostapd[9318]: wlp6s0: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a Sep 01 19:11:45 u1804 hostapd[9318]: wlp6s0: IEEE 802.11 Hardware does not support configured channel Sep 01 19:11:45 u1804 hostapd[9318]: Could not select hw_mode and channel. (-3) Sep 01 19:11:45 u1804 hostapd[9318]: wlp6s0: interface state COUNTRY_UPDATE->DISABLED

Software (OS, Firmware version, kernel, driver, etc) ubuntu 20.04 https://github.com/greearb/linux-ct-5.8

Hardware (NIC chipset, platform, etc) Atheros QCA9984

Logs (dmesg, maybe supplicant and/or hostap)

[Thu Sep 3 18:47:15 2020] ath10k 5.7 driver, optimized for CT firmware, probing pci device: 0x46. [Thu Sep 3 18:47:15 2020] ath10k_pci 0000:06:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [Thu Sep 3 18:47:15 2020] ath10k_pci 0000:06:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [Thu Sep 3 18:47:15 2020] ath10k_pci 0000:06:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [Thu Sep 3 18:47:15 2020] ath10k_pci 0000:06:00.0: firmware ver 10.4b-ct-9984-fH-13-795874169 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,htt-mgt-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 123549a3 [Thu Sep 3 18:47:16 2020] ath10k_pci 0000:06:00.0: board_file api 2 bmi_id 0:31 crc32 e807b522 [Thu Sep 3 18:47:19 2020] ath10k_pci 0000:06:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96 [Thu Sep 3 18:47:19 2020] ath10k_pci 0000:06:00.0: msdu-desc: 2500 skid: 32 [Thu Sep 3 18:47:19 2020] ath10k_pci 0000:06:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0' [Thu Sep 3 18:47:19 2020] ath10k_pci 0000:06:00.0: wmi print 'free: 84936 iram: 13572 sram: 11224' [Thu Sep 3 18:47:19 2020] ath10k_pci 0000:06:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 32 raw 0 hwcrypto 1 [Thu Sep 3 18:47:19 2020] ath10k_pci 0000:06:00.0 wlp6s0: renamed from wlan0 [Thu Sep 3 18:47:22 2020] ath10k_pci 0000:06:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96 [Thu Sep 3 18:47:22 2020] ath10k_pci 0000:06:00.0: msdu-desc: 2500 skid: 32 [Thu Sep 3 18:47:22 2020] ath10k_pci 0000:06:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0' [Thu Sep 3 18:47:22 2020] ath10k_pci 0000:06:00.0: wmi print 'free: 84936 iram: 13572 sram: 11224' [Thu Sep 3 18:47:22 2020] ath10k_pci 0000:06:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4 [Thu Sep 3 18:47:23 2020] ath10k_pci 0000:06:00.0: NOTE: Firmware DBGLOG output disabled in debug_mask: 0x10000000 [Thu Sep 3 18:47:33 2020] ath10k_pci 0000:06:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96 [Thu Sep 3 18:47:33 2020] ath10k_pci 0000:06:00.0: msdu-desc: 2500 skid: 32 [Thu Sep 3 18:47:33 2020] ath10k_pci 0000:06:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0' [Thu Sep 3 18:47:33 2020] ath10k_pci 0000:06:00.0: wmi print 'free: 84936 iram: 13572 sram: 11224' [Thu Sep 3 18:47:33 2020] ath10k_pci 0000:06:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4 [Thu Sep 3 18:47:33 2020] ath10k_pci 0000:06:00.0: peer-unmap-event: unknown peer id 0 [Thu Sep 3 18:47:37 2020] ath10k_pci 0000:06:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96 [Thu Sep 3 18:47:37 2020] ath10k_pci 0000:06:00.0: msdu-desc: 2500 skid: 32 [Thu Sep 3 18:47:37 2020] ath10k_pci 0000:06:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0' [Thu Sep 3 18:47:37 2020] ath10k_pci 0000:06:00.0: wmi print 'free: 84936 iram: 13572 sram: 11224' [Thu Sep 3 18:47:37 2020] ath10k_pci 0000:06:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4

[Thu Sep 3 18:56:16 2020] ath10k 5.7 driver, optimized for CT firmware, probing pci device: 0x46. [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: vdevs val: 8 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: peers val: 10 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: active_peers val: 10 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: stations val: 10 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: rate_ctrl_objs val: 7 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: regdom val: 840 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: fwver val: 5 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: nohwcrypt val: 0 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: ct_sta_mode val: 0 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: tx_desc val: 2200 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: tids val: 450 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: skid_limit val: 360 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: fwcfg key: max_amsdus val: 3 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0 [Thu Sep 3 18:56:16 2020] ath10k_pci 0000:06:00.0: firmware ver 10.4b-ct-9984-fH-13-795874169 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,htt-mgt-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 123549a3 [Thu Sep 3 18:56:17 2020] ath10k_pci 0000:06:00.0: board_file api 2 bmi_id 0:31 crc32 e807b522 [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: DANGER! You're overriding EEPROM-defined regulatory domain [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: from: 0x0 to 0x348 (svc-ready-work) [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: Your card was not certified to operate in the domain you chose. [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: This might result in a violation of your local regulatory rules. [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: Do not ever do this unless you really know what you are doing! [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: 10.4 wmi init: vdevs: 8 peers: 10 tid: 450 [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: using 7 firmware rate-ctrl objects [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: msdu-desc: 2200 skid: 360 [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: wmi print 'P 10/10 V 8 K 30 PH 46 T 486 msdu-desc: 2200 sw-crypt: 0 ct-sta: 0' [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: wmi print 'free: 79432 iram: 14924 sram: 24380' [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 10 raw 0 hwcrypto 1 [Thu Sep 3 18:56:20 2020] ath10k_pci 0000:06:00.0 wlp6s0: renamed from wlan0 [Thu Sep 3 18:56:23 2020] ath10k_pci 0000:06:00.0: 10.4 wmi init: vdevs: 8 peers: 10 tid: 450 [Thu Sep 3 18:56:23 2020] ath10k_pci 0000:06:00.0: using 7 firmware rate-ctrl objects [Thu Sep 3 18:56:23 2020] ath10k_pci 0000:06:00.0: msdu-desc: 2200 skid: 360 [Thu Sep 3 18:56:23 2020] ath10k_pci 0000:06:00.0: wmi print 'P 10/10 V 8 K 30 PH 46 T 486 msdu-desc: 2200 sw-crypt: 0 ct-sta: 0' [Thu Sep 3 18:56:23 2020] ath10k_pci 0000:06:00.0: wmi print 'free: 79432 iram: 14924 sram: 24380' [Thu Sep 3 18:56:24 2020] ath10k_pci 0000:06:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4 [Thu Sep 3 18:56:24 2020] ath10k_pci 0000:06:00.0: NOTE: Firmware DBGLOG output disabled in debug_mask: 0x10000000 [Thu Sep 3 18:56:32 2020] ath10k_pci 0000:06:00.0: 10.4 wmi init: vdevs: 8 peers: 10 tid: 450 [Thu Sep 3 18:56:32 2020] ath10k_pci 0000:06:00.0: using 7 firmware rate-ctrl objects [Thu Sep 3 18:56:32 2020] ath10k_pci 0000:06:00.0: msdu-desc: 2200 skid: 360 [Thu Sep 3 18:56:33 2020] ath10k_pci 0000:06:00.0: wmi print 'P 10/10 V 8 K 30 PH 46 T 486 msdu-desc: 2200 sw-crypt: 0 ct-sta: 0' [Thu Sep 3 18:56:33 2020] ath10k_pci 0000:06:00.0: wmi print 'free: 79432 iram: 14924 sram: 24380' [Thu Sep 3 18:56:33 2020] ath10k_pci 0000:06:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4 [Thu Sep 3 18:56:46 2020] ath10k_pci 0000:06:00.0: wmi: fixing invalid VHT TX rate code 0xff [Thu Sep 3 18:58:35 2020] ath10k_pci 0000:06:00.0: Invalid peer id 0 or peer stats buffer, peer: 00000000108d88d9 sta: 0000000000000000

Sep 03 18:54:11 u1804 hostapd[4175]: Configuration file: /etc/hostapd/hostapd.conf

cat /etc/hostapd/hostapd.conf driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_stdout_level=2 country_code=HT ieee80211d=1 ieee80211h=1 hw_mode=a beacon_int=100 channel=36

tx_queue_data2_burst=2.0 ieee80211n=1

ht_coex=0

ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40] vht_oper_chwidth=1 vht_oper_centr_freq_seg0_idx=42 ieee80211ac=1 vht_capab=[RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1][SU-BEAMFORMER][SU-BEAMFORMEE][MU-BEAMFORMER][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][VHT160-80PLUS80][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]

interface=wlp6s0 bridge=br-lan ctrl_interface=/var/run/hostapd ap_isolate=1 bss_load_update_period=60

chan_util_avg_period=600

disassoc_low_ack=1 preamble=1 wmm_enabled=1 ignore_broadcast_ssid=0 uapsd_advertisement_enabled=1 utf8_ssid=1

multi_ap=0

wpa_passphrase=xxxxxxxx auth_algs=1 wpa=2 wpa_pairwise=CCMP ssid=test

bridge=br-lan

wpa_disable_eapol_key_retries=0 wpa_key_mgmt=WPA-PSK okc=0 disable_pmksa_caching=1