Broadcom bmcdhd crashing when re-associating wifi AP

I see this happening with two separate TX2 boards, each at JetPack 3.2. The BroadCom bcmdhd kernel module seems to crash when the connection is forced to re-associate.

The initial connection will work fine, using NetworkManager. Then, after some time–anywhere from 10s to 5 min–the connection will attempt to re-connect and will fail.

This was happening with the standard 28.2 kernel (4.4.38) as well as the rebuild kernel I’m using for FireWire.

Full log is at the bottom of the post. Notably, here’s the crash:

tegra-ubuntu kernel: [  426.700135] cfg80211: World regulatory domain updated:
tegra-ubuntu kernel: [  426.705468] cfg80211:  DFS Master region: unset
tegra-ubuntu kernel: [  426.709974] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
tegra-ubuntu kernel: [  426.719923] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.727975] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.736092] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.744171] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.753747] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  426.763410] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  426.772794] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.772990] CFG80211-ERROR) wl_notify_connect_status : wl_bss_connect_done succeeded with 70:e4:22:81:11:2e
tegra-ubuntu kernel: [  426.788016] CFG80211-ERROR) wl_bss_connect_done : Report connect result - connection succeeded
tegra-ubuntu kernel: [  426.799152] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
tegra-ubuntu kernel: [  426.807376] ------------[ cut here ]------------
tegra-ubuntu kernel: [  426.811991] WARNING: at ffffffc000b849a8 [verbose debug info unavailable]
tegra-ubuntu kernel: [  426.818767] Modules linked in: fuse bcmdhd pci_tegra bluedroid_pm
tegra-ubuntu kernel: [  426.824917]
tegra-ubuntu kernel: [  426.826415] CPU: 5 PID: 55 Comm: kworker/u12:1 Tainted: G        W       4.4.38fwkernel-v1 #1
tegra-ubuntu kernel: [  426.834928] Hardware name: quill (DT)
tegra-ubuntu kernel: [  426.838600] Workqueue: cfg80211 cfg80211_event_work
tegra-ubuntu kernel: [  426.843485] task: ffffffc1eb6e8000 ti: ffffffc1eb6dc000 task.ti: ffffffc1eb6dc000
tegra-ubuntu kernel: [  426.850966] PC is at __cfg80211_connect_result+0x1e8/0x258
tegra-ubuntu kernel: [  426.856453] LR is at __cfg80211_connect_result+0xac/0x258
tegra-ubuntu kernel: [  426.858163] CFG80211-ERROR) wl_notify_connect_status : wl_bss_connect_done succeeded with 70:e4:22:81:11:2e
tegra-ubuntu kernel: [  426.871581] pc : [<ffffffc000b849a8>] lr : [<ffffffc000b8486c>] pstate: 40000045
tegra-ubuntu kernel: [  426.878974] sp : ffffffc1eb6dfc80
tegra-ubuntu kernel: [  426.882296] x29: ffffffc1eb6dfc90 x28: ffffffc1f660dae0
tegra-ubuntu kernel: [  426.887641] x27: ffffffc1e3dff018 x26: ffffffc000d888b8
tegra-ubuntu kernel: [  426.893013] x25: dead000000000100 x24: dead000000000200
tegra-ubuntu kernel: [  426.898393] x23: ffffffc07b3cbcb0 x22: ffffffc1e3dff018
tegra-ubuntu kernel: [  426.903777] x21: 0000000000000000 x20: 0000000000000000
tegra-ubuntu kernel: [  426.909160] x19: ffffffc07b3cbc00 x18: 0000000000008090
tegra-ubuntu kernel: [  426.914539] x17: 0000000000000000 x16: 0000000000000000
tegra-ubuntu kernel: [  426.919920] x15: 00000000000976c9 x14: 0106010401020000
tegra-ubuntu kernel: [  426.925302] x13: 2e6e002f3262005e x12: 43420000a4270000
tegra-ubuntu kernel: [  426.930666] x11: a4030080010102f2 x10: 500018dd00100e03
tegra-ubuntu kernel: [  426.936018] x9 : 5affc0003a0105c0 x8 : 0000000000000000
tegra-ubuntu kernel: [  426.941369] x7 : 0000000000000001 x6 : 0000000000000002
tegra-ubuntu kernel: [  426.946752] x5 : 0000000000000001 x4 : 0000000000001d4c
tegra-ubuntu kernel: [  426.952136] x3 : ffffffc00144d700 x2 : 0000000000000000
tegra-ubuntu kernel: [  426.957516] x1 : 0000000000000000 x0 : 0000000000000000
tegra-ubuntu kernel: [  426.962895]
tegra-ubuntu kernel: [  426.967477] ---[ end trace 27b3e169845c3a19 ]---
tegra-ubuntu kernel: [  426.972126] Call trace:
tegra-ubuntu kernel: [  426.974620] [<ffffffc000b849a8>] __cfg80211_connect_result+0x1e8/0x258
tegra-ubuntu kernel: [  426.981195] [<ffffffc000b5d9a8>] cfg80211_process_wdev_events+0x140/0x1a0
tegra-ubuntu kernel: [  426.988011] [<ffffffc000b5da38>] cfg80211_process_rdev_events+0x30/0x70
tegra-ubuntu kernel: [  426.994652] [<ffffffc000b58404>] cfg80211_event_work+0x1c/0x30
tegra-ubuntu kernel: [  427.000530] [<ffffffc0000bc108>] process_one_work+0x138/0x4c0
tegra-ubuntu kernel: [  427.006298] [<ffffffc0000bc5b4>] worker_thread+0x124/0x498
tegra-ubuntu kernel: [  427.011819] [<ffffffc0000c22e4>] kthread+0xdc/0xf0
tegra-ubuntu kernel: [  427.016654] [<ffffffc000084f90>] ret_from_fork+0x10/0x40

I’m not sure how to approach fixing this. I can try a new version of the broadcom driver, but I’m not exactly sure which driver the Tegra is using or where to get the most up-to-date source.

Full Log:

tegra-ubuntu wpa_supplicant[1411]: wlan0: Trying to associate with 70:e4:22:81:11:2e (SSID='WifiNet' freq=5260 MHz)
tegra-ubuntu rsyslogd-2007: action 'action 9' suspended, next retry is Mon May 21 15:59:03 2018 [v8.16.0 try http://www.rsyslog.com/e/2007 ]
tegra-ubuntu kernel: [  426.620197] CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_LINK
tegra-ubuntu kernel: [  426.627133] CFG80211-ERROR) wl_notify_connect_status : link down if wlan0 may call cfg80211_disconnected. event : 16, reason=2 from 70:e4:22:8a:2c:81
tegra-ubuntu kernel: [  426.642459] WLDEV-ERROR) wldev_set_country : wldev_set_country: set country for (null) as XT rev 978 failed
tegra-ubuntu wpa_supplicant[1411]: wlan0: CTRL-EVENT-DISCONNECTED bssid=70:e4:22:81:11:2e reason=0
tegra-ubuntu kernel: [  426.677327] CFG80211-ERROR) wl_cfg80211_connect : Connectting with70:e4:22:81:11:2e channel (52) ssid "WifiNet", len (8)
tegra-ubuntu kernel: [  426.677327]
tegra-ubuntu NetworkManager[1082]: <info>  [1526932683.4307] device (wlan0): supplicant interface state: completed -> associating
tegra-ubuntu NetworkManager[1082]: <info>  [1526932683.4321] device (wlan0): supplicant interface state: associating -> disconnected
tegra-ubuntu kernel: [  426.700135] cfg80211: World regulatory domain updated:
tegra-ubuntu kernel: [  426.705468] cfg80211:  DFS Master region: unset
tegra-ubuntu kernel: [  426.709974] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
tegra-ubuntu kernel: [  426.719923] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.727975] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.736092] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.744171] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.753747] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  426.763410] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  426.772794] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  426.772990] CFG80211-ERROR) wl_notify_connect_status : wl_bss_connect_done succeeded with 70:e4:22:81:11:2e
tegra-ubuntu kernel: [  426.788016] CFG80211-ERROR) wl_bss_connect_done : Report connect result - connection succeeded
tegra-ubuntu kernel: [  426.799152] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
tegra-ubuntu kernel: [  426.807376] ------------[ cut here ]------------
tegra-ubuntu kernel: [  426.811991] WARNING: at ffffffc000b849a8 [verbose debug info unavailable]
tegra-ubuntu kernel: [  426.818767] Modules linked in: fuse bcmdhd pci_tegra bluedroid_pm
tegra-ubuntu kernel: [  426.824917]
tegra-ubuntu kernel: [  426.826415] CPU: 5 PID: 55 Comm: kworker/u12:1 Tainted: G        W       4.4.38fwkernel-v1 #1
tegra-ubuntu kernel: [  426.834928] Hardware name: quill (DT)
tegra-ubuntu kernel: [  426.838600] Workqueue: cfg80211 cfg80211_event_work
tegra-ubuntu kernel: [  426.843485] task: ffffffc1eb6e8000 ti: ffffffc1eb6dc000 task.ti: ffffffc1eb6dc000
tegra-ubuntu kernel: [  426.850966] PC is at __cfg80211_connect_result+0x1e8/0x258
tegra-ubuntu kernel: [  426.856453] LR is at __cfg80211_connect_result+0xac/0x258
tegra-ubuntu kernel: [  426.858163] CFG80211-ERROR) wl_notify_connect_status : wl_bss_connect_done succeeded with 70:e4:22:81:11:2e
tegra-ubuntu kernel: [  426.871581] pc : [<ffffffc000b849a8>] lr : [<ffffffc000b8486c>] pstate: 40000045
tegra-ubuntu kernel: [  426.878974] sp : ffffffc1eb6dfc80
tegra-ubuntu kernel: [  426.882296] x29: ffffffc1eb6dfc90 x28: ffffffc1f660dae0
tegra-ubuntu kernel: [  426.887641] x27: ffffffc1e3dff018 x26: ffffffc000d888b8
tegra-ubuntu kernel: [  426.893013] x25: dead000000000100 x24: dead000000000200
tegra-ubuntu kernel: [  426.898393] x23: ffffffc07b3cbcb0 x22: ffffffc1e3dff018
tegra-ubuntu kernel: [  426.903777] x21: 0000000000000000 x20: 0000000000000000
tegra-ubuntu kernel: [  426.909160] x19: ffffffc07b3cbc00 x18: 0000000000008090
tegra-ubuntu kernel: [  426.914539] x17: 0000000000000000 x16: 0000000000000000
tegra-ubuntu kernel: [  426.919920] x15: 00000000000976c9 x14: 0106010401020000
tegra-ubuntu kernel: [  426.925302] x13: 2e6e002f3262005e x12: 43420000a4270000
tegra-ubuntu kernel: [  426.930666] x11: a4030080010102f2 x10: 500018dd00100e03
tegra-ubuntu kernel: [  426.936018] x9 : 5affc0003a0105c0 x8 : 0000000000000000
tegra-ubuntu kernel: [  426.941369] x7 : 0000000000000001 x6 : 0000000000000002
tegra-ubuntu kernel: [  426.946752] x5 : 0000000000000001 x4 : 0000000000001d4c
tegra-ubuntu kernel: [  426.952136] x3 : ffffffc00144d700 x2 : 0000000000000000
tegra-ubuntu kernel: [  426.957516] x1 : 0000000000000000 x0 : 0000000000000000
tegra-ubuntu kernel: [  426.962895]
tegra-ubuntu kernel: [  426.967477] ---[ end trace 27b3e169845c3a19 ]---
tegra-ubuntu kernel: [  426.972126] Call trace:
tegra-ubuntu kernel: [  426.974620] [<ffffffc000b849a8>] __cfg80211_connect_result+0x1e8/0x258
tegra-ubuntu kernel: [  426.981195] [<ffffffc000b5d9a8>] cfg80211_process_wdev_events+0x140/0x1a0
tegra-ubuntu kernel: [  426.988011] [<ffffffc000b5da38>] cfg80211_process_rdev_events+0x30/0x70
tegra-ubuntu kernel: [  426.994652] [<ffffffc000b58404>] cfg80211_event_work+0x1c/0x30
tegra-ubuntu kernel: [  427.000530] [<ffffffc0000bc108>] process_one_work+0x138/0x4c0
tegra-ubuntu kernel: [  427.006298] [<ffffffc0000bc5b4>] worker_thread+0x124/0x498
tegra-ubuntu kernel: [  427.011819] [<ffffffc0000c22e4>] kthread+0xdc/0xf0
tegra-ubuntu kernel: [  427.016654] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
tegra-ubuntu wpa_supplicant[1411]: p2p-dev-wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
tegra-ubuntu NetworkManager[1082]: <info>  [1526932683.7643] device (wlan0): supplicant interface state: disconnected -> scanning
tegra-ubuntu kernel: [  427.034113] cfg80211: World regulatory domain updated:
tegra-ubuntu kernel: [  427.040018] cfg80211:  DFS Master region: unset
tegra-ubuntu kernel: [  427.044520] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
tegra-ubuntu kernel: [  427.054830] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.063377] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.071456] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.080105] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.089879] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  427.099884] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  427.108091] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.116218] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
tegra-ubuntu wpa_supplicant[1411]: wlan0: Associated with 70:e4:22:81:11:2e
tegra-ubuntu wpa_supplicant[1411]: p2p-dev-wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
tegra-ubuntu NetworkManager[1082]: <info>  [1526932683.8641] device (wlan0): supplicant interface state: scanning -> associated
tegra-ubuntu wpa_supplicant[1411]: wlan0: Trying to associate with 70:e4:22:8a:2c:81 (SSID='WifiNet' freq=2437 MHz)
tegra-ubuntu kernel: [  427.389999] CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_LINK
tegra-ubuntu kernel: [  427.397056] CFG80211-ERROR) wl_notify_connect_status : link down if wlan0 may call cfg80211_disconnected. event : 16, reason=2 from 70:e4:22:81:11:2e
tegra-ubuntu kernel: [  427.412528] WLDEV-ERROR) wldev_set_country : wldev_set_country: set country for (null) as XT rev 978 failed
tegra-ubuntu wpa_supplicant[1411]: wlan0: CTRL-EVENT-DISCONNECTED bssid=70:e4:22:8a:2c:81 reason=0
tegra-ubuntu kernel: [  427.444438] CFG80211-ERROR) wl_cfg80211_connect : Connectting with70:e4:22:8a:2c:81 channel (6) ssid "WifiNet", len (8)
tegra-ubuntu kernel: [  427.444438]
tegra-ubuntu NetworkManager[1082]: <info>  [1526932684.1895] device (wlan0): supplicant interface state: associated -> associating
tegra-ubuntu NetworkManager[1082]: <info>  [1526932684.2220] device (wlan0): supplicant interface state: associating -> disconnected
tegra-ubuntu kernel: [  427.499110] cfg80211: World regulatory domain updated:
tegra-ubuntu kernel: [  427.503067] CFG80211-ERROR) wl_notify_connect_status : wl_bss_connect_done succeeded with 70:e4:22:8a:2c:81
tegra-ubuntu kernel: [  427.514085] cfg80211:  DFS Master region: unset
tegra-ubuntu kernel: [  427.518471] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
tegra-ubuntu kernel: [  427.520330] CFG80211-ERROR) wl_bss_connect_done : Report connect result - connection succeeded
tegra-ubuntu kernel: [  427.536857] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.544864] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.552876] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.561090] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.570580] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  427.573075] CFG80211-ERROR) wl_notify_connect_status : wl_bss_connect_done succeeded with 70:e4:22:8a:2c:81
tegra-ubuntu kernel: [  427.589787] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  427.597874] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.605873] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
tegra-ubuntu kernel: [  427.614022] ------------[ cut here ]------------
tegra-ubuntu kernel: [  427.618634] WARNING: at ffffffc000b849a8 [verbose debug info unavailable]
tegra-ubuntu kernel: [  427.625408] Modules linked in: fuse bcmdhd pci_tegra bluedroid_pm
tegra-ubuntu kernel: [  427.631545]
tegra-ubuntu kernel: [  427.633044] CPU: 4 PID: 55 Comm: kworker/u12:1 Tainted: G        W       4.4.38fwkernel-v1 #1
tegra-ubuntu kernel: [  427.641558] Hardware name: quill (DT)
tegra-ubuntu kernel: [  427.645231] Workqueue: cfg80211 cfg80211_event_work
tegra-ubuntu kernel: [  427.650117] task: ffffffc1eb6e8000 ti: ffffffc1eb6dc000 task.ti: ffffffc1eb6dc000
tegra-ubuntu kernel: [  427.657604] PC is at __cfg80211_connect_result+0x1e8/0x258
tegra-ubuntu kernel: [  427.663094] LR is at __cfg80211_connect_result+0xac/0x258
tegra-ubuntu kernel: [  427.668491] pc : [<ffffffc000b849a8>] lr : [<ffffffc000b8486c>] pstate: 40000045
tegra-ubuntu kernel: [  427.675877] sp : ffffffc1eb6dfc80
tegra-ubuntu kernel: [  427.679189] x29: ffffffc1eb6dfc90 x28: ffffffc1f660dae0
tegra-ubuntu kernel: [  427.684517] x27: ffffffc1e05cbc18 x26: ffffffc000d888b8
tegra-ubuntu kernel: [  427.689841] x25: dead000000000100 x24: dead000000000200
tegra-ubuntu kernel: [  427.695162] x23: ffffffc07b3cbcb0 x22: ffffffc1e05cbc18
tegra-ubuntu kernel: [  427.700483] x21: 0000000000000000 x20: 0000000000000000
tegra-ubuntu kernel: [  427.705802] x19: ffffffc07b3cbc00 x18: 0000000000000032
tegra-ubuntu kernel: [  427.711119] x17: 0000007f89fa41f8 x16: ffffffc0002226b8
tegra-ubuntu kernel: [  427.716439] x15: 000000000000201e x14: ffffffffffffffff
tegra-ubuntu kernel: [  427.721758] x13: ffffffffffffff07 x12: 380730062e052204
tegra-ubuntu kernel: [  427.727075] x11: 1a03160314031202 x10: 0e020c020a010601
tegra-ubuntu kernel: [  427.732394] x9 : 04010200002e6e00 x8 : 0000000000000000
tegra-ubuntu kernel: [  427.737711] x7 : 0000000000000001 x6 : 0000000000000002
tegra-ubuntu kernel: [  427.743028] x5 : 0000000000000001 x4 : 0000000000001d4c
tegra-ubuntu kernel: [  427.748345] x3 : ffffffc00144d700 x2 : 0000000000000000
tegra-ubuntu kernel: [  427.753664] x1 : 0000000000000000 x0 : 0000000000000000
tegra-ubuntu kernel: [  427.758981]
tegra-ubuntu kernel: [  427.760775] ---[ end trace 27b3e169845c3a1a ]---
tegra-ubuntu kernel: [  427.765382] Call trace:
tegra-ubuntu kernel: [  427.767824] [<ffffffc000b849a8>] __cfg80211_connect_result+0x1e8/0x258
tegra-ubuntu kernel: [  427.774341] [<ffffffc000b5d9a8>] cfg80211_process_wdev_events+0x140/0x1a0
tegra-ubuntu kernel: [  427.781115] [<ffffffc000b5da38>] cfg80211_process_rdev_events+0x30/0x70
tegra-ubuntu kernel: [  427.787715] [<ffffffc000b58404>] cfg80211_event_work+0x1c/0x30
tegra-ubuntu kernel: [  427.793538] [<ffffffc0000bc108>] process_one_work+0x138/0x4c0
tegra-ubuntu kernel: [  427.799270] [<ffffffc0000bc5b4>] worker_thread+0x124/0x498
tegra-ubuntu kernel: [  427.804745] [<ffffffc0000c22e4>] kthread+0xdc/0xf0
tegra-ubuntu kernel: [  427.809527] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
tegra-ubuntu wpa_supplicant[1411]: p2p-dev-wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
tegra-ubuntu NetworkManager[1082]: <info>  [1526932684.5516] device (wlan0): supplicant interface state: disconnected -> scanning
tegra-ubuntu kernel: [  427.823665] cfg80211: World regulatory domain updated:
tegra-ubuntu kernel: [  427.828945] cfg80211:  DFS Master region: unset
tegra-ubuntu kernel: [  427.833604] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
tegra-ubuntu kernel: [  427.843822] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.852087] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.860134] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.868362] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.878049] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  427.887633] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
tegra-ubuntu kernel: [  427.895978] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
tegra-ubuntu kernel: [  427.904186] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
tegra-ubuntu wpa_supplicant[1411]: wlan0: Associated with 70:e4:22:8a:2c:81
tegra-ubuntu wpa_supplicant[1411]: p2p-dev-wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
tegra-ubuntu NetworkManager[1082]: <info>  [1526932684.6473] device (wlan0): supplicant interface state: scanning -> associated
tegra-ubuntu wpa_supplicant[1411]: wlan0: WPA: Failed to set PTK to the driver (alg=3 keylen=16 bssid=70:e4:22:8a:2c:81)
tegra-ubuntu wpa_supplicant[1411]: wlan0: CTRL-EVENT-DISCONNECTED bssid=70:e4:22:8a:2c:81 reason=1 locally_generated=1
tegra-ubuntu wpa_supplicant[1411]: wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
tegra-ubuntu wpa_supplicant[1411]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="WifiNet" auth_failures=1 duration=10 reason=WRONG_KEY
tegra-ubuntu NetworkManager[1082]: <info>  [1526932685.4473] device (wlan0): supplicant interface state: associated -> 4-way handshake
tegra-ubuntu NetworkManager[1082]: <warn>  [1526932685.4476] sup-iface[0x744a10,wlan0]: connection disconnected (reason -1)
tegra-ubuntu NetworkManager[1082]: <info>  [1526932685.4520] device (wlan0): supplicant interface state: 4-way handshake -> disconnected
tegra-ubuntu NetworkManager[1082]: <info>  [1526932685.4575] device (wlan0): Activation: (wifi) disconnected during association, asking for new key
tegra-ubuntu NetworkManager[1082]: <info>  [1526932685.4582] device (wlan0): state change: activated -> need-auth (reason 'supplicant-disconnect') [100 60 8]
tegra-ubuntu NetworkManager[1082]: <info>  [1526932685.4775] dhcp4 (wlan0): canceled DHCP transaction, DHCP client pid 2935
tegra-ubuntu NetworkManager[1082]: <info>  [1526932685.4779] dhcp4 (wlan0): state changed bound -> done
tegra-ubuntu dbus[947]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
tegra-ubuntu systemd[1]: Starting Network Manager Script Dispatcher Service...
tegra-ubuntu dbus[947]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
tegra-ubuntu systemd[1]: Started Network Manager Script Dispatcher Service.
tegra-ubuntu nm-dispatcher: req:1 'down' [wlan0]: new request (1 scripts)
tegra-ubuntu nm-dispatcher: req:1 'down' [wlan0]: start running ordered scripts...
tegra-ubuntu NetworkManager[1082]: <info>  [1526932685.5484] device (wlan0): supplicant interface state: disconnected -> inactive
tegra-ubuntu gnome-session[1910]: nm-applet-Message: No keyring secrets found for WifiNet/802-11-wireless-security; asking user.
tegra-ubuntu gnome-session[1910]: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
tegra-ubuntu dbus[947]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
tegra-ubuntu systemd[1]: Starting Hostname Service...
tegra-ubuntu kernel: [  430.102875] IPVS: Creating netns size=1424 id=5
tegra-ubuntu dbus[947]: [system] Successfully activated service 'org.freedesktop.hostname1'
tegra-ubuntu systemd[1]: Started Hostname Service.

zlacelle,

Could you describe the setting of your environment? According to your statement, this happens to 2 tx2 operating at 5GHz. I would like to know if this happens to specific AP or every AP. Please try to narrow down the cause if possible. Thanks!

Sure! There are 2 TX2s running L4T 28.2, each separately having the same issue. This is happening with the only AP set I have available: a Cisco managed wifi solution. I will try to get a simple AP set up and see if it happens there.

Here’s the iwlist, with unnecessary IE removed:

wlp61s0   Scan completed :
          Cell 03 - Address: 70:E4:22:89:58:21
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=30/70  Signal level=-80 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8d3ee9c0
                    Extra: Last beacon: 25880ms ago
          Cell 10 - Address: 70:E4:22:8A:2C:81
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=59/70  Signal level=-51 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8d6b8ee9
                    Extra: Last beacon: 5816ms ago
          Cell 13 - Address: 70:E4:22:83:0E:D1
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=40/70  Signal level=-70 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8e68ee09
                    Extra: Last beacon: 5816ms ago
          Cell 17 - Address: 70:E4:22:8A:2F:71
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=50/70  Signal level=-60 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8df5bf5c
                    Extra: Last beacon: 5296ms ago
          Cell 19 - Address: 70:E4:22:88:E0:B1
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=41/70  Signal level=-69 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8ca49618
                    Extra: Last beacon: 24824ms ago
          Cell 20 - Address: 70:E4:22:89:58:2E
                    Channel:36
                    Frequency:5.18 GHz (Channel 36)
                    Quality=35/70  Signal level=-75 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8e355879
                    Extra: Last beacon: 5036ms ago
          Cell 24 - Address: 70:E4:22:8A:2F:7E
                    Channel:36
                    Frequency:5.18 GHz (Channel 36)
                    Quality=46/70  Signal level=-64 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8db6d84a
                    Extra: Last beacon: 4996ms ago
          Cell 29 - Address: 70:E4:22:83:0F:4E
                    Channel:52
                    Frequency:5.26 GHz (Channel 52)
                    Quality=32/70  Signal level=-78 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8e3164e7
                    Extra: Last beacon: 4232ms ago
          Cell 33 - Address: 70:E4:22:88:E0:BE
                    Channel:64
                    Frequency:5.32 GHz (Channel 64)
                    Quality=39/70  Signal level=-71 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8dabe83a
                    Extra: Last beacon: 3568ms ago
          Cell 37 - Address: F4:0F:1B:93:F2:4E
                    Channel:64
                    Frequency:5.32 GHz (Channel 64)
                    Quality=32/70  Signal level=-78 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8d516006
                    Extra: Last beacon: 3636ms ago
          Cell 39 - Address: 70:E4:22:83:0E:DE
                    Channel:149
                    Frequency:5.745 GHz (Channel 149)
                    Quality=35/70  Signal level=-75 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8e7d0cd4
                    Extra: Last beacon: 912ms ago
          Cell 44 - Address: 70:E4:22:8A:2C:8E
                    Channel:157
                    Frequency:5.785 GHz
                    Quality=60/70  Signal level=-50 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8d74157e
                    Extra: Last beacon: 496ms ago
          Cell 46 - Address: 70:E4:22:83:0F:41
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=23/70  Signal level=-87 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8e660a8d
                    Extra: Last beacon: 6300ms ago
          Cell 49 - Address: F4:0F:1B:93:F2:41
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=26/70  Signal level=-84 dBm  
                    Encryption key:on
                    ESSID:"WifiNet"
                    Bit Rates:12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s
                              54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005a8d806f9b
                    Extra: Last beacon: 5292ms ago

It’s hard to narrow it down more than that with my given configuration. Like I mentioned above, I’ll try to get a simple AP set up.