Open rlking opened 7 years ago
It would be really interesting to get log from firmware. Can you solder and have some experience with UART? Here you can find info about this chip https://wikidevi.com/wiki/Atheros_AR9271
I will look into this, I should have everything
I bricked it while removing the internal antenna 😔
In case you still wont to play with this chip, i would recommend this model https://wikidevi.com/wiki/ALFA_Network_AWUS036NHA it has accessible uart pins and external antenna.
For RPi users, if you find a way to power cycle the usb port, there should be no problem to reset the usb adapter. Some thing like this https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=93463#p651809
I have a really similar issue with AWUS036NHA in Ad-Hoc mode on kernel 4.15. We are using a network of around 8 devices connected to NUC PCs in our tests. Every time a device disconnect, other devices have a chance to crash. I reproduce it by rebooting one of the PC and eventually other devices start crashing the kernel thread freeze on those crashed nodes.
Here is the kernel log:
Jun 20 14:20:23 BTDN7440035E kernel: INFO: task kworker/0:1:34 blocked for more than 120 seconds. Jun 20 14:20:23 BTDN7440035E kernel: Tainted: G W L 4.15.0-kali2-amd64 #1 Debian 4.15.11-1kali1 Jun 20 14:20:23 BTDN7440035E kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. Jun 20 14:20:23 BTDN7440035E kernel: kworker/0:1 D 0 34 2 0x80000000 Jun 20 14:20:23 BTDN7440035E kernel: Workqueue: ipv6_addrconf addrconf_verify_work Jun 20 14:20:23 BTDN7440035E kernel: Call Trace: Jun 20 14:20:23 BTDN7440035E kernel: ? schedule+0x297/0x8b0 Jun 20 14:20:23 BTDN7440035E kernel: schedule+0x28/0x80 Jun 20 14:20:23 BTDN7440035E kernel: schedule_preempt_disabled+0xa/0x10 Jun 20 14:20:23 BTDN7440035E kernel: mutex_lock.isra.1+0x1a0/0x4e0 Jun 20 14:20:23 BTDN7440035E kernel: ? switch_to_asm+0x40/0x70 Jun 20 14:20:23 BTDN7440035E kernel: ? addrconf_verify_work+0xa/0x20 Jun 20 14:20:23 BTDN7440035E kernel: addrconf_verify_work+0xa/0x20 Jun 20 14:20:23 BTDN7440035E kernel: process_one_work+0x17b/0x370 Jun 20 14:20:23 BTDN7440035E kernel: worker_thread+0x2e/0x390 Jun 20 14:20:23 BTDN7440035E kernel: ? process_one_work+0x370/0x370 Jun 20 14:20:23 BTDN7440035E kernel: kthread+0x113/0x130 Jun 20 14:20:23 BTDN7440035E kernel: ? kthread_create_worker_on_cpu+0x70/0x70 Jun 20 14:20:23 BTDN7440035E kernel: ret_from_fork+0x35/0x40 Jun 20 14:20:30 BTDN7440035E kernel: watchdog: BUG: soft lockup - CPU#2 stuck for 22s! [wpa_supplicant:1184] Jun 20 14:20:30 BTDN7440035E kernel: Modules linked in: xt_mac iptable_filter hid_generic usbhid hid tun ctr ccm fuse snd_hda_codec_hdmi snd_soc_skl snd_soc_skl_ipc snd_hda_ext_core snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi snd_soc_core snd_compress binfmt_misc arc4 i2c_designware_platform i2c_designware_core wmi_bmof evdev intel_rapl x86_pkg_temp_thermal intel_powerclamp kvm_intel btusb btrtl btbcm kvm btintel irqbypass iwlmvm bluetooth intel_cstate ath9k_htc ath9k_common snd_hda_intel drbg intel_uncore ath9k_hw snd_hda_codec snd_hda_core ansi_cprng ath snd_hwdep idma64 snd_pcm intel_rapl_perf iwlwifi snd_timer mac80211 i915 intel_lpss_pci pcspkr snd ecdh_generic iTCO_wdt cfg80211 drm_kms_helper rfkill drm mei_me soundcore iTCO_vendor_support sg intel_lpss mei i2c_algo_bit intel_pch_thermal shpchp wmi mfd_core video Jun 20 14:20:30 BTDN7440035E kernel: tpm_crb acpi_pad button coretemp ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic fscrypto ecb sd_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cryptd ahci libahci e1000e ptp xhci_pci pps_core libata xhci_hcd i2c_i801 scsi_mod usbcore usb_common fan thermal Jun 20 14:20:30 BTDN7440035E kernel: CPU: 2 PID: 1184 Comm: wpa_supplicant Tainted: G W L 4.15.0-kali2-amd64 #1 Debian 4.15.11-1kali1 Jun 20 14:20:30 BTDN7440035E kernel: Hardware name: Intel Corporation NUC7i5DNB/NUC7i5DNB, BIOS DNKBLi5v.86A.0040.2018.0315.1451 03/15/2018 Jun 20 14:20:30 BTDN7440035E kernel: RIP: 0010:try_to_grab_pending+0xfb/0x150 Jun 20 14:20:30 BTDN7440035E kernel: RSP: 0018:ffffb11703f9b8a8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff11 Jun 20 14:20:30 BTDN7440035E kernel: RAX: 0000000000000000 RBX: ffff91ca5a365928 RCX: 0000000000000000 Jun 20 14:20:30 BTDN7440035E kernel: RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000286 Jun 20 14:20:30 BTDN7440035E kernel: RBP: ffffb11703f9b8d0 R08: ffff91ca60000b68 R09: ffff91ca70c210c0 Jun 20 14:20:30 BTDN7440035E kernel: R10: 0000000000000000 R11: 0000000000000040 R12: ffff91ca70c210c0 Jun 20 14:20:30 BTDN7440035E kernel: R13: ffffb11703f9b8f0 R14: ffffffffbae8e800 R15: ffff91ca565cccb0 Jun 20 14:20:30 BTDN7440035E kernel: FS: 00007f983bfe4800(0000) GS:ffff91ca70d00000(0000) knlGS:0000000000000000 Jun 20 14:20:30 BTDN7440035E kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Jun 20 14:20:30 BTDN7440035E kernel: CR2: 0000558b5274e818 CR3: 0000000421a2c002 CR4: 00000000003606e0 Jun 20 14:20:30 BTDN7440035E kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Jun 20 14:20:30 BTDN7440035E kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Jun 20 14:20:30 BTDN7440035E kernel: Call Trace: Jun 20 14:20:30 BTDN7440035E kernel: cancel_work_timer+0x42/0x1b0 Jun 20 14:20:30 BTDN7440035E kernel: ath9k_htc_sta_remove+0x21/0x80 [ath9k_htc] Jun 20 14:20:30 BTDN7440035E kernel: drv_sta_state+0x25b/0x3f0 [mac80211] Jun 20 14:20:30 BTDN7440035E kernel: sta_info_move_state+0x181/0x260 [mac80211] Jun 20 14:20:30 BTDN7440035E kernel: sta_info_destroy_part2+0x54/0x110 [mac80211] Jun 20 14:20:30 BTDN7440035E kernel: sta_info_flush+0x150/0x1b0 [mac80211] Jun 20 14:20:30 BTDN7440035E kernel: ieee80211_ibss_disconnect+0x4b/0x2e0 [mac80211] Jun 20 14:20:30 BTDN7440035E kernel: ieee80211_ibss_leave+0x16/0xb0 [mac80211] Jun 20 14:20:30 BTDN7440035E kernel: cfg80211_leave_ibss+0x4b/0x100 [cfg80211] Jun 20 14:20:30 BTDN7440035E kernel: cfg80211_leave_ibss+0x35/0x50 [cfg80211] Jun 20 14:20:30 BTDN7440035E kernel: genl_family_rcv_msg+0x1e4/0x390 Jun 20 14:20:30 BTDN7440035E kernel: ? compat_poll_select_copy_remaining+0x140/0x140 Jun 20 14:20:30 BTDN7440035E kernel: genl_rcv_msg+0x47/0x90 Jun 20 14:20:30 BTDN7440035E kernel: ? kmalloc_node_track_caller+0x21c/0x2c0 Jun 20 14:20:30 BTDN7440035E kernel: ? genl_family_rcv_msg+0x390/0x390 Jun 20 14:20:30 BTDN7440035E kernel: netlink_rcv_skb+0x4d/0x130 Jun 20 14:20:30 BTDN7440035E kernel: genl_rcv+0x24/0x40 Jun 20 14:20:30 BTDN7440035E kernel: netlink_unicast+0x196/0x240 Jun 20 14:20:30 BTDN7440035E kernel: netlink_sendmsg+0x2b8/0x3b0 Jun 20 14:20:30 BTDN7440035E kernel: sock_sendmsg+0x36/0x40 Jun 20 14:20:30 BTDN7440035E kernel: _sys_sendmsg+0x280/0x2f0 Jun 20 14:20:30 BTDN7440035E kernel: ? page_add_file_rmap+0xd6/0x160 Jun 20 14:20:30 BTDN7440035E kernel: ? filemap_map_pages+0x31f/0x340 Jun 20 14:20:30 BTDN7440035E kernel: ? recalc_sigpending+0x17/0x50 Jun 20 14:20:30 BTDN7440035E kernel: ? _copy_to_user+0x22/0x30 Jun 20 14:20:30 BTDN7440035E kernel: ? sock_getsockopt+0x11a/0x900 Jun 20 14:20:30 BTDN7440035E kernel: ? unix_ioctl+0x77/0x190 Jun 20 14:20:30 BTDN7440035E kernel: ? __handle_mm_fault+0xdc9/0x1220 Jun 20 14:20:30 BTDN7440035E kernel: ? sock_do_ioctl+0x26/0x50 Jun 20 14:20:30 BTDN7440035E kernel: ? sock_ioctl+0x19a/0x2b0 Jun 20 14:20:30 BTDN7440035E kernel: ? sys_sendmsg+0x51/0x90 Jun 20 14:20:30 BTDN7440035E kernel: __sys_sendmsg+0x51/0x90 Jun 20 14:20:30 BTDN7440035E kernel: do_syscall_64+0x6e/0x130 Jun 20 14:20:30 BTDN7440035E kernel: entry_SYSCALL_64_after_hwframe+0x3d/0xa2 Jun 20 14:20:30 BTDN7440035E kernel: RIP: 0033:0x7f983a7ae134 Jun 20 14:20:30 BTDN7440035E kernel: RSP: 002b:00007ffe99a04a08 EFLAGS: 00000246 ORIG_RAX: 000000000000002e Jun 20 14:20:30 BTDN7440035E kernel: RAX: ffffffffffffffda RBX: 0000556cbf896970 RCX: 00007f983a7ae134 Jun 20 14:20:30 BTDN7440035E kernel: RDX: 0000000000000000 RSI: 00007ffe99a04a90 RDI: 0000000000000005 Jun 20 14:20:30 BTDN7440035E kernel: RBP: 0000556cbf896880 R08: 0000000000000000 R09: 000000000000000d Jun 20 14:20:30 BTDN7440035E kernel: R10: 0000556cbf893010 R11: 0000000000000246 R12: 0000556cbf8cae10 Jun 20 14:20:30 BTDN7440035E kernel: R13: 00007ffe99a04a90 R14: 0000000000000000 R15: 0000000000000000 Jun 20 14:20:30 BTDN7440035E kernel: Code: 48 83 c8 01 4c 89 e7 48 89 03 c6 07 00 0f 1f 40 00 b8 01 00 00 00 e9 4d ff ff ff 4c 89 e7 c6 07 00 0f 1f 40 00 48 8b 7d 00 57 9d <0f> 1f 44 00 00 48 8b 13 b8 fe ff ff ff 83 e2 14 48 83 fa 10 0f
I have a RPI 3 with raspbian stretch using a TL-WN722N in AP mode with 802.11n enabled. It runs stable for days until I start connecting to it from a distant room, then I get unpredictable freezes within hours and only physically detaching the stick fixes the issue. I tried most of the 4.9.x kernels and also 4.12.x but it doesn't make any differene. I'm not sure if this is kernel/driver/firmware related.
Here is some output
If you have any suggestions how to further debug this just tell me.
Kind regards