{"action":"closed","issue":{"url":"https://api.github.com/repos/openwrt/mt76/issues/186","repository_url":"https://api.github.com/repos/openwrt/mt76","labels_url":"https://api.github.com/repos/openwrt/mt76/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/openwrt/mt76/issues/186/comments","events_url":"https://api.github.com/repos/openwrt/mt76/issues/186/events","html_url":"https://github.com/openwrt/mt76/issues/186","id":335648389,"node_id":"MDU6SXNzdWUzMzU2NDgzODk=","number":186,"title":"mt7603 automatic channel selection fails","user":{"login":"amaumene","id":2414933,"node_id":"MDQ6VXNlcjI0MTQ5MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/2414933?v=4","gravatar_id":"","url":"https://api.github.com/users/amaumene","html_url":"https://github.com/amaumene","followers_url":"https://api.github.com/users/amaumene/followers","following_url":"https://api.github.com/users/amaumene/following{/other_user}","gists_url":"https://api.github.com/users/amaumene/gists{/gist_id}","starred_url":"https://api.github.com/users/amaumene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaumene/subscriptions","organizations_url":"https://api.github.com/users/amaumene/orgs","repos_url":"https://api.github.com/users/amaumene/repos","events_url":"https://api.github.com/users/amaumene/events{/privacy}","received_events_url":"https://api.github.com/users/amaumene/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-26T03:48:34Z","updated_at":"2018-08-24T19:35:26Z","closed_at":"2018-08-24T19:35:26Z","author_association":"NONE","body":"Hi,\r\n\r\nOn a Netgear R6220, when I set channel to auto on wlan0 (mt7603), the wifi doesn't come up and logread shows this:\r\n```\r\nTue Jun 26 11:38:17 2018 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25594.900674] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25594.928368] br-lan: port 2(wlan0) entered blocking state\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25594.939162] br-lan: port 2(wlan0) entered disabled state\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25594.950398] device wlan0 entered promiscuous mode\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25594.972657] Data buffer not 16 bytes aligned: 87168178\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25594.994549] Data buffer not 16 bytes aligned: 8779c2c8\r\nTue Jun 26 11:38:17 2018 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE\r\nTue Jun 26 11:38:17 2018 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit\r\nTue Jun 26 11:38:17 2018 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->ACS\r\nTue Jun 26 11:38:17 2018 daemon.notice hostapd: wlan0: ACS-STARTED\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.049443] Data buffer not 16 bytes aligned: 864e0038\r\nTue Jun 26 11:38:17 2018 daemon.err hostapd: Configuration file: /var/run/hostapd-phy1.conf\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.076880] Data buffer not 16 bytes aligned: 8716c0e8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.089763] Data buffer not 16 bytes aligned: 8716c0b8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.105559] Data buffer not 16 bytes aligned: 849c4288\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.126106] Data buffer not 16 bytes aligned: 849c43b8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.141423] Data buffer not 16 bytes aligned: 849c46d8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.155807] Data buffer not 16 bytes aligned: 849c4118\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.168546] Data buffer not 16 bytes aligned: 849c41b8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.181381] Data buffer not 16 bytes aligned: 849c4188\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.198699] Data buffer not 16 bytes aligned: 849c45e8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.211359] Data buffer not 16 bytes aligned: 849c45b8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.227260] Data buffer not 16 bytes aligned: 849c4718\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.241183] Data buffer not 16 bytes aligned: 849c4018\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.254560] Data buffer not 16 bytes aligned: 849c40c8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.267502] Data buffer not 16 bytes aligned: 849c40d8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.285476] Data buffer not 16 bytes aligned: 849c4228\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.307829] Data buffer not 16 bytes aligned: 849c4098\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.320748] Data buffer not 16 bytes aligned: 849c42b8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.335729] Data buffer not 16 bytes aligned: 849c43d8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.348859] Data buffer not 16 bytes aligned: 849c43a8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.370535] Data buffer not 16 bytes aligned: 849c42c8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.397459] Data buffer not 16 bytes aligned: 849c4178\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.409973] Data buffer not 16 bytes aligned: 849c42f8\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.424424] Data buffer not 16 bytes aligned: 849c4158\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.440236] Data buffer not 16 bytes aligned: 849c4458\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.453007] Data buffer not 16 bytes aligned: 849c4428\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.467093] Data buffer not 16 bytes aligned: 849c4258\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.479800] Data buffer not 16 bytes aligned: 849c4448\r\nTue Jun 26 11:38:17 2018 kern.info kernel: [25595.491726] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.510998] Data buffer not 16 bytes aligned: 849c4558\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.522771] br-lan: port 3(wlan1) entered blocking state\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.533475] br-lan: port 3(wlan1) entered disabled state\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.544642] device wlan1 entered promiscuous mode\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.554288] br-lan: port 3(wlan1) entered blocking state\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.564928] br-lan: port 3(wlan1) entered forwarding state\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.588951] Data buffer not 16 bytes aligned: 8779c698\r\nTue Jun 26 11:38:18 2018 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE\r\nTue Jun 26 11:38:18 2018 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit\r\nTue Jun 26 11:38:18 2018 daemon.notice hostapd: wlan1: interface state COUNTRY_UPDATE->ACS\r\nTue Jun 26 11:38:18 2018 daemon.notice hostapd: wlan1: ACS-STARTED\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.614014] Data buffer not 16 bytes aligned: 8779c468\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.626779] Data buffer not 16 bytes aligned: 8779c638\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.640872] Data buffer not 16 bytes aligned: 8779c0e8\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.653770] Data buffer not 16 bytes aligned: 8779c288\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.666437] Data buffer not 16 bytes aligned: 8779c258\r\nTue Jun 26 11:38:18 2018 daemon.warn hostapd: Failed to check if DFS is required; ret=-1\r\nTue Jun 26 11:38:18 2018 daemon.warn hostapd: Failed to check if DFS is required; ret=-1\r\nTue Jun 26 11:38:18 2018 daemon.notice hostapd: handle_probe_req: send failed\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.680584] Data buffer not 16 bytes aligned: 8779c228\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.693664] Data buffer not 16 bytes aligned: 8779c1f8\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.717455] Data buffer not 16 bytes aligned: 8779c008\r\nTue Jun 26 11:38:18 2018 daemon.warn hostapd: Failed to check if DFS is required; ret=-1\r\nTue Jun 26 11:38:18 2018 daemon.warn hostapd: Failed to check if DFS is required; ret=-1\r\nTue Jun 26 11:38:18 2018 daemon.notice hostapd: handle_probe_req: send failed\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.742167] Data buffer not 16 bytes aligned: 8779c3c8\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.758497] Data buffer not 16 bytes aligned: 8779c538\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.775324] Data buffer not 16 bytes aligned: 8779c068\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.790380] Data buffer not 16 bytes aligned: 8779c328\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.820291] Data buffer not 16 bytes aligned: 8779c458\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.833140] Data buffer not 16 bytes aligned: 8779c428\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.855076] Data buffer not 16 bytes aligned: 8779c148\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.875201] Data buffer not 16 bytes aligned: 8779c2c8\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.887790] Data buffer not 16 bytes aligned: 8779c2e8\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.900323] Data buffer not 16 bytes aligned: 8779c3a8\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.917892] Data buffer not 16 bytes aligned: 8779c668\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.934675] Data buffer not 16 bytes aligned: 8779c7f8\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.947194] Data buffer not 16 bytes aligned: 8779c7c8\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.965265] Data buffer not 16 bytes aligned: 8779c058\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.984148] Data buffer not 16 bytes aligned: 8779c198\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25595.995575] br-lan: port 3(wlan1) entered disabled state\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25596.002728] Data buffer not 16 bytes aligned: 8779c158\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25596.010988] Data buffer not 16 bytes aligned: 8779c068\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25596.016450] Data buffer not 16 bytes aligned: 8779c268\r\nTue Jun 26 11:38:18 2018 kern.info kernel: [25596.027589] Data buffer not 16 bytes aligned: 8779c078\r\nTue Jun 26 11:38:18 2018 daemon.warn hostapd: Failed to check if DFS is required; ret=-1\r\nTue Jun 26 11:38:18 2018 daemon.warn hostapd: Failed to check if DFS is required; ret=-1\r\nTue Jun 26 11:38:18 2018 daemon.notice hostapd: handle_probe_req: send failed\r\nTue Jun 26 11:38:25 2018 daemon.err hostapd: ACS: Unable to collect survey data\r\nTue Jun 26 11:38:25 2018 daemon.err hostapd: ACS: All study options have failed\r\nTue Jun 26 11:38:25 2018 daemon.err hostapd: Interface initialization failed\r\nTue Jun 26 11:38:25 2018 daemon.notice hostapd: wlan0: interface state ACS->DISABLED\r\nTue Jun 26 11:38:25 2018 daemon.notice hostapd: wlan0: AP-DISABLED\r\nTue Jun 26 11:38:25 2018 daemon.err hostapd: ACS: Possibly channel configuration is invalid, please report this along with your config file.\r\nTue Jun 26 11:38:25 2018 daemon.err hostapd: ACS: Failed to start\r\nTue Jun 26 11:38:25 2018 daemon.notice hostapd: wlan0: AP-DISABLED\r\nTue Jun 26 11:38:25 2018 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started\r\nTue Jun 26 11:38:25 2018 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0\r\nTue Jun 26 11:38:25 2018 kern.info kernel: [25603.043637] device wlan0 left promiscuous mode\r\nTue Jun 26 11:38:25 2018 kern.info kernel: [25603.052693] br-lan: port 2(wlan0) entered disabled state\r\nTue Jun 26 11:38:25 2018 daemon.notice hostapd: wlan0: interface state DISABLED->DISABLED\r\nTue Jun 26 11:38:25 2018 daemon.notice hostapd: wlan0: interface state DISABLED->DISABLED\r\nTue Jun 26 11:38:25 2018 daemon.notice hostapd: wlan0: AP-DISABLED\r\nTue Jun 26 11:38:25 2018 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING\r\nTue Jun 26 11:38:25 2018 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started\r\nTue Jun 26 11:38:25 2018 daemon.notice netifd: radio0 (4461): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 3837 path ()\r\nTue Jun 26 11:38:25 2018 kern.info kernel: [25603.174291] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready\r\n```\r\n\r\nMy config is very close to the default one:\r\n```\r\nconfig wifi-device 'radio0'\r\n\toption type 'mac80211'\r\n\toption channel 'auto'\r\n\toption hwmode '11g'\r\n\toption path 'pci0000:00/0000:00:01.0/0000:02:00.0'\r\n\toption htmode 'HT20'\r\n\toption country 'SG'\r\n\toption disabled '0'\r\n```\r\n\r\niwinfo shows this:\r\n```\r\nwlan0     ESSID: \"my_ssid\"\r\n          Access Point: 8C:3B:AD:DE:9A:20\r\n          Mode: Master  Channel: unknown (2.407 GHz)\r\n          Tx-Power: 0 dBm  Link Quality: unknown/70\r\n          Signal: unknown  Noise: unknown\r\n          Bit Rate: unknown\r\n          Encryption: WPA2 PSK (CCMP)\r\n          Type: nl80211  HW Mode(s): 802.11bgn\r\n          Hardware: 14C3:7603 14C3:7603 [Generic MAC80211]\r\n          TX power offset: unknown\r\n          Frequency offset: unknown\r\n          Supports VAPs: yes  PHY name: phy0\r\n```\r\n\r\nLet me know if you want more details. This is with OpenWrt SNAPSHOT, r7314-c4aadbdaf6."}}
{"actor":{"display_login":"nbd168"}}