WiFi disconnects when moving Jetson

I have a problem on L4T 28.2.0 Jetson TX1 that WiFi disconnects when I move TX1. Probably due to the changing the AP.

I have searched this problem and found some answer here:
https://devtalk.nvidia.com/default/topic/1047138/jetson-tx1/wifi-disconnect-problem-on-jetpack-3-3/2

But I cannot understand how to patch can someone explain where that file is?

Apparently, WiFi disconnects even at stationary position at some point. Here is the dmesg when it disconnected:

[ 6811.961993] CPU: 2 PID: 7826 Comm: kworker/u8:1 Tainted: G        W       4.4.38-tegra #2
[ 6811.961993] Hardware name: jetson_tx1 (DT)
[ 6811.962000] Workqueue: cfg80211 cfg80211_event_work

[ 6811.962002] task: ffffffc07cde4b00 ti: ffffffc0ae764000 task.ti: ffffffc0ae764000
[ 6811.962006] PC is at __cfg80211_connect_result+0x19c/0x230
[ 6811.962007] LR is at __cfg80211_connect_result+0xe4/0x230
[ 6811.962009] pc : [<ffffffc000b4e69c>] lr : [<ffffffc000b4e5e4>] pstate: 40000145
[ 6811.962010] sp : ffffffc0ae767c80
[ 6811.962011] x29: ffffffc0ae767c90 
[ 6811.962012] x28: 0000000000000000 

[ 6811.962013] x27: ffffffc05d61e618 
[ 6811.962014] x26: ffffffc000dbd3f8 

[ 6811.962015] x25: dead000000000100 
[ 6811.962015] x24: dead000000000200 

[ 6811.962017] x23: ffffffc0f4bc00b0 
[ 6811.962017] x22: ffffffc05d61e618 

[ 6811.962019] x21: 0000000000000000 
[ 6811.962019] x20: 0000000000000000 

[ 6811.962020] x19: ffffffc0f4bc0000 
[ 6811.962021] x18: 0000000000000000 

[ 6811.962022] x17: 0000000000000000 
[ 6811.962023] x16: 0000000000000000 

[ 6811.962024] x15: ffffffc0012eac40 
[ 6811.962025] x14: 338139b20cbf0000 

[ 6811.962026] x13: 0000000000000000 
[ 6811.962027] x12: 0000000000000000 

[ 6811.962028] x11: 00040524163d0000 
[ 6811.962028] x10: 0000000000000000 

[ 6811.962030] x9 : 0100000000000000 
[ 6811.962030] x8 : ffffffc0fb375600 

[ 6811.962032] x7 : 000000010018d743 
[ 6811.962032] x6 : 0000000000000002 

[ 6811.962033] x5 : 0000000000000001 
[ 6811.962034] x4 : 0000000000001d4c 

[ 6811.962035] x3 : ffffffc0014e5700 
[ 6811.962036] x2 : ffffffc0ae764000 

[ 6811.962037] x1 : 0000000000000000 
[ 6811.962038] x0 : 0000000000000000 


[ 6811.962276] ---[ end trace cbb6c80707665f56 ]---
[ 6811.962277] Call trace:
[ 6811.962281] [<ffffffc000b4e69c>] __cfg80211_connect_result+0x19c/0x230
[ 6811.962285] [<ffffffc000b268f8>] cfg80211_process_wdev_events+0xe0/0x1a8
[ 6811.962288] [<ffffffc000b26a0c>] cfg80211_process_rdev_events+0x4c/0x68
[ 6811.962290] [<ffffffc000b2127c>] cfg80211_event_work+0x1c/0x30
[ 6811.962294] [<ffffffc0000ba890>] process_one_work+0x268/0x508
[ 6811.962297] [<ffffffc0000badb4>] worker_thread+0x284/0x4a0
[ 6811.962299] [<ffffffc0000c1108>] kthread+0xf8/0x100
[ 6811.962303] [<ffffffc0000847a0>] ret_from_fork+0x10/0x30
[ 6812.177340] Report connect result - connection succeeded
[ 6812.410166] CFG80211-ERROR) wl_notify_connect_status : wl_bss_connect_done succeeded with 88:3d:24:70:ea:f4
[ 6812.839010] dhd_ndo_remove_ip: ndo ip addr remove failed, retcode = -23
[ 6812.847355] dhd_inet6_work_handler: Removing host ip for NDO failed -23
[ 6819.768056] CFG80211-ERROR) wl_bss_roaming_done : wl_bss_roaming_done succeeded to 88:3d:24:70:ea:f8 (ch:1)
[ 6819.777848] ------------[ cut here ]------------
[ 6819.782455] WARNING: at net/wireless/sme.c:850
[ 6819.786886] Modules linked in: hid_sensor_gyro_3d hid_sensor_accel_3d hid_sensor_trigger hid_sensor_iio_common industrialio_triggered_buffer kfifo_buf hid_sensor_hub xt_addrtype br_netfilter bcmdhd bluedroid_pm

[ 6819.807108] CPU: 1 PID: 815 Comm: wl_event_handle Tainted: G        W       4.4.38-tegra #2
[ 6819.815438] Hardware name: jetson_tx1 (DT)
[ 6819.819522] task: ffffffc0f33cd780 ti: ffffffc07950c000 task.ti: ffffffc07950c000
[ 6819.826991] PC is at cfg80211_roamed+0x4c/0x90
[ 6819.831422] LR is at cfg80211_roamed+0x48/0x90
[ 6819.835852] pc : [<ffffffc000b4dabc>] lr : [<ffffffc000b4dab8>] pstate: 40000145
[ 6819.843229] sp : ffffffc07950fc40
[ 6819.846533] x29: ffffffc07950fc40 x28: ffffffbffc09de78 
[ 6819.851843] x27: ffffffc07cd64c18 x26: ffffffc07cd64c5d 
[ 6819.857153] x25: 00000000000117c9 x24: 00000000024000c0 
[ 6819.862463] x23: 000000000000006d x22: ffffffc07a261664 
[ 6819.867773] x21: 0000000000000071 x20: ffffffc07a261260 
[ 6819.873082] x19: ffffffc07d364000 x18: 0000000000020000 
[ 6819.878392] x17: 0000000000000000 x16: 0000000000000000 
[ 6819.883702] x15: ffffffc001306760 x14: 6565636375732065 
[ 6819.889012] x13: 6e6f645f676e696d x12: 0000000000008f0a 
[ 6819.894321] x11: 0000000000000002 x10: 0000000000000001 
[ 6819.899631] x9 : 0000000000008f0a x8 : ffffffc000300ea8 
[ 6819.904941] x7 : 00000000024000c0 x6 : 0000000000000002 
[ 6819.910251] x5 : 0000000000000001 x4 : 0000000000001d4c 
[ 6819.915560] x3 : ffffffc0014e5700 x2 : ffffffc07950c000 
[ 6819.920869] x1 : 0000000000000000 x0 : 0000000000000000 

[ 6819.927910] ---[ end trace cbb6c80707665f57 ]---
[ 6819.932514] Call trace:
[ 6819.934954] [<ffffffc000b4dabc>] cfg80211_roamed+0x4c/0x90
[ 6819.940579] [<ffffffbffc0398cc>] wl_bss_roaming_done.isra.20+0x23c/0x348 [bcmdhd]
[ 6819.948188] [<ffffffbffc04b5d0>] wl_notify_connect_status+0x830/0x14e0 [bcmdhd]
[ 6819.955624] [<ffffffbffc037a10>] wl_event_handler+0x168/0x278 [bcmdhd]
[ 6819.962139] [<ffffffc0000c1108>] kthread+0xf8/0x100
[ 6819.967006] [<ffffffc0000847a0>] ret_from_fork+0x10/0x30
[ 6819.982936] CFG80211-ERROR) wl_notify_connect_status : wl_bss_connect_done succeeded with 88:3d:24:70:ea:f8
[ 6819.992910] CFG80211-ERROR) wl_bss_roaming_done : BSS already present, Skipping roamed event to upper layer
[ 6822.891825] CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_DEAUTH_IND
[ 6822.899244] CFG80211-ERROR) wl_notify_connect_status : link down if wlan0 may call cfg80211_disconnected. event : 6, reason=2 from 88:3d:24:70:ea:f8
[ 6822.922099] cfg80211: World regulatory domain updated:
[ 6822.927258] cfg80211:  DFS Master region: unset
[ 6822.931677] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 6822.941426] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 6822.949591] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 6822.959094] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 6822.967163] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 6822.976705] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 6822.990119] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 6822.998205] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 6823.006201] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 6823.020287] cfg80211: World regulatory domain updated:
[ 6823.025433] cfg80211:  DFS Master region: unset
[ 6823.029789] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 6823.039582] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 6823.047706] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 6823.057092] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 6823.065123] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 6823.074593] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 6823.084091] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 6823.094481] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 6823.102733] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 7242.607936] tegradc tegradc.1: unblank

Solved the problem by rebuilding the kernel.