{"action":"created","issue":{"url":"https://api.github.com/repos/openwrt/mt76/issues/26","repository_url":"https://api.github.com/repos/openwrt/mt76","labels_url":"https://api.github.com/repos/openwrt/mt76/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/openwrt/mt76/issues/26/comments","events_url":"https://api.github.com/repos/openwrt/mt76/issues/26/events","html_url":"https://github.com/openwrt/mt76/issues/26","id":143801338,"number":26,"title":"Issue with iPhone 6S and MT7603","user":{"login":"kristrev","id":2025654,"avatar_url":"https://avatars.githubusercontent.com/u/2025654?v=3","gravatar_id":"","url":"https://api.github.com/users/kristrev","html_url":"https://github.com/kristrev","followers_url":"https://api.github.com/users/kristrev/followers","following_url":"https://api.github.com/users/kristrev/following{/other_user}","gists_url":"https://api.github.com/users/kristrev/gists{/gist_id}","starred_url":"https://api.github.com/users/kristrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristrev/subscriptions","organizations_url":"https://api.github.com/users/kristrev/orgs","repos_url":"https://api.github.com/users/kristrev/repos","events_url":"https://api.github.com/users/kristrev/events{/privacy}","received_events_url":"https://api.github.com/users/kristrev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-27T11:41:40Z","updated_at":"2016-03-29T13:10:36Z","closed_at":null,"body":"Hi,\r\n\r\nI 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.\r\n\r\nWhen 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):\r\n\r\n```\r\n[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]()\r\n[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\r\n[71402.110000] CPU: 0 PID: 12201 Comm: kworker/u8:1 Tainted: G        W       4.4.6 #1\r\n[71402.110000] Workqueue: phy1 mt7603_mac_work [mt7603e]\r\n[71402.110000] Stack : 80450000 804b0000 8e775e00 803c9b08 8ee662b8 000004b2 8ee651d4 0000000a\r\n[71402.110000] \t  8f804614 8e775e18 00000088 80062fdc 00002fa9 8049365c 8f804614 8e775e18\r\n[71402.110000] \t  803e53fc 8da77d5c 803c9b08 80060d64 80450000 804b0000 803ce3b8 8da77d74\r\n[71402.110000] \t  8da77d5c 8e775e00 803c9b08 800409d8 8148dd7c 8da77d68 0000083b 00000000\r\n[71402.110000] \t  00000000 00000000 00000000 00000000 00000000 00000000 31796870 00000000\r\n[71402.110000] \t  ...\r\n[71402.110000] Call Trace:\r\n[71402.110000] [<800165d0>] show_stack+0x50/0x84\r\n[71402.110000] [<801aada0>] dump_stack+0x84/0xbc\r\n[71402.110000] [<8002baf0>] warn_slowpath_common+0xa0/0xd0\r\n[71402.110000] [<8002bba4>] warn_slowpath_null+0x18/0x24\r\n[71402.110000] [<8ee651d4>] mt7603_mac_work+0x204/0x280 [mt7603e]\r\n[71402.110000] [<8003e650>] process_one_work+0x214/0x358\r\n[71402.110000] [<8003f538>] worker_thread+0x2dc/0x444\r\n[71402.110000] [<80043c3c>] kthread+0xdc/0xe8\r\n[71402.110000] [<80005478>] ret_from_kernel_thread+0x14/0x1c\r\n[71402.110000] \r\n[71402.210000] ---[ end trace a3ba53e46e43160e ]---\r\n```\r\n\r\nThis 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.\r\n\r\nThanks in advance for any help."},"comment":{"url":"https://api.github.com/repos/openwrt/mt76/issues/comments/202884842","html_url":"https://github.com/openwrt/mt76/issues/26#issuecomment-202884842","issue_url":"https://api.github.com/repos/openwrt/mt76/issues/26","id":202884842,"user":{"login":"kristrev","id":2025654,"avatar_url":"https://avatars.githubusercontent.com/u/2025654?v=3","gravatar_id":"","url":"https://api.github.com/users/kristrev","html_url":"https://github.com/kristrev","followers_url":"https://api.github.com/users/kristrev/followers","following_url":"https://api.github.com/users/kristrev/following{/other_user}","gists_url":"https://api.github.com/users/kristrev/gists{/gist_id}","starred_url":"https://api.github.com/users/kristrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristrev/subscriptions","organizations_url":"https://api.github.com/users/kristrev/orgs","repos_url":"https://api.github.com/users/kristrev/repos","events_url":"https://api.github.com/users/kristrev/events{/privacy}","received_events_url":"https://api.github.com/users/kristrev/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T13:10:36Z","updated_at":"2016-03-29T13:10:36Z","body":"So I did some more looking and I do see the traffic on the router using tcpdump. When trying to ping the router, I see both the request and reply. Howver, the request never arrives on the phone. I do not see any kernel oops in the log, so that is probably unrelated. When looking at the packets in Wireshark, all looks fine. I.e., checksums etc are looking good.\r\n\r\nAfter a random time, however, I start receiving traffic again (on the phone). This seems to happen at the same time as my device is kicked from the AP."}}