twotreeszf 发表于 2022-3-4 10:53:45

MT-1300 不定期 WiFi 中断

本帖最后由 twotreeszf 于 2022-3-22 12:59 编辑

更新:
关闭Macbook网络唤醒后,问题解决,不会重连WiFi了。


以下为问题描述,希望官方能帮忙排查解决一下:


系统:官方原版 3.211 环境:安装 Luci
WiFi:5G + 2.4G

问题描述:
发现会不定期 WiFi 中断,一般几个小时一次,一天好几次。因为每次WiFi中断会自动重开,一般是2.4G的热点先出来,电脑头一天下班时,连得5G,第二天早上上班就变成2.4G了,说明晚上断过。正常使用过程中,也发现过WiFi中断,表现为SSH后台突然不能敲字了,然后发现WiFi连接没了。

内核日志可疑之处:
0195.745457] :MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(1)
:MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
ASSOC - 1 receive DIS-ASSOC request
:MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(1)
:MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)
:Radar detected !!!!!!!!!!!!!!!!!
:ucRddIdx: 1
PrimCh: 161, Band0Ch:161, Band1Ch:0
Update wdev of BssIdx 0
 Normal Mode. Update Uniform Ch=161, BW=2 
bandIdx: 1, BssIdx: 0, NextCh: 161
 2 
APStop(), oper(2) bssid(0)=94:83:c4:16:61:cb
wifi_sys_linkdown(), wdev idx = 0
ExtEventBeaconLostHandler::FW LOG, Beacon lost (94:83:c4:16:61:cb), Reason 0x10
   Beacon lost - AP disabled!!!
bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 0, CmdBssInfoBmcRate.u2McTransmit = 0
wifi_sys_close(), wdev idx = 0
<=== APStop()
APStartUp(), oper(2) bssid(0)=94:83:c4:16:61:cb
wifi_sys_open(), wdev idx = 0
wdev_attr_update(): wdevId0 = 94:83:c4:16:61:cb
rcUpdateBandForBFMU      PhyCtrl.RadioCtrl.IsBfBand = 0
rcUpdateBandForBFMU      PhyCtrl.RadioCtrl.IsBfBand = 1
TxBfModuleEnCtrl:i = 0, pRadioCtrl->IsBfBand = 0
TxBfModuleEnCtrl:i = 1, pRadioCtrl->IsBfBand = 1
TxBfModuleEnCtrl:u1BfNum = 1, u1BfBitmap = 1, u1BfSelBand = 1
MtCmdSetDbdcCtrl:(ret = 0)
 RD_NORMAL_MODE 
Normal start. Enable MAC TX
Caller: wlan_operate_init+0xf4/0x108
phy_mode=49, ch=161, wdev_type=1
ht_cap->HtCapInfo: ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
ht_cap->HtCapParm: mdpu_density=5, ampdu_factor=3
AP inf up for ra_0(func_idx) OmacIdx=0
AsicRadioOnOffCtrl(): DbdcIdx=1 RadioOn
ApAutoChannelAtBootUp----------------->
ApAutoChannelAtBootUp: AutoChannelBootup = 1
MtCmdSetMacTxRx:(ret = 0)
MtCmdSetMacTxRx:(ret = 0)
ApAutoChannelAtBootUp<-----------------
APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
wifi_sys_linkup(), wdev idx = 0
wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
LinkToOmacIdx = 0, LinkToWdevType = 1
bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u2McTransmit = 8196
MtCmdSetDbdcCtrl:(ret = 0)
UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 0
APStartUpForMbss: BssIndex = 1 channel = 161
MtCmdTxPowerDropCtrl: ucPowerDrop: 1, BandIdx: 1
apidx 0 for WscUUIDInit
Generate UUID for apidx(0)
APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
APStartUpForMbss: BssIndex = 1 channel = 161
MtCmdTxPowerDropCtrl: ucPowerDrop: 1, BandIdx: 1
Main bssid = 94:83:c4:16:61:cb
MtCmdSetDfsTxStart:(ret = 0)
Rcv Wcid(1) AddBAReq
Start Seq = 00000000


萝卜大侠 发表于 2022-3-4 10:56:08

执行下面命令再观察一下
/etc/init.d/gl_health stop
/etc/init.d/gl_health disable

twotreeszf 发表于 2022-3-4 11:19:38

好的,我试试

twotreeszf 发表于 2022-3-5 11:30:51

您好,我按上面的方法试过了,今天早上来公司,WiFi还是切到2.4G了,而且路由器断网,WiFi无法dhcp,拔电重启后网络恢复,可疑日志如下:

------------[ cut here ]------------
WARNING: CPU: 0 PID: 18838 at mm/rmap.c:235 anon_vma_clone+0xf4/0x204
Modules linked in: rt2800usb rt2800lib pppoe ppp_async option usb_wwan sierra_net sierra rt2x00usb rt2x00lib rndis_host qmi_wwan pppox ppp_mppe ppp_generic nf_nat_pptp nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet nf_conntrack_pptp mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE huawei_cdc_ncm ebtable_nat ebtable_filter ebtable_broute cp210x cfg80211 cdc_ncm cdc_ether xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_hashlimit xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_IPMARK xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY wireguard usbserial usbnet ts_fsm ts_bm slhc nft_set_rbtree nft_set_hash nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet
nft_reject nft_redir_ipv4 nft_redir nft_quota nft_numgen nft_nat nft_meta nft_masq_ipv4 nft_masq nft_log nft_limit nft_flow_offload nft_exthdr nft_ct nft_counter nft_chain_route_ipv6 nft_chain_route_ipv4 nft_chain_nat_ipv4 nf_tables_ipv6 nf_tables_ipv4 nf_tables_inet nf_tables 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_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda mt_wifi macvlan iptable_raw iptable_mangle iptable_filter
ipt_ECN ipheth ip_tables ebtables ebt_vlan ebt_stp ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_among ebt_802_3 crc_ccitt compat_xtables compat cdc_wdm cdc_acm xt_u32 fuse sch_teql sch_sfq sch_red sch_prio sch_pie sch_multiq sch_gred sch_fq sch_dsmark sch_codel sch_cbq em_text em_nbyte em_meta em_cmp act_simple act_police act_pedit act_ipt act_gact act_csum libcrc32c act_connmark sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred i2c_gpio i2c_algo_bit i2c_dev ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark
ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6t_NPT ip6t_MASQUERADE nf_nat_masquerade_ipv6 nf_nat nf_conntrack nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ip6_udp_tunnel udp_tunnel tun vfat fat ntfs nls_utf8 nls_iso8859_1 nls_cp437 sha1_generic ecb uas mmc_block usb_storage sdhci_pltfm sdhci mtk_sd mmc_core leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd uhci_hcd ohci_platform ohci_hcd ahci libahci libata ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 mbcache jbd2 exfat usbcore nls_base usb_common mii crc32c_generic
CPU: 0 PID: 18838 Comm: sh Not tainted 4.14.241 #0
Stack : 00000000 8bab0f3c 01000000 8007351c 80610000 805a198c 00000000 00000000
         8056b22c 8c137cfc 8fd11cfc 805e09e7 80565fc0 00000001 8c137ca0 ac07f5e8
         00000000 00000000 80740000 0000cc00 00000000 00000975 00000008 00000000
         00000000 805e0000 00098631 00000000 80000000 80600000 00000000 80572e40
         8011054c 000000eb 80770000 8bab0f3c 00000001 802c48a0 003beb2f 003beb6f
         ...
Call Trace:
[<8000c7b0>] show_stack+0x58/0x100
[<8049ee14>] dump_stack+0xa4/0xe0
[<8002f8d8>] __warn+0xe0/0x138
[<8002f9c0>] warn_slowpath_null+0x1c/0x2c
[<8011054c>] anon_vma_clone+0xf4/0x204
[<80110698>] anon_vma_fork+0x3c/0x158
[<8002dc04>] copy_process.part.87+0xa04/0x160c
[<8002e9c0>] _do_fork+0x100/0x380
[<8002eca0>] sys_fork+0x24/0x30
[<80016578>] syscall_common+0x34/0x58
---[ end trace 86a93de26a1e1c5e ]---

麻烦帮忙看一下啊

萝卜大侠 发表于 2022-3-5 17:27:44

twotreeszf 发表于 2022-3-5 11:30
您好,我按上面的方法试过了,今天早上来公司,WiFi还是切到2.4G了,而且路由器断网,WiFi无法dhcp,拔电重 ...

是不是有啥东西把内存都占光了啊?

twotreeszf 发表于 2022-3-5 18:09:41

本帖最后由 twotreeszf 于 2022-3-5 18:10 编辑

内存问题我再观察一下,按理说不应该,晚上都没有流量。

请教一下,这个机器我这边还有个问题,就是没法刷自己编译的OpenWrt固件,要么完全没法启动一直闪灯,要么只能ssh进去,但是luci没有,而且我看dmesg有报错,麻烦问一下怎么回事,用的这里的固件 https://www.right.com.cn/forum/f ... wthread&tid=7085123:

SQUASHFS error: Unable to read page, block 1199c7e, size b86c
SQUASHFS error: Unable to read fragment cache entry
SQUASHFS error: Unable to read page, block 1199c7e, size b86c
SQUASHFS error: xz decompression failed, data probably corrupt
SQUASHFS error: squashfs_read_data failed to read block 0x3799fa
SQUASHFS error: Unable to read fragment cache entry
SQUASHFS error: Unable to read page, block 1199c7e, size b86c
SQUASHFS error: Unable to read fragment cache entry
SQUASHFS error: Unable to read page, block 1199c7e, size b86c
SQUASHFS error: Unable to read fragment cache entry
SQUASHFS error: Unable to read page, block 1199c7e, size b86c
SQUASHFS error: Unable to read fragment cache entry
SQUASHFS error: Unable to read page, block 1199c7e, size b86c
SQUASHFS error: xz decompression failed, data probably corrupt
SQUASHFS error: squashfs_read_data failed to read block 0x1200262
SQUASHFS error: xz decompression failed, data probably corrupt
SQUASHFS error: squashfs_read_data failed to read block 0x1200262
SQUASHFS error: Unable to read fragment cache entry
SQUASHFS error: Unable to read page, block 1199c7e, size b86c
SQUASHFS error: Unable to read fragment cache entry
SQUASHFS error: Unable to read page, block 1199c7e, size b86c

twotreeszf 发表于 2022-3-6 17:35:37

更新一下关于WiFi断开的问题,今天在公司加班,突然发生了断开和5G切到2.4G,我查了一下路由器日志,发现比较正常,于是看了一下Mac电脑的wifi日志/var/log/wifi.log,在日志中发现这么一条,时间点刚好吻合,目前猜测是Mac系统的问题,我暂时关闭了电脑的网络唤醒,再观察一下。


Sun Mar6 03:45:22.462 <airport> systemWokenByWiFi: System Wake Reason not found
Sun Mar6 03:45:26.488 <airport> ERROR: rapportd (438) is not entitled for com.apple.wifi.join_history, will not allow request
Sun Mar6 03:45:26.489 <airport> ERROR: sharingd (492) is not entitled for com.apple.wifi.join_history, will not allow request
Sun Mar6 03:45:26.633 <airport> ERROR: rapportd (438) is not entitled for com.apple.wifi.join_history, will not allow request
Sun Mar6 03:45:26.634 <airport> ERROR: sharingd (492) is not entitled for com.apple.wifi.join_history, will not allow request
Sun Mar6 03:45:26.779 <airport> ERROR: rapportd (438) is not entitled for com.apple.wifi.join_history, will not allow request
Sun Mar6 03:45:26.781 <airport> ERROR: sharingd (492) is not entitled for com.apple.wifi.join_history, will not allow request
Sun Mar6 03:45:26.928 <airport> ERROR: sharingd (492) is not entitled for com.apple.wifi.join_history, will not allow request
Sun Mar6 03:45:26.936 <airport> ERROR: rapportd (438) is not entitled for com.apple.wifi.join_history, will not allow request
Sun Mar6 03:45:26.969 <airport> systemWokenByWiFi: System Wake Reason not found
Sun Mar6 03:45:27.142 <airport> systemWokenByWiFi: System Wake Reason not found
Sun Mar6 03:45:39.566 <airport> __SymptomsMgrDNSFailureSymptomsCallback: __SymptomsMgrDNSFailureSymptomsCallback called at 668202339.566507
Sun Mar6 03:45:47.818 Apple80211Set:10289 Processing APPLE80211_IOC_ROAM
Sun Mar6 03:45:47.818 Apple80211Set:10303 Processing APPLE80211_IOC_ROAM dataRef:0x7fbddd94e670
Sun Mar6 03:45:47.818 Apple80211Set:10324 CFType is CFData

萝卜大侠 发表于 2022-3-7 09:12:17

twotreeszf 发表于 2022-3-6 17:35
更新一下关于WiFi断开的问题,今天在公司加班,突然发生了断开和5G切到2.4G,我查了一下路由器日志,发现比 ...

看起来像是系统休眠导致的

twotreeszf 发表于 2022-3-7 12:18:20

我系统并没有休眠,貌似是系统bug,在正常使用过程中被触发网络唤醒,导致了重新联网

twotreeszf 发表于 2022-3-8 12:55:01

更新,这几天没有观察到中断,后面再看看,多谢。
页: [1] 2
查看完整版本: MT-1300 不定期 WiFi 中断