ssdnvv
September 19, 2017, 4:13pm
1
With every restart I get the following errors in kernel (here the copied lines from syslog):
2017-09-18T09:09:22+02:00 info kernel[]: [ 18.561848] pci 0000:00:02.0: enabling device (0140 -> 0142)
2017-09-18T09:09:22+02:00 info kernel[]: [ 18.567714] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
2017-09-18T09:09:22+02:00 warning kernel[]: [ 18.743316] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
2017-09-18T09:09:22+02:00 warning kernel[]: [ 18.754056] ath10k_pci 0000:02:00.0: Falling back to user helper
2017-09-18T09:09:22+02:00 err kernel[]: [ 18.763782] firmware ath10k!pre-cal-pci-0000:02:00.0.bin: firmware_loading_store: map pages failed
2017-09-18T09:09:22+02:00 warning kernel[]: [ 18.772914] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
2017-09-18T09:09:22+02:00 warning kernel[]: [ 18.783311] ath10k_pci 0000:02:00.0: Falling back to user helper
2017-09-18T09:09:22+02:00 err kernel[]: [ 18.792863] firmware ath10k!cal-pci-0000:02:00.0.bin: firmware_loading_store: map pages failed
2017-09-18T09:09:22+02:00 info kernel[]: [ 18.809900] ath10k_pci 0000:02:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
2017-09-18T09:09:22+02:00 info kernel[]: [ 18.819183] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
2017-09-18T09:09:22+02:00 info kernel[]: [ 18.828797] ath10k_pci 0000:02:00.0: firmware ver 10.2.4-1.0-00029 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 88595bb8
2017-09-18T09:09:22+02:00 warning kernel[]: [ 18.873539] ath10k_pci 0000:02:00.0: board id is not exist in otp, ignore it
2017-09-18T09:09:22+02:00 warning kernel[]: [ 18.880662] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
2017-09-18T09:09:22+02:00 warning kernel[]: [ 18.891134] ath10k_pci 0000:02:00.0: Falling back to user helper
2017-09-18T09:09:22+02:00 err kernel[]: [ 18.900920] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
2017-09-18T09:09:22+02:00 info kernel[]: [ 18.910625] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
2017-09-18T09:09:22+02:00 info kernel[]: [ 20.040373] ath10k_pci 0000:02:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
What does that mean?
I have replaced the factory 2,4GHz WLAN-module with a RouterBOARD R11e-2HPnD.
Twinkie
September 19, 2017, 5:41pm
2
It is quite obvious that it is a problem od ath10k driver. Wifi card driver consist of kernel module and firmware file which is binary file that kernel driver load directly into wifi card memory and there is some problem with it. I would first try to remove ath10k driver via LuCi and then reinstall it again as it should reload all dependencies. If that fail try to remove your mikrotik card and install back original card. and repeat remove and reinstall driver via LuCi and if it will work try put back mikrotik card. That should be way how to debug this situation.
miska
September 19, 2017, 5:45pm
3
I would have to compare it to my log but in general ath10k tries to load several different firmwares and is waiting for one of them to succeed. So it looks ugly, but it is quite normal as some firmwares just wouldn’t load.
I am having similar error messages with the standard card.
Firmware won’t load if I send a restart command
It works if I power cycle the router.
Not sure if related.
ssdnvv
September 19, 2017, 6:53pm
5
Hey @miska - would you please use English as this is the international part of the forum…?
ssdnvv
September 19, 2017, 6:55pm
6
Could you post your error-messages?
ssdnvv
September 19, 2017, 7:11pm
7
Thanks for that guidance.
Is ath10k-firmware-qca988x
the right package?
Twinkie
September 19, 2017, 7:25pm
8
There are several in Luci generally if it is driver developed by Candela Technology it could render your wifi unstable and unusable. But feel free to try which one is best for your mikrotik you can always connect with wired Ethernet and Uninstall incorrect driver feel free to try which one works best.
miska
September 19, 2017, 8:20pm
9
Yep, sorry, erited, was replying to somebody else at the same time and forgot to switch the language
ssdnvv
September 19, 2017, 8:22pm
10
So this means everything is just behaving as it should? (Seams reasonable as wifi is stable, got no problems so far)
ssdnvv
September 19, 2017, 8:34pm
12
So as the dust settles it seems v.3.8 simply works after getting rid of lighttpd-https-cert
). At least for me
Thanks for your help!
These are my logs.
2017-08-17T06:16:41-07:00 info kernel[]: [ 22.037941]
ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq
mode 0 resetmode 0
2017-08-17T06:16:41-07:00 warning kernel[]: [ 22.21331
5] ath10k_pci 0000:02:00.0: Direct firmware load for ath
10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
2017-08-17T06:16:41-07:00 warning kernel[]: [ 22.22405
2] ath10k_pci 0000:02:00.0: Falling back to user helper
2017-08-17T06:16:41-07:00 err kernel[]: [ 22.233791] f
irmware ath10k!pre-cal-pci-0000:02:00.0.bin: firmware_lo
ading_store: map pages failed
2017-08-17T06:16:41-07:00 warning kernel[]: [ 22.24291
8] ath10k_pci 0000:02:00.0: Direct firmware load for ath
10k/cal-pci-0000:02:00.0.bin failed with error -2
2017-08-17T06:16:41-07:00 warning kernel[]: [ 22.25330
9] ath10k_pci 0000:02:00.0: Falling back to user helper
2017-08-17T06:16:41-07:00 err kernel[]: [ 22.262918] f
irmware ath10k!cal-pci-0000:02:00.0.bin: firmware_loadin
g_store: map pages failed
2017-08-17T06:16:41-07:00 info kernel[]: [ 22.280423]
ath10k_pci 0000:02:00.0: qca988x hw2.0 target 0x4100016c
chip_id 0x043202ff sub 0000:0000
2017-08-17T06:16:41-07:00 info kernel[]: [ 22.289694]
ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 traci
ng 0 dfs 1 testmode 1
2017-08-17T06:16:41-07:00 info kernel[]: [ 22.299314]
ath10k_pci 0000:02:00.0: firmware ver 10.2.4.70.54 api 5
features no-p2p,raw-mode,mfp crc32 9d340dd9
2017-08-17T06:16:41-07:00 warning kernel[]: [ 22.34965
1] ath10k_pci 0000:02:00.0: Direct firmware load for ath
10k/QCA988X/hw2.0/board-2.bin failed with error -2
2017-08-17T06:16:41-07:00 warning kernel[]: [ 22.36012
2] ath10k_pci 0000:02:00.0: Falling back to user helper
2017-08-17T06:16:41-07:00 err kernel[]: [ 22.369844] f
irmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loadi
ng_store: map pages failed
2017-08-17T06:16:41-07:00 info kernel[]: [ 22.378820]
ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc
32 bebc7c08
2017-08-17T06:16:41-07:00 info kernel[]: [ 23.523587]
ath10k_pci 0000:02:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 c
al otp max-sta 128 raw 0 hwcrypto 1
KrisAn
September 19, 2017, 10:42pm
14
Starting from Today I have also similar problems with wifi card.
Workaround is to Disable/Enable 2.4/5G default card but it works only for some random time than I can see attached below records from logs and wifi is not working and visible.
Note: My wifi card is working in 2.4 -n, using WPA2 802.1X (CCMP) with enabled 802.11w. Second card (2.4 short is disabled):
/var/log/messages:
f4:5c:mb:mb:mb:mb - MacBook
44:65:ta:ta:ta:ta - Tablet
04:f0:at:he:ro:sq - Network controller: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter
2017-09-19T21:04:05+01:00 debug hostapd[]: wlan0: STA f4:5c:mb:mb:mb:mb MLME: MLME-DEAUTHENTICATE.indication(f4:5c:mb:mb:mb:mb, 2)
2017-09-19T21:04:05+01:00 debug hostapd[]: wlan0: STA f4:5c:mb:mb:mb:mb MLME: MLME-DELETEKEYS.request(f4:5c:mb:mb:mb:mb)
2017-09-19T21:04:05+01:00 info hostapd[]: wlan0: STA f4:5c:mb:mb:mb:mb IEEE 802.11: deauthenticated due to local deauth request
2017-09-19T22:04:05+01:00 warning kernel[]: [336267.944760] ath10k_pci 0000:02:00.0: failed to delete peer f4:5c:mb:mb:mb:mb for vdev 0: -110
2017-09-19T22:04:05+01:00 warning kernel[]: [336267.944779] ath10k_pci 0000:02:00.0: found sta peer f4:5c:mb:mb:mb:mb (ptr ec338400 id 55) entry on vdev 0 after it was supposedly removed
2017-09-19T22:04:08+01:00 warning kernel[]: [336270.956869] ath10k_pci 0000:02:00.0: failed to set dtim period for vdev 0: -11
2017-09-19T22:04:11+01:00 warning kernel[]: [336273.970387] ath10k_pci 0000:02:00.0: failed to recalculate rts/cts prot for vdev 0: -11
2017-09-19T22:04:14+01:00 warning kernel[]: [336276.977610] ath10k_pci 0000:02:00.0: failed to set cts protection for vdev 0: -11
2017-09-19T22:04:17+01:00 warning kernel[]: [336279.988609] ath10k_pci 0000:02:00.0: failed to set erp slot for vdev 0: -11
2017-09-19T22:04:20+01:00 warning kernel[]: [336282.985425] ath10k_pci 0000:02:00.0: failed to set preamble for vdev 0: -11
2017-09-19T21:07:54+01:00 debug hostapd[]: wlan0: WPA rekeying GTK
2017-09-19T21:07:54+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: sending 1/2 msg of Group Key Handshake
2017-09-19T21:07:55+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: EAPOL-Key timeout
2017-09-19T21:07:55+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: sending 1/2 msg of Group Key Handshake
2017-09-19T21:07:56+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: EAPOL-Key timeout
2017-09-19T21:07:56+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: sending 1/2 msg of Group Key Handshake
2017-09-19T21:07:57+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: EAPOL-Key timeout
2017-09-19T21:07:57+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: sending 1/2 msg of Group Key Handshake
2017-09-19T21:07:58+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: EAPOL-Key timeout
2017-09-19T22:08:01+01:00 warning kernel[]: [336503.366220] ath10k_pci 0000:02:00.0: failed to install key for vdev 0 peer 04:f0:at:he:ro:sq: -11
2017-09-19T22:08:01+01:00 err kernel[]: [336503.366234] wlan0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-11)
2017-09-19T22:08:04+01:00 warning kernel[]: [336506.379948] ath10k_pci 0000:02:00.0: failed to install key for vdev 0 peer 04:f0:at:he:ro:sq: -11
2017-09-19T22:08:04+01:00 err kernel[]: [336506.379964] wlan0: failed to set key (2, ff:ff:ff:ff:ff:ff) to hardware (-11)
2017-09-19T21:08:04+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: WPA_PTK: sm->Disconnect
2017-09-19T21:08:04+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta WPA: event 3 notification
2017-09-19T22:08:07+01:00 warning kernel[]: [336509.384462] ath10k_pci 0000:02:00.0: failed to install key for vdev 0 peer 44:65:ta:ta:ta:ta: -11
2017-09-19T22:08:07+01:00 err kernel[]: [336509.384476] wlan0: failed to remove key (0, 44:65:ta:ta:ta:ta) from hardware (-11)
2017-09-19T22:08:09+01:00 warning kernel[]: [336511.395433] ath10k_pci 0000:02:00.0: cipher 0 is not supported
2017-09-19T22:08:09+01:00 warning kernel[]: [336511.395448] ath10k_pci 0000:02:00.0: failed to remove peer wep key 0: -95
2017-09-19T22:08:09+01:00 warning kernel[]: [336511.395458] ath10k_pci 0000:02:00.0: failed to clear all peer wep keys for vdev 0: -95
2017-09-19T22:08:09+01:00 warning kernel[]: [336511.395468] ath10k_pci 0000:02:00.0: failed to disassociate station: 44:65:ta:ta:ta:ta vdev 0: -95
2017-09-19T22:08:12+01:00 warning kernel[]: [336514.400210] ath10k_pci 0000:02:00.0: failed to delete peer 44:65:ta:ta:ta:ta for vdev 0: -11
2017-09-19T22:08:12+01:00 warning kernel[]: [336514.400229] ath10k_pci 0000:02:00.0: found sta peer 44:65:ta:ta:ta:ta (ptr df4a2200 id 57) entry on vdev 0 after it was supposedly removed
2017-09-19T21:08:12+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta MLME: MLME-DEAUTHENTICATE.indication(44:65:ta:ta:ta:ta, 2)
2017-09-19T21:08:12+01:00 debug hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta MLME: MLME-DELETEKEYS.request(44:65:ta:ta:ta:ta)
2017-09-19T21:08:12+01:00 info hostapd[]: wlan0: STA 44:65:ta:ta:ta:ta IEEE 802.11: deauthenticated due to local deauth request
2017-09-19T22:08:15+01:00 warning kernel[]: [336517.394528] ath10k_pci 0000:02:00.0: failed to set beacon mode for vdev 0: -11
2017-09-19T22:08:18+01:00 warning kernel[]: [336520.398377] ath10k_pci 0000:02:00.0: failed to set dtim period for vdev 0: -11
2017-09-19T22:08:21+01:00 warning kernel[]: [336523.396302] ath10k_pci 0000:02:00.0: failed to recalculate rts/cts prot for vdev 0: -11
2017-09-19T22:08:24+01:00 warning kernel[]: [336526.391609] ath10k_pci 0000:02:00.0: failed to set cts protection for vdev 0: -11
2017-09-19T22:08:27+01:00 warning kernel[]: [336529.396172] ath10k_pci 0000:02:00.0: failed to set erp slot for vdev 0: -11
2017-09-19T22:08:30+01:00 warning kernel[]: [336532.392813] ath10k_pci 0000:02:00.0: failed to set preamble for vdev 0: -11
/etc/config/wireless:
config wifi-device 'radio0'
option type 'mac80211'
option path 'soc/soc:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0'
option country 'removed'
option txpower '20'
option log_level '1'
option hwmode '11g'
option channel '11'
option htmode 'HT40'
config wifi-iface
option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'wpa2+ccmp'
option ieee80211w '1'
option macfilter 'allow'
list maclist 'removed'
list maclist 'removed'
option ssid 'removed'
option auth_server 'removed'
option auth_secret 'removed'
dmesg: repeated every a few seconds (with different timestamp):
2017-09-19T23:24:28+01:00 warning kernel[]: [341090.286270] ath10k_pci 0000:02:00.0: failed to send pdev bss chan info request
Earlier Today I have seen (1st entries with the warning kernel
):
2017-09-19T12:52:03+01:00 warning kernel[]: [303145.499689] ath10k_pci 0000:02:00.0: failed to delete peer f4:5c:mb:mb:mb:mb for vdev 0: -110
2017-09-19T12:52:03+01:00 warning kernel[]: [303145.499708] ath10k_pci 0000:02:00.0: found sta peer f4:5c:mb:mb:mb:mb (ptr e7674000 id 55) entry on vdev 0 after it was supposedly removed
2017-09-19T12:52:03+01:00 warning kernel[]: [303145.499817] Modules linked in: qcserial option iptable_nat ip6table_nat ath9k usb_wwan rndis_host qmi_wwan pppoe nf_nat_pptp nf_nat_ipv6 nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_ipv6 nf_conntrack_ipv4 nf_conntrack_amanda ipt_REJECT ipt_MASQUERADE ebtable_nat ebtable_filter ebtable_broute cdc_ether ath9k_common armada_thermal xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_socket xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TPROXY xt_TCPMSS xt_REDIRECT xt_NFQUEUE xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial usbnet ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_kmp ts_fsm ts_bm thermal_sys pppox ppp_mppe ppp_async nfnetlink_queue nfnetlink_log nfnetlink nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_h323 nf_nat_ftp nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast mvsdio iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables hwmon ebtables ebt_vlan ebt_stp ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_among ebt_802_3 crc_ccitt cdc_wdm ath9k_hw fuse sch_teql sch_tbf sch_sfq sch_red sch_prio sch_pie sch_netem sch_htb sch_gred sch_fq sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp cls_basic act_vlan act_police act_pedit act_nat act_ipt act_gact act_csum act_bpf act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbdev ledtrig_oneshot xt_LED ledtrig_morse ledtrig_heartbeat ledtrig_gpio cryptodev ip6t_NPT ip6t_MASQUERADE nf_nat_masquerade_ipv6 nf_nat nf_conntrack ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables pppoatm ppp_generic slhc nfsd nfsv3 msdos ip_gre gre ifb sit ip6_tunnel tunnel6 tunnel4 ip_tunnel veth tun snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore rxkad vfat fat udf crc_itu_t ntfs nfs_layout_nfsv41_files nfsv4 nfs auth_rpcgss oid_registry lockd sunrpc grace minix isofs hfsplus hfs cramfs configfs cifs autofs4 kafs af_rxrpc dns_resolver dm_crypt dm_mirror dm_region_hash dm_log dm_mod br2684 atm multipath fscache raid456 async_raid6_recov async_pq async_xor async_memcpy async_tx raid10 raid1 raid0 linear md_mod nls_utf8 nls_koi8_r nls_cp1255 nls_iso8859_6 nls_iso8859_2 nls_iso8859_15 nls_iso8859_13 nls_iso8859_1 nls_cp932 nls_cp866 nls_cp864 nls_cp862 nls_cp852 nls_cp850 nls_cp775 nls_cp437 nls_cp1251 nls_cp1250 xts algif_skcipher algif_hash af_alg sha512_generic sha256_generic sha1_generic seqiv jitterentropy_rng drbg pcbc md5 md4 marvell_cesa hmac gf128mul fcrypt ecb des_generic ctr cmac ccm cbc authenc usb_storage xhci_plat_hcd xhci_pci xhci_hcd orion_wdt uhci_hcd ledtrig_transient ahci_mvebu ahci ehci_orion ehci_platform ehci_hcd sd_mod ahci_platform libahci_platform libahci libata scsi_mod xfs libcrc32c jfs f2fs exfat usbcore nls_base usb_common mii aead crypto_null
2017-09-19T12:52:03+01:00 warning kernel[]: [303145.500565] [<c02f2400>] (dump_stack) from [<c00292dc>] (warn_slowpath_common+0x8c/0xbc)
2017-09-19T12:52:03+01:00 warning kernel[]: [303145.500589] [<c0029250>] (warn_slowpath_common) from [<c00293b0>] (warn_slowpath_null+0x24/0x2c)
2017-09-19T12:52:03+01:00 warning kernel[]: [303145.500656] [<c002938c>] (warn_slowpath_null) from [<bf7f7dc0>] (sta_set_sinfo+0xae0/0xaec [mac80211])
Between 2017-09-19T12:52:03+01:00 and 2017-09-19T21:04:05+01:00 I have more entries with the warning kernel[]
but I’m not attaching as are similar to the top part of the messages log.
KrisAn
September 20, 2017, 5:45pm
15
Still my wifi is not stable.
Wifi on my 2.4/5g card from time to time is not working (but configured to work in 802.11n mode, configuration in previous post).
There is list of all mods related to mac/ath before unload:
ath 17687 4 ath9k
ath10k_core 249527 1 ath10k_pci
ath10k_pci 31795 0
ath9k 95849 0
ath9k_common 20059 1 ath9k
ath9k_hw 343525 2 ath9k
cfg80211 236953 5 ath9k
compat 12364 6 ath9k
mac80211 431275 2 ath9k
After unload of all ath9k* modules I got:
ath 17687 1 ath10k_core
ath10k_core 249527 1 ath10k_pci
ath10k_pci 31795 0
cfg80211 236953 3 ath10k_core
compat 12364 4 ath10k_pci
mac80211 431275 1 ath10k_core
I run then wifi
command to restart it.
As far is working, but I wonder for how long my wifi will work stable now
If you have any further hints - let me know, thanks .