openwrt / mt76 Goto Github PK
View Code? Open in Web Editor NEWmac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
if the mt76 driver support mt7602e?
why my mt7602e device not work?
slightly different complaints about 'info':
/mnt/dl/slave/octeon/build/build_dir/target-mips64_octeon_64_uClibc-0.9.33.2/linux-octeon/mt76-2015-07-18/mcu.c: In function 'mt76_mcu_msg_send':
/mnt/dl/slave/octeon/build/build_dir/target-mips64_octeon_64_uClibc-0.9.33.2/linux-octeon/mt76-2015-07-18/mcu.c:93:11: error: 'info' may be used uninitialized in this function
Similiar question to #5
Would this be suitable for the abgn+ac usb wifi stick AC430 from AVM?
Openwrt Version: HEAD (17/3-2016)
mt76: 7059cc2
Kernel: 4.4
Hardware: MT7688 (LinkIt)
After hacking the device tree the driver is functional :-)
But ARP requests are not getting through.
If I look in mac80211.c/mt76_rx_complete I can see that some broadcast packets but not all are getting through.
This might be a firmware issue or just missing configuration.
Any idea on how to track this bug down?
Regards
Jakob
root@sh:/# [ 1428.380000] ------------[ cut here ]------------
[ 1428.380000] WARNING: CPU: 1 PID: 2909 at /home/sh/sh03/openwrt/build_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-03-04/mt7603_mac.c:1190 mt7603_mac_work+0xe8/0x288 mt7603e
[ 1428.420000] Modules linked in: pppoe ppp_async iptable_nat pptp pppox ppp_mppe ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_quota xt_pkttype xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_ecn xt_dscp xt_conntrack xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt mt7603e mt76x2e mt76 mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ip_gre gre ip_tunnel tun ipv6 sha1_generic ecb arc4 crypto_blkcipher mmc_block sdhci_pltfm sdhci mtk_sd mmc_core leds_gpio xhci_plat_hcd xhci_hcd ahci libahci libata sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common aead crypto_hash
[ 1428.610000] CPU: 1 PID: 2909 Comm: kworker/u8:0 Not tainted 3.18.29 #3
[ 1428.620000] Workqueue: phy1 mt7603_mac_work [mt7603e]
[ 1428.630000] Stack : 00000000 00000004 00000006 00000001 00000000 00000001 00000000 00000000
8eab6500 802d8824 00000000 8ec4d190 000004a6 00000000 8f804814 8f804800
00000088 8005a380 80384468 80040e34 8f804814 8f804800 802ff7b8 8f859d64
8f859d64 800291d4 80340e60 8003e5a8 802dc474 00000000 00000477 00000000
00000000 00000000 00000000 00000000 00000000 00000000 31796870 00000000
...
[ 1428.700000] Call Trace:
[ 1428.710000] [<800160c0>] show_stack+0x50/0x84
[ 1428.720000] [<8015dedc>] dump_stack+0x88/0xc0
[ 1428.730000] [<800292dc>] warn_slowpath_common+0x84/0xb4
[ 1428.740000] [<80029394>] warn_slowpath_null+0x18/0x24
[ 1428.750000] [<8ec4d190>] mt7603_mac_work+0xe8/0x288 [mt7603e]
[ 1428.760000] [<8003c118>] process_one_work+0x218/0x354
[ 1428.770000] [<8003cac0>] worker_thread+0x2d8/0x448
[ 1428.780000] [<80040870>] kthread+0xd8/0xe4
[ 1428.790000] [<80005878>] ret_from_kernel_thread+0x14/0x1c
[ 1428.800000]
[ 1428.800000] ---[ end trace 5df2a396188f9de3 ]---
Hi,
I have a router with mt7621 chipset and an mt7603/mt7612 wifi combo. The image I am using is built from OpenWRT trunk and has kernel 4.4 + all the latest mt76 and mac80211 fixes/changes. The mt7612 (used for the 5GHz) is working perfect, but I am having some issues with the mt7603 and an iPhone 6S. There might be other devices experiencing the same problems, but I dont have any available.
When I initially connect the iPhone to the 2.4 GHz wifi (i.e., the mt7603) everything works fine. However, when the phone has been idle for a while and tries to reconnect, something goes wrong. When looking at the settings on the phone, I see that it has acquired an IP and this seems to match the output in syslog. However, no traffic goes through. It seems that the traffic sent from the phone is dropped somewhere. I also see the following warning in dmesg (not sure if it is connected or not):
[71401.890000] WARNING: CPU: 0 PID: 12201 at /home/kristrev/src/openwrt/trunk-git/openwrt-2/build_dir/target-mipsel_1004kc+dsp_musl-1.1.14/linux-ramips_mt7621/mt76-2016-03-04/mt7603_mac.c:1202 mt7603_mac_work+0x204/0x280 [mt7603e]()
[71401.910000] Modules linked in: rtl8192cu qcserial ppp_async option iptable_nat usb_wwan rtl_usb rtl8192c_common rt2800usb rt2800pci rt2800mmio rt2800lib rndis_host qmi_wwan ppp_generic nf_nat_pptp nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_ipv6 nf_conntrack_ipv4 nf_conntrack_amanda ipt_REJECT ipt_MASQUERADE huawei_cdc_ncm cdc_ncm cdc_ether ax88179_178a asix xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_owner xt_nfacct 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_addrtype xt_TCPMSS xt_REDIRECT xt_NFQUEUE xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial usbnet ts_kmp ts_fsm ts_bm slhc rtlwifi rt2x00usb rt2x00pci rt2x00mmio rt2x00lib nfnetlink_queue nfnetlink_acct 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_nat 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_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast iptable_rawpost iptable_raw iptable_mangle iptable_filter ipt_ECN ipheth ip_tables ip6table_rawpost crc_itu_t crc_ccitt compat_xtables cdc_wdm cdc_acm ath9k_htc ath9k ath9k_common ath9k_hw act_connmark nf_conntrack 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 mt7603e mt76x2e mt76 mac80211 cfg80211 compat ledtrig_usbdev xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet 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 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ifb eeprom_93cx6 leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd uhci_hcd ohci_platform ohci_hcd ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common mii aead crypto_null crypto_hash
[71402.110000] CPU: 0 PID: 12201 Comm: kworker/u8:1 Tainted: G W 4.4.6 #1
[71402.110000] Workqueue: phy1 mt7603_mac_work [mt7603e]
[71402.110000] Stack : 80450000 804b0000 8e775e00 803c9b08 8ee662b8 000004b2 8ee651d4 0000000a
[71402.110000] 8f804614 8e775e18 00000088 80062fdc 00002fa9 8049365c 8f804614 8e775e18
[71402.110000] 803e53fc 8da77d5c 803c9b08 80060d64 80450000 804b0000 803ce3b8 8da77d74
[71402.110000] 8da77d5c 8e775e00 803c9b08 800409d8 8148dd7c 8da77d68 0000083b 00000000
[71402.110000] 00000000 00000000 00000000 00000000 00000000 00000000 31796870 00000000
[71402.110000] ...
[71402.110000] Call Trace:
[71402.110000] [<800165d0>] show_stack+0x50/0x84
[71402.110000] [<801aada0>] dump_stack+0x84/0xbc
[71402.110000] [<8002baf0>] warn_slowpath_common+0xa0/0xd0
[71402.110000] [<8002bba4>] warn_slowpath_null+0x18/0x24
[71402.110000] [<8ee651d4>] mt7603_mac_work+0x204/0x280 [mt7603e]
[71402.110000] [<8003e650>] process_one_work+0x214/0x358
[71402.110000] [<8003f538>] worker_thread+0x2dc/0x444
[71402.110000] [<80043c3c>] kthread+0xdc/0xe8
[71402.110000] [<80005478>] ret_from_kernel_thread+0x14/0x1c
[71402.110000]
[71402.210000] ---[ end trace a3ba53e46e43160e ]---
This error does not happen every time the device has gone into idle mode. I unfortunately do not have access to any device where I can sniff the wifi traffic, so I won't be able to provide any of those details. I hope this issue can serve as a starting point for nailing down this bug. I have tested the 2.4 wifi network with other devices too, like my laptop, and do not see the issue.
Thanks in advance for any help.
mt76 sometimes panics the kernel, and when it happens, it ususally causes consecutive reboots because the same issue occurs few hundreds of seconds after the first few reboots. the following is the crashlog.
<0>[90064.190000] skbuff: skb_over_panic: text:872d0998 len:1832 put:1832 head:872e5800 data:872e5820 tail:0x872e5f48 end:0x872e5f40 dev:<NULL>
<4>[90064.210000] Kernel bug detected[#1]:
<4>[90064.210000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.17 #1
<4>[90064.210000] task: 8032ec90 ti: 80328000 task.ti: 80328000
<4>[90064.210000] $ 0 : 00000000 00000001 0000007d 00000000
<4>[90064.210000] $ 4 : 8032db74 8032db74 8032de30 00000000
<4>[90064.210000] $ 8 : 3e4c4c55 303a646e 32373878 34663565
<4>[90064.210000] $12 : 00000000 00000000 00000000 770dc320
<4>[90064.210000] $16 : 878650c0 87259894 87259720 00000000
<4>[90064.210000] $20 : 000002f0 872e5800 00000040 87259850
<4>[90064.210000] $24 : 00000000 80191b9c
<4>[90064.210000] $28 : 80328000 80329cb0 00000728 801e388c
<4>[90064.210000] Hi : 00000000
<4>[90064.210000] Lo : ec4e4000
<4>[90064.210000] epc : 801e388c skb_panic+0x58/0x5c
<4>[90064.210000] Not tainted
<4>[90064.210000] ra : 801e388c skb_panic+0x58/0x5c
<4>[90064.210000] Status: 1100f403 KERNEL EXL IE
<4>[90064.210000] Cause : 50800024
<4>[90064.210000] PrId : 00019650 (MIPS 24KEc)
<4>[90064.210000] Modules linked in: pppoe ppp_async iptable_nat rt2800soc rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nfnetlink nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress mt76pci mac80211 cfg80211 compat ledtrig_usbdev xt_LED ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables bonding tun dm_crypt dm_mirror dm_region_hash dm_log dm_mod ipv6 eeprom_93cx6 chainiv eseqiv xts crypto_wq algif_skcipher algif_hash af_alg krng rng gf128mul cbc arc4 crypto_blkcipher usb_storage sd_mod scsi_mod ext4 jbd2 mbcache crc16 crypto_hash leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
<4>[90064.210000] Process swapper (pid: 0, threadinfo=80328000, task=8032ec90, tls=00000000)
<4>[90064.210000] Stack : 00000001 80306630 872d0998 00000728 00000728 872e5800 872e5820 872e5f48
<4>[90064.210000] 872e5f40 802fa8a8 ffffffff 801e38d8 00000004 00000000 ff000100 87259de8
<4>[90064.210000] 87259894 872d0998 00000101 00000000 00000000 00000000 87259864 87259858
<4>[90064.210000] 87259de8 8032e860 87259720 00000040 00000040 8032e868 80330000 80330000
<4>[90064.210000] 80301508 872d0ae0 00000000 00000000 87259720 87259894 87259720 87259de8
<4>[90064.210000] ...
<4>[90064.210000] Call Trace:
<4>[90064.210000] [<801e388c>] skb_panic+0x58/0x5c
<4>[90064.210000] [<801e38d8>] skb_put+0x48/0x50
<4>[90064.210000] [<872d0998>] mt76_kick_queue+0x2a8/0x434 [mt76pci]
<4>[90064.210000]
<4>[90064.210000]
<4>[90064.210000] Code: 24841178 0c011e4e 00603821 <000c000d> 8c830060 8c8200a0 0003182b 00030336 8c87005c
<4>[90064.480000] ---[ end trace 2332bd0dddbb8cc6 ]---
===================================
enabled auto channel selection and got log spammed with
radio0 (4025): ACS: Survey is missing noise floor
ACS seems to be working fine
radio0 (4025): wlan0: ACS-COMPLETED freq=5260 channel=52 radio0 (4025): wlan0: interface state ACS->DFS radio0 (4025): wlan0: DFS-CAC-START freq=5260 chan=52 sec_chan=1, width=1, seg0=58, seg1=0, cac_time=60s
except that i'm not sure about sec_chan=1
shouldn't it be something like 56?
and according to this message HT not enabled (maybe it doesn't catch it's actually running VHT80?)
radio0 (4025): wlan0: DFS-CAC-COMPLETED success=1 freq=5260 ht_enabled=0 chan_offset=0 chan_width=3 cf1=5290 cf2=0
preconditions:
mt76 at git c3127d2
/etc/config/wireless:
config wifi-iface
option ifname 'wlan0-1'
option device radio0
option network lan
option mode adhoc
option ssid OpenWrt
option bssid 'ac:22:0b:07:22:97'
option encryption none
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11g
option path 'platform/10300000.wmac'
option htmode HT20
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1
Gets the following output:
[ 9.494218] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[ 9.508940] Backport generated by backports.git backports-20151218-0-g2f58d9d
[ 9.573606] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 11.628287] mt76_wmac 10300000.wmac: Firmware Version: _e2_mp
[ 11.639733] mt76_wmac 10300000.wmac: Build Time: 20150211175503
[ 11.666270] firmware init done
[ 11.842048] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 11.860581] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.892436] nf_conntrack version 0.5.0 (1967 buckets, 7868 max)
[ 11.976023] xt_time: kernel timezone is -0000
[ 11.997760] PPP generic driver version 2.4.2
[ 12.009256] NET: Registered protocol family 24
[ 18.880956] device eth0 entered promiscuous mode
[ 18.906770] br-lan: port 1(eth0) entered forwarding state
[ 18.917562] br-lan: port 1(eth0) entered forwarding state
[ 20.916256] br-lan: port 1(eth0) entered forwarding state
[ 21.217803] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[ 21.247589] wlan0-1: Created IBSS using preconfigured BSSID ac:22:0b:07:22:97
[ 21.261797] wlan0-1: Creating new IBSS network, BSSID ac:22:0b:07:22:97
[ 21.308589] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[ 48.051451] random: nonblocking pool is initialized
[ 61.416283] ------------[ cut here ]------------
[ 61.425520] WARNING: CPU: 0 PID: 7 at /home/jsj/dev/mt7688/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/linux-ramips_mt7688/mt76-master/mt7603_mac.c:1208 mt7603_mac_work+0x208/0x280 mt7603e
[ 61.461183] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt mt7603e mt76x2e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[ 61.593243] CPU: 0 PID: 7 Comm: kworker/u2:1 Not tainted 4.4.7 #3
[ 61.605341] Workqueue: phy0 mt7603_mac_work [mt7603e]
[ 61.615346] Stack : 87803410 87887e18 00000088 8004a070 8782a080 80390d43 8032df80 00000007
[ 61.615346] 80356e5c 878a9d64 80390000 80048028 00000088 8004a070 80333458 80390000
[ 61.615346] 00000003 878a9d64 80390000 80038338 00000088 878a9d9c 00000100 00000000
[ 61.615346] 00000001 00000000 8713d020 87b7f800 87b7f700 30796870 00000000 00000000
[ 61.615346] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 61.615346] ...
[ 61.685998] Call Trace:
[ 61.690861] [<8001451c>] show_stack+0x50/0x84
[ 61.699498] [<80024e34>] warn_slowpath_common+0xa0/0xd0
[ 61.709853] [<80024ee8>] warn_slowpath_null+0x18/0x24
[ 61.719884] [<8713d228>] mt7603_mac_work+0x208/0x280 [mt7603e]
[ 61.731483] [<8003628c>] process_one_work+0x1f8/0x334
[ 61.741508] [<80037088>] worker_thread+0x2b4/0x408
[ 61.751007] [<8003b3c0>] kthread+0xdc/0xe8
[ 61.759144] [<80004478>] ret_from_kernel_thread+0x14/0x1c
[ 61.769848]
[ 61.772859] ---[ end trace 5332c8b2834da861 ]---
Beacon interval set to 500, default just gets the error faster.
Hi there, does this driver work for MT7620A? Or should I use mtk-wifi-gpl or rt2800?
I also have rt2860v2 driver, which we bought from the licensed module vendor. Somebody leaked it here. Do you know which one is the best Wi-Fi driver for MT7620A?
Router is ZBT-WG3526 running openwrt trunk 4b4446b5f1a1bce2a7c7de90d5a6884212492da2 with wpad full installed.
5g: MT7612
2.4g MT7603
WPA2-EAP produces the following when enabled on either or both radios and router becomes unstable, WPA2-PSK works fine.
[ 23.310000] ------------[ cut here ]------------
[ 23.310000] WARNING: CPU: 2 PID: 71 at /home/gareth/openwrt/build_dir/target-mipsel_1004kc+dsp_musl-1.1.14/linux-ramips_mt7621/mt76-2016-03-04/mt7603_mac.c:1202 mt7603_mac_work+0x204/0x280 mt7603e
[ 23.330000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_quota xt_pkttype xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_ecn xt_dscp xt_conntrack xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt mt7603e mt76x2e mt76 mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd ahci libahci libata sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common
[ 23.410000] CPU: 2 PID: 71 Comm: kworker/u8:3 Not tainted 4.4.6 #9
[ 23.420000] Workqueue: phy1 mt7603_mac_work [mt7603e]
[ 23.420000] Stack : 8f918100 80450000 803cc84c 000004b2 8edbd224 00000000 8f804614 8f918118
00000088 80063244 803cc84c 00000002 00000047 804a365c 803e803c 8f99fd54
80450000 80060fcc 80450000 804c0000 80452118 8045211c 803d1130 8f99fd54
80450000 80040bf0 8f804614 8f99fd8c 00000447 00000000 00000000 0099fd74
8edbd020 8f9c1900 8f9c1a00 31796870 00000000 00000000 00000000 00000000
...
[ 23.460000] Call Trace:
[ 23.460000] [<80016640>] show_stack+0x50/0x84
[ 23.470000] [<801aa5dc>] dump_stack+0x84/0xbc
[ 23.470000] [<8002bb3c>] warn_slowpath_common+0xa0/0xd0
[ 23.470000] [<8002bbf0>] warn_slowpath_null+0x18/0x24
[ 23.480000] [<8edbd224>] mt7603_mac_work+0x204/0x280 [mt7603e]
[ 23.490000] [<8003e858>] process_one_work+0x214/0x358
[ 23.490000] [<8003f740>] worker_thread+0x2dc/0x444
[ 23.500000] [<80043e78>] kthread+0xdc/0xe8
[ 23.500000] [<80005478>] ret_from_kernel_thread+0x14/0x1c
[ 23.500000]
[ 23.510000] ---[ end trace e9c12d70b1d00a36 ]---
this must be wrong:
the other side is a Linksys WRT54G
# r48616 on Xiaomi Miwifi mini
root@xiaomi-mini2:~ iw dev wlan1 station get 00:13:10:14:c4:fe
Station 00:13:10:14:c4:fe (on wlan1)
inactive time: 110 ms
rx bytes: 122899664
rx packets: 778197
tx bytes: 344
tx packets: 4
tx retries: 1
tx failed: 0
signal: -101 dBm
signal avg: -102 dBm
tx bitrate: 1.0 MBit/s
rx bitrate: 6.0 MBit/s
expected throughput: 0.82Mbps
authorized: yes
authenticated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no
connected time: 39194 seconds
OLSR-values indicate, that the connection is good. the linksys says this:
root@linksys:/# iw dev wlan0 station get 64:09:80:7f:48:85
Station 64:09:80:7f:48:85 (on wlan0)
inactive time: 220 ms
rx bytes: 194398378
rx packets: 149588
tx bytes: 2258
tx packets: 27
tx retries: 4
tx failed: 0
signal: -65 dBm
signal avg: -64 dBm
tx bitrate: 6.0 MBit/s
rx bitrate: 1.0 MBit/s
authorized: yes
authenticated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no
Please, please try to improve the commit log. I'm currently looking at an issue and looking at the log is USELESS. All commit are just a short "fix X and Y" without any description of the problem fixed or what the fix is doing. I do hope the authors known what they are fixing, but this completely prevents others from tracking issues. Furthermore it make it hard for new developers to start working on the project as no explanations of the changes can be found in the log.
I known this can't be fixed for old commit, but in the future please try to adhere to the usual community standards and take a few minutes to write proper log messages. This will drastically improve the maintainability of you project and make it a lot easier for new developers to join.
just tried compiling trunk with last mt76 commit and get this error:
In file included from /home/ubuntu/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/linux-ramips_mt7620/mt76-2016-03-04/mt76.h:25:0,
from /home/ubuntu/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/linux-ramips_mt7620/mt76-2016-03-04/mmio.c:17:
/home/ubuntu/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/linux-ramips_mt7620/mt76-2016-03-04/util.h:20:28: fatal error: linux/bitfield.h: No such file or directory
compilation terminated.
Use mt76 turn 5G signals will break down automatically every 5 minutes.
looking at the code i see there is quite some defines missing, and some are possibly wrong!
for example:
MT_EE_LNA_GAIN = 0x044, MT_EE_RSSI_OFFSET_2G_0 = 0x046, MT_EE_RSSI_OFFSET_2G_1 = 0x048, MT_EE_RSSI_OFFSET_5G_0 = 0x04a, MT_EE_RSSI_OFFSET_5G_1 = 0x04c,
this would mean the data for chain 0 are not read since in my factory eeprom this field is 00. it is also wrong name RSSI_OFFSET for what the driver assumes it works with but it should be renamed to LNA_GAIN
according to MT7612E EEPROM content guideline
it should be:
MT_EE_LNA_GAIN_2G = 0x044, MT_EE_LNA_GAIN_5G_GROUP1 = 0x045, MT_EE_RSSI_OFFSET_2G_0 = 0x046, MT_EE_RSSI_OFFSET_2G_1 = 0x047, MT_EE_LNA_GAIN_5G_GROUP2 = 0x049, MT_EE_RSSI_OFFSET_5G_0 = 0x04a, MT_EE_RSSI_OFFSET_5G_1 = 0x04b, MT_EE_LNA_GAIN_5G_GROUP3 = 0x04d,
Hello,
I have a device based on MT7621AT with MT7602EN and MT7612EN. I have almost finished support for it in OpenWrt, but I don't know how to control LEDs for both radios.
They are connected directly to pin 50 on both MTK radio chips (I have found that it's GPIO/LEDA I/O, at least in MT7612E, I wasn't able to find information about second chip) and are "active in low" (connected to VCC over current limiting resistor).
How does it look with that kind of setup, is control of LED/GPIO I/Os supported (or planned) in mt76 driver (I wasn't able to find anything specific in sources)?
Thanks for any advice!
i've noticed that with recent commits reception speeds are pretty low. for comparison i've used previously compiled images and the speed drop increases as the image being tested gets newer.
for example
CC46672
ubuntu@vivid:~$ iperf -c 192.168.5.1 -i 1 -t 20 ------------------------------------------------------------ Client connecting to 192.168.5.1, TCP port 5001 TCP window size: 85.0 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.5.47 port 35983 connected with 192.168.5.1 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 5.62 MBytes 47.2 Mbits/sec [ 3] 1.0- 2.0 sec 5.62 MBytes 47.2 Mbits/sec [ 3] 2.0- 3.0 sec 5.50 MBytes 46.1 Mbits/sec [ 3] 3.0- 4.0 sec 5.75 MBytes 48.2 Mbits/sec [ 3] 4.0- 5.0 sec 5.62 MBytes 47.2 Mbits/sec [ 3] 5.0- 6.0 sec 7.50 MBytes 62.9 Mbits/sec [ 3] 6.0- 7.0 sec 7.25 MBytes 60.8 Mbits/sec [ 3] 7.0- 8.0 sec 7.38 MBytes 61.9 Mbits/sec [ 3] 8.0- 9.0 sec 7.25 MBytes 60.8 Mbits/sec [ 3] 9.0-10.0 sec 7.25 MBytes 60.8 Mbits/sec [ 3] 10.0-11.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 11.0-12.0 sec 9.75 MBytes 81.8 Mbits/sec [ 3] 12.0-13.0 sec 8.62 MBytes 72.4 Mbits/sec [ 3] 13.0-14.0 sec 8.88 MBytes 74.4 Mbits/sec [ 3] 14.0-15.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 15.0-16.0 sec 8.25 MBytes 69.2 Mbits/sec [ 3] 16.0-17.0 sec 9.25 MBytes 77.6 Mbits/sec [ 3] 17.0-18.0 sec 11.1 MBytes 93.3 Mbits/sec [ 3] 18.0-19.0 sec 8.75 MBytes 73.4 Mbits/sec [ 3] 19.0-20.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 0.0-20.0 sec 157 MBytes 65.7 Mbits/sec
vs DD49946
ubuntu@vivid:~$ iperf -c 192.168.5.1 -i 1 -t 20 ------------------------------------------------------------ Client connecting to 192.168.5.1, TCP port 5001 TCP window size: 85.0 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.5.47 port 36076 connected with 192.168.5.1 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 4.75 MBytes 39.8 Mbits/sec [ 3] 1.0- 2.0 sec 4.75 MBytes 39.8 Mbits/sec [ 3] 2.0- 3.0 sec 4.75 MBytes 39.8 Mbits/sec [ 3] 3.0- 4.0 sec 4.88 MBytes 40.9 Mbits/sec [ 3] 4.0- 5.0 sec 4.75 MBytes 39.8 Mbits/sec [ 3] 5.0- 6.0 sec 4.75 MBytes 39.8 Mbits/sec [ 3] 6.0- 7.0 sec 4.75 MBytes 39.8 Mbits/sec [ 3] 7.0- 8.0 sec 4.75 MBytes 39.8 Mbits/sec [ 3] 8.0- 9.0 sec 4.88 MBytes 40.9 Mbits/sec [ 3] 9.0-10.0 sec 4.88 MBytes 40.9 Mbits/sec [ 3] 10.0-11.0 sec 4.88 MBytes 40.9 Mbits/sec [ 3] 11.0-12.0 sec 4.00 MBytes 33.6 Mbits/sec [ 3] 12.0-13.0 sec 3.88 MBytes 32.5 Mbits/sec [ 3] 13.0-14.0 sec 3.62 MBytes 30.4 Mbits/sec [ 3] 14.0-15.0 sec 3.12 MBytes 26.2 Mbits/sec [ 3] 15.0-16.0 sec 2.88 MBytes 24.1 Mbits/sec [ 3] 16.0-17.0 sec 3.00 MBytes 25.2 Mbits/sec [ 3] 17.0-18.0 sec 3.12 MBytes 26.2 Mbits/sec [ 3] 18.0-19.0 sec 3.12 MBytes 26.2 Mbits/sec [ 3] 19.0-20.0 sec 3.62 MBytes 30.4 Mbits/sec [ 3] 0.0-20.2 sec 83.2 MBytes 34.6 Mbits/sec
at least i can confirm transmission got some improvement:
CC46672
root@OpenWrt:~# iperf -c 192.168.5.47 -i 1 -t 20 ------------------------------------------------------------ Client connecting to 192.168.5.47, TCP port 5001 TCP window size: 43.8 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.5.1 port 55801 connected with 192.168.5.47 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 6.50 MBytes 54.5 Mbits/sec [ 3] 1.0- 2.0 sec 6.00 MBytes 50.3 Mbits/sec [ 3] 2.0- 3.0 sec 6.75 MBytes 56.6 Mbits/sec [ 3] 3.0- 4.0 sec 7.25 MBytes 60.8 Mbits/sec [ 3] 4.0- 5.0 sec 7.38 MBytes 61.9 Mbits/sec [ 3] 5.0- 6.0 sec 7.50 MBytes 62.9 Mbits/sec [ 3] 6.0- 7.0 sec 7.75 MBytes 65.0 Mbits/sec [ 3] 7.0- 8.0 sec 6.25 MBytes 52.4 Mbits/sec [ 3] 8.0- 9.0 sec 7.00 MBytes 58.7 Mbits/sec [ 3] 9.0-10.0 sec 7.62 MBytes 64.0 Mbits/sec [ 3] 10.0-11.0 sec 7.50 MBytes 62.9 Mbits/sec [ 3] 11.0-12.0 sec 7.62 MBytes 64.0 Mbits/sec [ 3] 12.0-13.0 sec 7.62 MBytes 64.0 Mbits/sec [ 3] 13.0-14.0 sec 6.88 MBytes 57.7 Mbits/sec [ 3] 14.0-15.0 sec 6.00 MBytes 50.3 Mbits/sec [ 3] 15.0-16.0 sec 6.88 MBytes 57.7 Mbits/sec [ 3] 16.0-17.0 sec 7.25 MBytes 60.8 Mbits/sec [ 3] 17.0-18.0 sec 7.00 MBytes 58.7 Mbits/sec [ 3] 18.0-19.0 sec 6.88 MBytes 57.7 Mbits/sec [ 3] 19.0-20.0 sec 6.88 MBytes 57.7 Mbits/sec [ 3] 0.0-20.0 sec 141 MBytes 58.9 Mbits/sec
DD49946
root@OpenWrt:~# iperf -c 192.168.5.47 -i 1 -t 20 ------------------------------------------------------------ Client connecting to 192.168.5.47, TCP port 5001 TCP window size: 43.8 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.5.1 port 42930 connected with 192.168.5.47 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 10.1 MBytes 84.9 Mbits/sec [ 3] 1.0- 2.0 sec 9.00 MBytes 75.5 Mbits/sec [ 3] 2.0- 3.0 sec 9.50 MBytes 79.7 Mbits/sec [ 3] 3.0- 4.0 sec 9.50 MBytes 79.7 Mbits/sec [ 3] 4.0- 5.0 sec 9.25 MBytes 77.6 Mbits/sec [ 3] 5.0- 6.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 6.0- 7.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 7.0- 8.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 8.0- 9.0 sec 9.00 MBytes 75.5 Mbits/sec [ 3] 9.0-10.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 10.0-11.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 11.0-12.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 12.0-13.0 sec 9.00 MBytes 75.5 Mbits/sec [ 3] 13.0-14.0 sec 9.00 MBytes 75.5 Mbits/sec [ 3] 14.0-15.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 15.0-16.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 16.0-17.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 17.0-18.0 sec 9.12 MBytes 76.5 Mbits/sec [ 3] 18.0-19.0 sec 9.00 MBytes 75.5 Mbits/sec [ 3] 19.0-20.0 sec 9.00 MBytes 75.5 Mbits/sec [ 3] 0.0-20.0 sec 184 MBytes 77.0 Mbits/sec
[72351.244738] ------------[ cut here ]------------
[72351.249535] WARNING: CPU: 0 PID: 0 at /home/buildbot/slave-lede-local/ramips_mt7620/build/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/linux-ramips_mt7620/mt76-2016-06-17/mt76x2_mac.c:234 mt76x2_mac_process_rx+0x94/0x2bc mt76x2e
[72351.270656] Modules linked in: pppoe ppp_async iptable_nat rt2800soc rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt7603e mt76x2e mt76 mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[72351.349377] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.13 #1
[72351.355250] Stack : 8036392c 00000000 00000001 803b0000 803ab2b8 803aaf43 80345158 00000000
[72351.355250] 803f342c 86ee5000 00000001 00000000 87181808 8004a0a0 8034a658 803a0000
[72351.355250] 00000003 86ee5000 80348a5c 803a5bec 87181808 80048058 871813e0 00000000
[72351.355250] 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[72351.355250] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[72351.355250] ...
[72351.391628] Call Trace:
[72351.394134] [<800144fc>] show_stack+0x50/0x84
[72351.398587] [<80024e60>] warn_slowpath_common+0xa0/0xd0
[72351.403936] [<80024f14>] warn_slowpath_null+0x18/0x24
[72351.409113] [<87153bcc>] mt76x2_mac_process_rx+0x94/0x2bc [mt76x2e]
[72351.415553] [<8715049c>] mt76x2_queue_rx_skb+0x84/0xcc [mt76x2e]
[72351.421723] [<87189178>] mt76_dma_attach+0xcb8/0xdd8 [mt76]
[72351.427415]
[72351.428936] ---[ end trace 9e60387f99d4f382 ]---
[77340.141139] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.150626] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.160073] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.169514] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.178959] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.188406] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.197850] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.207303] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.216728] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.226170] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.235612] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.245064] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.254502] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.263939] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[77340.273376] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.891641] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.901212] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.910755] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.920286] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.929816] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.939333] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.948861] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.958402] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.967936] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.977466] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.986993] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120535.996522] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120536.006048] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120536.015575] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[120536.025102] ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
[236467.059146] mtk_soc_eth 10100000.ethernet eth0: port 1 link up (100Mbps/Full duplex)
I have a ZBT-WE826 router with built-in SD Card slot. I am trying to mount my SD card in my Router. I've openWRT CC with kernel 3.18. I've download mmc_over_gpio and related packages.. But the problem arises, when I run "/etc/init.d/mmc_over_gpio restart", i get this error "no support for SD card's voltages" ..
There is also a ticket open in openWRT for this on, "https://dev.openwrt.org/ticket/21834" ..
How can i solve this error?? i tried multiple SD cards, but no use..
Current LEDE master compiled for WiTiBoard gives slow 2GHz wifi (MT7602E)
I have configured N mode through Luci on 20MHz (channel 11), but download speed is 2.5 MB/s at most.
signal avg looks wrong. tested with OpenWrt r48014
root@xiaomi-mini:~ iw dev wlan0 station get 10:6f:3f:0e:31:8f
Station 10:6f:3f:0e:31:8f (on wlan0)
inactive time: 120 ms
rx bytes: 37767883
rx packets: 161734
tx bytes: 258015651
tx packets: 187789
tx retries: 4589
tx failed: 0
signal: 75 [72, 75] dBm
signal avg: 0 [-3, 0] dBm
tx bitrate: 54.0 MBit/s
rx bitrate: 54.0 MBit/s
expected throughput: 3.808Mbps
authorized: yes
authenticated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no
connected time: 6191 seconds
We've been looking at the performance on the MT7688 based Linkit of this open driver relative to the original closed driver provided by MTK.
Using iperf we get ~40Mbps of tcp performance on a local network.
DUT - wifi - AP - ether - LAPTOP
The identical network and hardware setup with the open driver gets lets than 1Mbps (if that).Sometimes with significant stalls etc.
This is with #28 applied.
Just wondering if others see the same poor throughput performance?
Occasionally see this after changing wifi settings, driver locks up and doesn't recover. Typing iwconfig for example after this just hangs forever.
[ 1120.522768] wlan0: deauthenticating from 00:60:b3:07:20:08 by local choice (Reason: 3=DEAUTH_
LEAVING)
[ 1122.325976] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1123.976553] wlan0: authenticate with 00:60:b3:07:20:08
[ 1123.996551] wlan0: send auth to 00:60:b3:07:20:08 (try 1/3)
[ 1124.114411] wlan0: send auth to 00:60:b3:07:20:08 (try 2/3)
[ 1124.234318] wlan0: send auth to 00:60:b3:07:20:08 (try 3/3)
[ 1124.354314] wlan0: authentication with 00:60:b3:07:20:08 timed out
[ 1125.364329] MCU message 8 (seq 10) timed out
[ 1126.364329] MCU message 40 (seq 11) timed out
[ 1126.373459] ------------[ cut here ]------------
[ 1126.382720] WARNING: CPU: 0 PID: 1591 at /home/adam/scratch/openwrt/build_dir/target-mipsel_24kec+dsp_glibc-2.22/linux-ramips_mt7688/mt76-2016-03-04/mt7603_mac.c:1190 mt7603_mac_work+0xf0/0x274 mt7603e
[ 1126.638535] CPU: 0 PID: 1591 Comm: kworker/u2:0 Not tainted 4.4.6 #19
[ 1126.651313] Workqueue: phy0 mt7603_mac_work [mt7603e]
I'm trying to use an MT7603 via PCIe to connect to an existing IBSS/Ad-Hoc network. Scanning and joining the network seems to work fine, iw .., station dump also shows the neighbouring peers with plausible signal strengths. However, I do not receive a single packet :-(
[ 300.860000] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 300.880000] wlan1: Created IBSS using preconfigured BSSID 02:ca:ff:ee:ba:be
[ 300.880000] wlan1: Creating new IBSS network, BSSID 02:ca:ff:ee:ba:be
[ 300.890000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
root@lede:/etc/config# iw dev wlan1 station dump
Station xx:xx:xx:xx:xx:xx (on wlan1)
inactive time: 100 ms
rx bytes: 1278
rx packets: 18
tx bytes: 0
tx packets: 0
tx retries: 0
tx failed: 0
signal: -90 [-90, -91] dBm
signal avg: -89 [-90, -90] dBm
tx bitrate: 1.0 MBit/s
rx bitrate: 1.0 MBit/s
authorized: yes
authenticated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no
connected time: 5 seconds
Station xx:xx:xx:xx:xx:xx (on wlan1)
inactive time: 60 ms
rx bytes: 6992
rx packets: 92
tx bytes: 0
tx packets: 0
tx retries: 0
tx failed: 0
signal: -25 [-25, -36] dBm
signal avg: -24 [-24, -36] dBm
tx bitrate: 1.0 MBit/s
rx bitrate: 1.0 MBit/s
authorized: yes
authenticated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no
connected time: 5 seconds
Station xx:xx:xx:xx:xx:xx (on wlan1)
inactive time: 0 ms
rx bytes: 5822
rx packets: 82
tx bytes: 0
tx packets: 0
tx retries: 0
tx failed: 0
signal: -90 [-90, -92] dBm
signal avg: -90 [-90, -91] dBm
tx bitrate: 1.0 MBit/s
rx bitrate: 1.0 MBit/s
authorized: yes
authenticated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no
connected time: 4 seconds
root@lede:/etc/config# ifconfig wlan1
wlan1 Link encap:Ethernet HWaddr 78:A3:51:10:43:70
inet6 addr: fe80::7aa3:51ff:fe10:4370/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:864 (864.0 B)
[ 312.360000] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 312.380000] wlan1: Created IBSS using preconfigured BSSID 02:ca:ff:ee:ba:be
[ 312.380000] wlan1: Creating new IBSS network, BSSID 02:ca:ff:ee:ba:be
/home/buildbot/slave/x86.64/build/build_dir/target-x86_64_musl-1.1.10/linux-x86_64/mt76-2015-07-18/dma.c:543:34: error: conflicting type qualifiers for 'dma_ops'
static const struct mt76_dma_ops dma_ops = {
This might be helpful! https://github.com/mqmaker/mt76x2e/tree/master/src
I'm trying the changes to support MT7628/88 and have been successful in getting AP working, but can't for the life of me get STA working.
Are there any known issues with STA on this chipset? I notice I can't even scan for networks.
It would be nice to be able to test mt76 on unsupported/rare mt76xx hardware via vendor and product parameters.
Right now:
mt76x2e: unknown parameter 'vendor' ignored
mt76x2e: unknown parameter 'product' ignored
Openwrt Version: CC
mt76: 2015-10-12
Kernel: 3.18.23
Hardware: MT7602 & MT7612
WiFi Seems work fine, the station could connect the AP. But the console shows following warning.
[ 2281.060000] WARNING: CPU: 0 PID: 0 at /home/winton/workspace/fnic/mhwtsd2000.git/build_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2015-10-12/mac.c:67 mt76_mac_process_rx+0x19c/0x248 mt76pci
[ 2281.080000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_quota xt_pkttype xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_ecn xt_dscp xt_conntrack xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc7 crc_itu_t crc_ccitt mt76pci mac80211 cfg80211 compat ledtrig_usbdev xt_NFQUEUE nfnetlink_queue nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ntfs autofs4 nls_utf8 ipv6 eeprom_93cx6 arc4 crypto_blkcipher mmc_block sdhci_pltfm sdhci mtk_sd mmc_core fuse leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd sd_mod gpio_button_hotplug ext4 jbd2 mbcache nls_iso8859_1 crc16 crypto_hash
[ 2281.180000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.18.23 #2
[ 2281.190000] Stack : 00000000 00000004 00000006 00000002 00000000 00000000 00000000 00000000
803e56e2 00000034 00000000 00000000 00000001 80396de0 80322d9c 80396a43
00000000 00000000 803e4468 80396de0 8df3e000 00000040 8ecc58fc 8005a2fc
8039af20 80029184 00000003 80328798 803269d8 80385c1c 80385c1c 80322d9c
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 2281.220000] Call Trace:
[ 2281.220000] [<800160a0>] show_stack+0x50/0x84
[ 2281.230000] [<80169694>] dump_stack+0x64/0x84
[ 2281.230000] [<8002928c>] warn_slowpath_common+0x84/0xb4
[ 2281.240000] [<80029344>] warn_slowpath_null+0x18/0x24
[ 2281.240000] [<8edf51f0>] mt76_mac_process_rx+0x19c/0x248 [mt76pci]
[ 2281.250000] [<8edf0ea0>] mt76_kick_queue+0x468/0x580 [mt76pci]
[ 2281.250000]
[ 2281.260000] ---[ end trace 62f640e14bfa8dd4 ]---
I'm porting openwrt to a MT7620A+MT7612
E board. But my board hang after load firmware, and no respond.
[ 14.300000] ASIC revision: 76120033
[ 14.330000] ROM patch already applied
[ 14.350000] Firmware Version: 0.0.00
[ 14.350000] Build: 1
[ 14.360000] Build Time: 201410061140____
"^啖EqY籯煌?褓澓.褓q)–歉壂^z@SM煨@鄤w?
Do this driver/firmware support on specific ASIC revision?
words print on my chip on board :
MEDIATEK
MT7612EN
1350-BMAL
CTPVN536
I hope this was in your schedule.
This was actually a report on the IRC in #linux-wireless. No answer from nbd was received (yet) so this is just to keep track of it. The relevant part of the message is the "second thing"
nbd: d0tslash bought two of these witi boards which you've recommended for the mt76 evaluation.
problem right now is the extreme packet loss (the AP is basically not usable for 2.4GHz/5GHz). this seems to be related to two different problems
first there are only two connectors (4 are required for the 2x2 setup on 5GHz/2.4GHz)
and do you know if there is a way to disable a chain on the device so I can avoid some of the (minor) performance problems?
The other second things seems to be related with the mac addresses in my multivap setup. I am defining multiple APs (and IBSS) devices in my default setup
each of the devices has a different mac set. for example @option macaddr 'ac:86:74:00:00:c2'@
but even only enabling 1 AP per device but with a changed mac seems to cause these packet losses
an example config (sry, didn't make it really clean) can be found under https://gist.github.com/ecsv/b6c42f07e1da6cc2ea41fe72fa5fe4d3
is this a known problem with mt76+these chips? the used LEDE version is reboot-393-gaf1e70b. If not then I can also report it at the proper place (github mt76 issue tracker?)
I haven't yet checked any over-the-air traffic and I doubt that I will be able to do so today (have to leave in some minutes)
just in case it is related to the initial mac of the device. phy0 mac is 00:00:00:00:00:20 and phy1 is 00:00:00:00:00:b8. yes, this looks bogus as hell but haven't yet checked how the dts sets the source of the mac for this device
form here http://www.itdadao.com/articles/c15a53935p0.html
LED2_KICK = 1 , LED2_POL = 0 , LED ON (LED_CTRL write 0x800000)
LED2_KICK = 1 , LED2_POL = 1, LED OFF (LED_CTRL write 0x820000)
LED2_KICK = 1,LED2_TX_BLINK_MODE , LED BLINK (LED_CTRL write 0x840000)
test command
cd /sys/kernel/debug/ieee80211/phy0/mt76
echo 0x770 > regidx
LED ON
echo 0x800000 > regval
LED OFF
echo 0x820000 > regval
LED BLINK
echo 0x840000 > regval
Hi, my board wifi chip is using mt7621,7603.
I've updated my openwrt mt76 driver to "mt76x2: dfs: remove unnecessary memset(62abac9)"
and add patch for bitfield.h so that I can build succeessfully.
I test wifi 5G channel by the order: 36,40,44,48,52,56 ...
However, when I changed to channel 52, wireless webGUI shows "Wireless is disabled or not associated".
Does the dfs malfunction?
Below is my dts configuration:
&pcie {
status = "okay";
pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>;
mediatek,2ghz = <0>;
};
};
pcie1 {
mt76@1,0 {
reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x0000>;
mediatek,5ghz = <0>;
};
};
};
and the console log just like:
oot@OpenWrt:/# [ 447.490000] br-lan: port 2(wlan0) entered disabled state
[ 447.560000] device wlan0 left promiscuous mode
[ 447.560000] br-lan: port 2(wlan0) entered disabled state
[ 448.450000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 448.460000] device wlan0 entered promiscuous mode
[ 449.090000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 449.100000] br-lan: port 2(wlan0) entered forwarding state
[ 449.110000] br-lan: port 2(wlan0) entered forwarding state
[ 451.110000] br-lan: port 2(wlan0) entered forwarding state
[ 610.610000] device wlan0 left promiscuous mode
[ 610.610000] br-lan: port 2(wlan0) entered disabled state
[ 611.860000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 611.880000] device wlan0 entered promiscuous mode
[ 611.890000] br-lan: port 2(wlan0) entered forwarding state
[ 611.900000] br-lan: port 2(wlan0) entered forwarding state
[ 611.980000] br-lan: port 2(wlan0) entered disabled state
[ 612.220000] device wlan0 left promiscuous mode
[ 612.220000] br-lan: port 2(wlan0) entered disabled state
[ 612.660000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 623.480000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 623.500000] device wlan0 entered promiscuous mode
[ 623.790000] device wlan0 left promiscuous mode
[ 623.790000] br-lan: port 2(wlan0) entered disabled state
[ 624.230000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 635.010000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 635.030000] device wlan0 entered promiscuous mode
[ 635.320000] device wlan0 left promiscuous mode
[ 635.320000] br-lan: port 2(wlan0) entered disabled state
[ 635.760000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 646.580000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 646.600000] device wlan0 entered promiscuous mode
[ 646.880000] device wlan0 left promiscuous mode
[ 646.880000] br-lan: port 2(wlan0) entered disabled state
[ 647.330000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
If you need some other information please tell my. Thanks!
all test so far indicate that power amplifier on this device doesn't function.
with stock fw power level is between 80 and 90% on ubuntu notebook but with openwrt about 50-60% if the power isn't raised in chip directly with 1413f55
the information available in MT7612E datasheet suggest to enable GPIO 13 and 14 in IO_MODE 7 for PA to work.
can someone implement this in driver code?
on r48014: no matter if I stress tx or rx or both, the "expected throughput" is always low but the
real speed much higher, e.g.:
cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/64:70:02:d3:24:0c/rc_stats
best __________rate_________ ________statistics________ ________last_______ ______sum-of________
rate [name idx airtime max_tp] [avg(tp) avg(prob) sd(prob)] [prob.|retry|suc|att] [#success | #attempts]
6 0 1648 5.3 5.3 100.0 0.0 100.0 2 0 0 20 20
9 1 1112 8.0 8.0 100.0 0.0 100.0 2 0 0 1 1
12 2 844 10.5 10.5 100.0 0.0 100.0 2 0 0 1 1
18 3 576 15.5 15.5 100.0 0.0 100.0 2 0 0 22 22
D 24 4 440 20.4 20.4 100.0 0.0 100.0 2 0 0 1 1
C 36 5 308 29.1 29.1 95.5 0.9 100.0 2 0 0 50 51
B 48 6 240 37.3 30.5 73.4 1.7 100.0 2 0 0 355 1164
A P 54 7 216 41.6 41.6 99.7 0.2 100.0 2 3 3 51469 52307
Total packet count:: ideal 2600 lookaround 137
root@xiaomi-mini2:~ iw dev wlan0 station get 64:70:02:d3:24:0c
Station 64:70:02:d3:24:0c (on wlan0)
inactive time: 240 ms
rx bytes: 111497696
rx packets: 269063
tx bytes: 25070029
tx packets: 43389
tx retries: 803
tx failed: 0
signal: 66 [66, 64] dBm
signal avg: 59 [-64, 68] dBm
tx bitrate: 54.0 MBit/s
rx bitrate: 54.0 MBit/s
expected throughput: 3.808Mbps
authorized: yes
authenticated: yes
preamble: long
WMM/WME: yes
MFP: no
TDLS peer: no
connected time: 24563 seconds
root@xiaomi-mini2:~ iw dev wlan0 info
Interface wlan0
ifindex 8
wdev 0x2
addr 64:09:80:7f:48:86
ssid ffintern.5GHz
type IBSS
wiphy 0
channel 40 (5200 MHz), width: 20 MHz (no HT), center1: 5200 MHz
txpower 17.00 dBm
i tested the 5ghz radio, other side is a WDR4300.
real speed is constant ~28 mbit TCP tx and ~15mbit TCP rx.
mt76x2_mcu.h
..........................................
.........................................
so..........................
mt76x2_init.c add
LED ON
mt76_wr(dev, MT_MCU_LED_CTRL, 0x800000);
LED OFF
mt76_wr(dev, MT_MCU_LED_CTRL, 0x820000);
LED TX BLINK
mt76_wr(dev, MT_MCU_LED_CTRL, 0x840000);
IDK if this works for this:
When using on mt7628 or mt7688 devices cal free data is applied after loading the calibration data from the factory partition.
This greatly reduced throughput and caused frequent re-associations on some boards. Commenting out the cal_free_bytes list in mt7603_apply_cal_free_data gave almost 40x improvement in throughput and eliminated the re-associations. This is obviously not the correct solution since it would break boards without calibration partitions, just evidence this is the source of the issue.
{
static const u8 cal_free_bytes[] = {
/MT_EE_TEMP_SENSOR_CAL,
MT_EE_TX_POWER_0_START_2G,
MT_EE_TX_POWER_0_START_2G + 1,
MT_EE_TX_POWER_1_START_2G,
MT_EE_TX_POWER_1_START_2G + 1,
MT_EE_CP_FT_VERSION,
MT_EE_XTAL_FREQ_OFFSET,
MT_EE_XTAL_WF_RFCAL,/
};
When in client mode (sta) and when connecting to ASUS RT-AC56U Router, and when broadcasting a 5G 802.11ac access point on 161 or 149 (VHT80) MT7612E/ MT76 fails to connect.
The only way to use 149 or 161 is to force the AC56U to transmit on VHT20/VHT40 . All other channels work great:
36 (VHT 20/40/80 OK)
40 (VHT 20/40/80 OK)
44 (VHT 20/40/80 OK)
48 (VHT 20/40/80 OK)
149 (VHT 20/40 ONLY) - 80 NOT WORKING!
153 (VHT 20/40/80 OK)
157 (VHT 20/40/80 OK)
161 (VHT 20/40 ONLY) - 80 NOT WORKING!
165 (VHT 20/40/80 OK)
[ 649.030000] wlan0: associate with 14:dd:a9:99:c0:ac (try 1/3)
[ 649.240000] wlan0: associate with 14:dd:a9:99:c0:ac (try 2/3)
[ 649.450000] wlan0: associate with 14:dd:a9:99:c0:ac (try 3/3)
[ 649.660000] wlan0: association with 14:dd:a9:99:c0:ac timed out
[ 652.050000] wlan0: authenticate with 14:dd:a9:99:c0:ac
[ 652.440000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 1/3)
[ 652.650000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 2/3)
[ 652.860000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 3/3)
[ 653.070000] wlan0: authentication with 14:dd:a9:99:c0:ac timed out
[ 655.860000] wlan0: authenticate with 14:dd:a9:99:c0:ac
[ 656.250000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 1/3)
[ 656.460000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 2/3)
[ 656.670000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 3/3)
[ 656.880000] wlan0: authentication with 14:dd:a9:99:c0:ac timed out
[ 660.170000] wlan0: authenticate with 14:dd:a9:99:c0:ac
[ 660.560000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 1/3)
[ 660.770000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 2/3)
[ 660.980000] wlan0: send auth to 14:dd:a9:99:c0:ac (try 3/3)
[ 661.190000] wlan0: authentication with 14:dd:a9:99:c0:ac timed out
similar to this test openwrt/openwrt#146
i've tried changing rates on mt7612e from 54M to 6M
all rates give the same output ~ -62dBm
xiaomi mini running openwrt 49946 with latest mt76 commit
Using the driver with the latest OpenWRT (mt76 2015-03-11) in an TWSZ AP699GE8C2 device (MT7602EN WiFi chip).
In station mode mode, doing a file transfer, I can easily reproduce this message.
Not sure how to debug it. Not sure what triggers the call trace, everything seems to continue working fine.
[ 76.080000] WARNING: CPU: 0 PID: 1093 at kernel/softirq.c:146 __local_bh_enable_ip+0x54/0xc8()
[ 76.080000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xn
[ 76.080000] CPU: 0 PID: 1093 Comm: scp Not tainted 3.18.11 #3
[ 76.080000] Stack : 00000000 00000004 00000006 800591a8 00000000 00000000 00000000 00000000
803756e2 00000031 00000000 00000000 00000000 82de2d30 802d33c8 803365a3
00000445 00000000 8037445c 82de2d30 00000640 832e5848 82fc4000 80059cf4
8033aa20 80028d14 00000003 802d8dc0 802d7000 82c519c4 82c519c4 802d33c8
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 76.080000] Call Trace:
[ 76.080000] [<80016084>] show_stack+0x48/0x70
[ 76.080000] [<8015bdc4>] dump_stack+0x64/0x84
[ 76.080000] [<80028e1c>] warn_slowpath_common+0x84/0xb4
[ 76.080000] [<80028ed4>] warn_slowpath_null+0x18/0x24
[ 76.080000] [<8002bb2c>] __local_bh_enable_ip+0x54/0xc8
[ 76.080000] [<82d01ab8>] ieee80211_tx_status_noskb+0x1c8/0x530 [mac80211]
[ 76.080000] [<82d642c4>] mt76_set_channel+0x4f0/0x5d0 [mt76pci]
[ 76.080000]
[ 76.080000] ---[ end trace f888427e6d7913e2 ]---
I've filed an issue with @kuba-moo about getting support with this device, which I think has an MT7662 chipset. I didn't know about your work until @kuba-moo told me about it.
Hello Team, I am trying to cross compile mt76 driver for ZBT device MT7621 using medeiatek SDK.
package details:
PKG_NAME:=mt76
PKG_VERSION:=2016-06-17
PKG_SOURCE_VERSION:=f06ed811cda67ab2ed9932c3e87ba03229e75f4e
But seems it is not compatible with kernal version 3.10.14.
Can some one help me out for compilation issue?
Following are the compilation error:
openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:295:14: error: comparison between 'enum ieee80211_band' and 'enum nl80211_band' [-Werror=enum-compare]
if (c->band == NL80211_BAND_2GHZ)
^
In file included from openwrt-3.10.14/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/kernel.h:3:0,
from openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:17,
from openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mmio.c:14:
openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h: In function 'mtxq_to_txq':
include/linux/kernel.h:784:27: error: dereferencing pointer to incomplete type
const typeof( ((type )0)->member ) *__mptr = (ptr);
^
openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:317:9: note: in expansion of macro 'container_of'
return container_of(ptr, struct ieee80211_txq, drv_priv);
^
In file included from include/linux/compiler-gcc.h:103:0,
from include/linux/compiler.h:54,
from openwrt-3.10.14/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/compiler.h:3,
from include/linux/linkage.h:4,
from include/linux/kernel.h:6,
from openwrt-3.10.14/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/kernel.h:3,
from openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:17,
from openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mmio.c:14:
openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:317:34: error: invalid use of undefined type 'struct ieee80211_txq'
return container_of(ptr, struct ieee80211_txq, drv_priv);
^
include/linux/compiler-gcc4.h:14:53: note: in definition of macro '__compiler_offsetof'
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
^
include/linux/kernel.h:785:29: note: in expansion of macro 'offsetof'
(type *)( (char *)__mptr - offsetof(type,member) );})
^
openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:317:9: note: in expansion of macro 'container_of'
return container_of(ptr, struct ieee80211_txq, drv_priv);
^
cc1: all warnings being treated as errors
make[4]: ** [openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mmio.o] Error 1
make[3]: *** [_module_openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17] Error 2
make[3]: Leaving directory openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.14-p112871' make[2]: *** [openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/.built] Error 2 make[2]: Leaving directory
openwrt-3.10.14/package/kernel/mt76'
make[1]: *** [package/kernel/mt76/compile] Error 2
make[1]: Leaving directory `openwrt-3.10.14'
make: *** [package/kernel/mt76/compile] Error 2
[amulpatel@Amul-PC openwrt-3.10.14]$
Thanks,
Amul Patel
Now I use mt76 to connect to a AP that is used as a relay. Find two questions:
1, the speed is very slow, I try to use Ping AP superior MT7688, and sometimes a lot of time delay:
64 bytes from 119.75.217.109: seq=149 ttl=56 time=36.037 ms
64 bytes from 119.75.217.109: seq=150 ttl=56 time=162.243 ms
64 bytes from 119.75.217.109: seq=151 ttl=56 time=141.894 ms
64 bytes from 119.75.217.109: seq=152 ttl=56 time=275.049 ms
64 bytes from 119.75.217.109: seq=153 ttl=56 time=98.003 ms
64 bytes from 119.75.217.109: seq=154 ttl=56 time=252.172 ms
64 bytes from 119.75.217.109: seq=155 ttl=56 time=682.828 ms
64 bytes from 119.75.217.109: seq=156 ttl=56 time=9.341 ms
64 bytes from 119.75.217.109: seq=157 ttl=56 time=416.193 ms
64 bytes from 119.75.217.109: seq=158 ttl=56 time=43.680 ms
64 bytes from 119.75.217.109: seq=159 ttl=56 time=294.452 ms
64 bytes from 119.75.217.109: seq=160 ttl=56 time=3129.075 ms
64 bytes from 119.75.217.109: seq=161 ttl=56 time=2140.186 ms
64 bytes from 119.75.217.109: seq=162 ttl=56 time=1325.464 ms
2, is very easy to appear oops, as follows:
64 bytes from 119.75.217.109: seq=188 ttl=56 time=228.178 ms
64 bytes from 119.75.217.109: seq=189 ttl=56 time=5.745 ms
[ 231.655920] ------------[ cut here ]------------
[ 231.660681] WARNING: CPU: 0 PID: 6 at /home/mango/lede/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/linux-ramips_mt7688/mt76-2016-05-14/mt7603_mac.c:1202 mt7603_mac_work+0x208/0x278 mt7603e
[ 231.678860] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt mt7603e mt76x2e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[ 231.749311] CPU: 0 PID: 6 Comm: kworker/u2:0 Not tainted 4.4.11 #3
[ 231.755615] Workqueue: phy0 mt7603_mac_work [mt7603e]
[ 231.761488] Stack : 87803410 8781aa98 00000088 8004a06c 87829b80 80390d43 8032dfec 00000006
80356ef8 87845d64 80390000 80048024 00000088 8004a06c 803334c4 80390000
00000003 87845d64 80390000 80038334 00000088 87845d9c 0000010e 00000000
00000001 00000000 87094fa8 87b83800 87b83700 30796870 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 231.805580] Call Trace:
[ 231.810507] [<8001451c>] show_stack+0x50/0x84
[ 231.814940] [<80024e34>] warn_slowpath_common+0xa0/0xd0
[ 231.823492] [<80024ee8>] warn_slowpath_null+0x18/0x24
[ 231.830260] [<870951b0>] mt7603_mac_work+0x208/0x278 [mt7603e]
[ 231.836953] [<80036288>] process_one_work+0x1f8/0x334
[ 231.842771] [<80037084>] worker_thread+0x2b4/0x408
[ 231.847729] [<8003b3bc>] kthread+0xdc/0xe8
[ 231.851891] [<80004478>] ret_from_kernel_thread+0x14/0x1c
[ 231.859220]
[ 231.861069] ---[ end trace bdf32e2dfbbf2228 ]---
ping: sendto: Network unreachable
root@lede:/# [ 234.503616] MCU message 40 (seq 2) timed out
[ 235.512818] MCU message 8 (seq 3) timed out
[ 236.512052] MCU message 40 (seq 4) timed out
[ 240.778875] MCU message 40 (seq 6) timed out
[ 241.778162] MCU message 8 (seq 7) timed out
[ 242.777456] MCU message 40 (seq 8) timed out
[ 243.776762] MCU message 8 (seq 9) timed out
[ 244.776081] MCU message 40 (seq 10) timed out
[ 245.775408] MCU message 8 (seq 11) timed out
[ 246.774747] MCU message 40 (seq 12) timed out
[ 247.774095] MCU message 8 (seq 13) timed out
[ 248.773456] MCU message 40 (seq 14) timed out
[ 249.772821] MCU message 8 (seq 15) timed out
I using MT7621A base board(7603E + 7612E)
It has ePA + LNA, but mt76 seems can't support it.
(MTK openwrt can't support too. But MTK SDK can support normal through)
Is it normal?
root@OpenWrt:/proc# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Bleeding Edge'
DISTRIB_REVISION='49918'
DISTRIB_CODENAME='designated_driver'
DISTRIB_TARGET='ramips/mt7621'
DISTRIB_DESCRIPTION='OpenWrt Designated Driver 49918'
DISTRIB_TAINTS='no-all'
root@OpenWrt:/proc#
No.1. mt7603_mac_work oops
Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt sg mt7603e mt76x2e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables vfat fat ntfs nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 usb_storage leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common
[ 707.740000] CPU: 2 PID: 644 Comm: kworker/u8:3 Not tainted 4.4.14 #1
[ 707.760000] Workqueue: phy1 mt7603_mac_work [mt7603e]
[ 707.770000] Stack : 8ed89900 80450000 803cc8a8 000004b5 8eda5258 00000000 8f804614 8ed89918
00000088 80063514 803cc8a8 00000002 00000284 804a365c 803e80fc 8ecb3d54
80450000 8006129c 80450000 804c0000 80452158 8045215c 803d11bc 8ecb3d54
80450000 80040ea8 8f804614 8ecb3d8c 00000385 00000000 00000000 00cb3d74
8eda5054 8f8f4d00 8f8f4a00 31796870 00000000 00000000 00000000 00000000
...
[ 707.840000] Call Trace:
[ 707.840000] [<800165b0>] show_stack+0x50/0x84
[ 707.850000] [<801aaf58>] dump_stack+0x84/0xbc
[ 707.860000] [<8002be10>] warn_slowpath_common+0xa0/0xd0
[ 707.870000] [<8002bec4>] warn_slowpath_null+0x18/0x24
[ 707.880000] [<8eda5258>] mt7603_mac_work+0x204/0x27c [mt7603e]
[ 707.890000] [<8003eb08>] process_one_work+0x214/0x358
[ 707.900000] [<8003f9f0>] worker_thread+0x2dc/0x444
[ 707.910000] [<80044130>] kthread+0xdc/0xe8
[ 707.920000] [<80005478>] ret_from_kernel_thread+0x14/0x1c
[ 707.930000]
[ 707.930000] ---[ end trace dbd185f3a07fa571 ]---
No.2 mt7603_mac_fill_rx oops
[ 759.320000] ------------[ cut here ]------------
[ 759.320000] WARNING: CPU: 0 PID: 0 at /home/ccsp/project/openwrt/openwrt/openwrt/openwrt/build_dir/target-mipsel_1004kc+dsp_musl-1.1.14/linux-ramips_mt7621/mt76-2016-06-17/mt7603_mac.c:362 mt7603_mac_fill_rx+0x124/0x3b0 mt7603e
[ 759.370000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt sg mt7603e mt76x2e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables vfat fat ntfs nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 usb_storage leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common
[ 759.510000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.4.14 #1
[ 759.510000] Stack : 00000000 00000000 804a6842 00000041 00000000 00000000 80450000 804c0000
8044e040 8044dc63 803cc8a8 00000000 00000000 804a365c 00000001 8ec1d900
00000000 80063514 80450000 804c0000 80452158 8045215c 803d11bc 8043fb94
00000003 8006129c 00000001 8ec1d900 00000001 00000000 00000000 0043fb94
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 759.510000] Call Trace:
[ 759.510000] [<800165b0>] show_stack+0x50/0x84
[ 759.510000] [<801aaf58>] dump_stack+0x84/0xbc
[ 759.510000] [<8002be10>] warn_slowpath_common+0xa0/0xd0
[ 759.510000] [<8002bec4>] warn_slowpath_null+0x18/0x24
[ 759.510000] [<8eda3b6c>] mt7603_mac_fill_rx+0x124/0x3b0 [mt7603e]
[ 759.510000] [<8eda2b0c>] mt7603_queue_rx_skb+0xb8/0x100 [mt7603e]
[ 759.510000] [<8eda9174>] mt76_dma_attach+0xcb4/0xdd4 [mt76]
[ 759.510000]
[ 759.680000] ---[ end trace dbd185f3a07fa572 ]---
there is no defined EXT_EE_SEL pin in eeprom.h so no way to choose between Efuse/EEPROM
Hi,
The driver MT7603 provokes random network crashes, on ZBT-WG3526. When using the wifi chip it randomly provokes complete network failure, including wired network. After a crash I cannot connect the the device in SSH anymore because the Network does not work anymore.
I often get warning messages like this one, during normal use:
[ 229.420000] ------------[ cut here ]------------
[ 229.420000] WARNING: CPU: 0 PID: 28 at /store/buildbot/slave/ramips.mt7621/build/build_dir/target-mipsel_1004kc+dsp_musl-1.1.15/linux-ramips_mt7621/mt76-2016-06-17/mt7603_mac.c:400 mt7603_mac_fill_rx+0x2c8/0x3b0 [mt7603e]()
[ 229.420000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE 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_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress mt7603e mt76x2e mt76 mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ifb tun leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
[ 229.420000] CPU: 0 PID: 28 Comm: kworker/u8:2 Tainted: G W 4.4.14 #1
[ 229.420000] Workqueue: phy1 mt7603_mac_work [mt7603e]
[ 229.420000] Stack : 8f918100 80470000 803f5fa8 00000190 8eddbd10 00000001 00000001 8f31d900
[ 229.420000] 00000000 80063514 803f5fa8 00000000 0000001c 804d365c 80411948 8f94baa4
[ 229.420000] 80470000 8006129c 80480000 804f0000 8047e378 8047e37c 803fa8bc 8f94baa4
[ 229.420000] 80470000 80040ea8 00000001 8f94badc 00000897 00000038 00000000 0094bac4
[ 229.420000] 8eddd054 8fb18000 8fb18900 31796870 00000000 00000000 00000000 00000000
[ 229.420000] ...
[ 229.420000] Call Trace:
[ 229.420000] [<80016698>] show_stack+0x50/0x84
[ 229.420000] [<801b14a4>] dump_stack+0x84/0xbc
[ 229.420000] [<8002be10>] warn_slowpath_common+0xa0/0xd0
[ 229.420000] [<8002bec4>] warn_slowpath_null+0x18/0x24
[ 229.420000] [<8eddbd10>] mt7603_mac_fill_rx+0x2c8/0x3b0 [mt7603e]
[ 229.420000] [<8eddab0c>] mt7603_queue_rx_skb+0xb8/0x100 [mt7603e]
[ 229.420000] [<8ed69174>] mt76_dma_attach+0xcb4/0xdd4 [mt76]
[ 229.420000]
[ 229.420000] ---[ end trace 4b46c3a11acc2699 ]---
[ 229.420000] ------------[ cut here ]------------
I can give more details, or do more tests if you wish.
Pierre.
[ 20.870000] MCU message 40 (seq 12) timed out
[ 21.870000] MCU message 8 (seq 13) timed out
[ 22.870000] MCU message 40 (seq 14) timed out
[ 22.870000] ------------[ cut here ]------------
[ 22.870000] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 22.880000] WARNING: CPU: 0 PID: 31 at /usr/src/lede/build_dir/target-mipsel_1004kc_musl-1.1.15/linux-ramips_mt7621/mt76-2016-07-08)
[ 22.900000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REn
[ 22.970000] CPU: 0 PID: 31 Comm: kworker/u8:2 Not tainted 4.4.15 #2
[ 22.970000] Workqueue: phy1 mt7603_mac_work [mt7603e]
[ 22.970000] Stack : 8fd18200 80450000 803d29b8 000004a9 8f24d1ac 00000000 8fc04614 8fd18218
00000088 80063bec 803d29b8 00000000 0000001f 804a367c 803ee17c 8fd59d54
80450000 80061938 80450000 804c0000 80458174 80458178 803d72cc 8fd59d54
80450000 800411e4 8fc04614 8fd59d8c 00000400 00000000 00000000 00d59d74
8f24d0c4 8ff40500 8ff40700 31796870 00000000 00000000 00000000 00000000
...
[ 22.970000] Call Trace:
[ 22.970000] [<8001665c>] show_stack+0x50/0x84
[ 22.970000] [<801ad680>] dump_stack+0x84/0xbc
[ 22.970000] [<8002bee8>] warn_slowpath_common+0xa0/0xd0
[ 22.970000] [<8002bfa0>] warn_slowpath_null+0x18/0x24
[ 22.970000] [<8f24d1ac>] mt7603_mac_work+0xe8/0x27c [mt7603e]
[ 22.970000] [<8003ee10>] process_one_work+0x214/0x358
[ 22.970000] [<8003fd0c>] worker_thread+0x2d8/0x440
[ 22.970000] [<800444c4>] kthread+0xd8/0xec
[ 22.970000] [<80005478>] ret_from_kernel_thread+0x14/0x1c
[ 22.970000]
[ 23.070000] ---[ end trace ce7a54bcc146d0e3 ]---
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.