openwrt / openwrt/mt76

wifi cannot re-connected to upstream wifi

Open
#482 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
888
Forks
436
PR merge metrics
No merged PRs in 30d

Description

BUG: https://bugs.openwrt.org/index.php?do=details&task_id=3512

first I change password in upstream wifi (ssid=X-WRT_9B84)
and my mt76x8 device lost wifi connection
then I change the password back again
but the mt76x8 cannot re-connect to upstream wifi

the log:

Fri Dec 11 19:22:40 2020 kern.info kernel: [92023.412533] wlan0: deauthenticated from xx:xx:xx:e1:9b:86 (Reason: 3=DEAUTH_LEAVING)
Fri Dec 11 19:22:40 2020 daemon.notice netifd: Network device 'wlan0' link is down
Fri Dec 11 19:22:40 2020 daemon.notice netifd: Interface 'wwan' has link connectivity loss
Fri Dec 11 19:22:40 2020 daemon.notice wpa_supplicant[10521]: wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:e1:9b:86 reason=3
Fri Dec 11 19:22:40 2020 daemon.notice netifd: wwan (11438): udhcpc: received SIGTERM
Fri Dec 11 19:22:40 2020 daemon.notice netifd: wwan (11438): udhcpc: unicasting a release of 192.168.15.145 to 192.168.15.1
Fri Dec 11 19:22:40 2020 daemon.notice netifd: wwan (11438): udhcpc: sending release
Fri Dec 11 19:22:40 2020 daemon.notice netifd: wwan (11438): udhcpc: entering released state
Fri Dec 11 19:22:40 2020 daemon.notice netifd: wwan (11438): Command failed: Permission denied
Fri Dec 11 19:22:40 2020 daemon.notice netifd: Interface 'wwan' is now down
Fri Dec 11 19:22:40 2020 daemon.debug dnsmasq[11344]: stopped listening on wlan0(#20): 192.168.15.145 port 53
Fri Dec 11 19:22:40 2020 daemon.notice netifd: Interface 'wwan' is disabled
Fri Dec 11 19:22:40 2020 daemon.notice netifd: Interface 'wwan' is enabled
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: reading /tmp/resolv.conf.d/resolv.conf.auto
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using only locally-known addresses for domain test
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using only locally-known addresses for domain onion
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using only locally-known addresses for domain localhost
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using only locally-known addresses for domain local
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using only locally-known addresses for domain invalid
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using only locally-known addresses for domain bind
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using only locally-known addresses for domain lan
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using nameserver fe80::2efd:a1ff:fe03:9d91%eth0.1#53
Fri Dec 11 19:22:40 2020 daemon.info dnsmasq[11344]: using nameserver 192.168.16.1#53
Fri Dec 11 19:22:41 2020 daemon.notice netifd: Network device 'wlan0-1' link is down
Fri Dec 11 19:22:41 2020 daemon.notice netifd: Interface 'lanap' has link connectivity loss
Fri Dec 11 19:22:46 2020 daemon.notice netifd: Network device 'wlan0-1' link is up
Fri Dec 11 19:22:46 2020 daemon.notice netifd: Interface 'lanap' has link connectivity
Fri Dec 11 19:24:25 2020 daemon.notice wpa_supplicant[10521]: wlan0: SME: Trying to authenticate with xx:xx:xx:e1:9b:86 (SSID='X-WRT_9B84' freq=2462 MHz)
Fri Dec 11 19:24:25 2020 daemon.notice wpa_supplicant[10521]: wlan0: SME: Authentication request to the driver failed
Fri Dec 11 19:24:25 2020 kern.info kernel: [92127.874903] wlan0: authenticate with xx:xx:xx:e1:9b:86
Fri Dec 11 19:24:25 2020 daemon.notice netifd: Network device 'wlan0-1' link is down
Fri Dec 11 19:24:25 2020 daemon.notice netifd: Interface 'lanap' has link connectivity loss
Fri Dec 11 19:24:26 2020 daemon.notice wpa_supplicant[10521]: wlan0: SME: Trying to authenticate with xx:xx:xx:e1:9b:86 (SSID='X-WRT_9B84' freq=2462 MHz)
Fri Dec 11 19:24:26 2020 kern.info kernel: [92129.339747] wlan0: authenticate with xx:xx:xx:e1:9b:86
Fri Dec 11 19:24:26 2020 kern.info kernel: [92129.369148] wlan0: send auth to xx:xx:xx:e1:9b:86 (try 1/3)
Fri Dec 11 19:24:26 2020 daemon.notice wpa_supplicant[10521]: wlan0: Trying to associate with xx:xx:xx:e1:9b:86 (SSID='X-WRT_9B84' freq=2462 MHz)
Fri Dec 11 19:24:26 2020 kern.info kernel: [92129.387006] wlan0: authenticated
Fri Dec 11 19:24:26 2020 kern.info kernel: [92129.397573] wlan0: associate with xx:xx:xx:e1:9b:86 (try 1/3)
Fri Dec 11 19:24:26 2020 kern.info kernel: [92129.417213] wlan0: RX AssocResp from xx:xx:xx:e1:9b:86 (capab=0x431 status=0 aid=1)
Fri Dec 11 19:24:26 2020 kern.info kernel: [92129.432615] wlan0: associated
Fri Dec 11 19:24:26 2020 daemon.notice netifd: Network device 'wlan0' link is up
Fri Dec 11 19:24:26 2020 daemon.notice netifd: Interface 'wwan' has link connectivity
Fri Dec 11 19:24:26 2020 daemon.notice netifd: Interface 'wwan' is setting up now
Fri Dec 11 19:24:26 2020 daemon.notice wpa_supplicant[10521]: wlan0: Associated with xx:xx:xx:e1:9b:86
Fri Dec 11 19:24:26 2020 daemon.notice wpa_supplicant[10521]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Fri Dec 11 19:24:26 2020 daemon.notice netifd: wwan (11770): udhcpc: started, v1.31.1
Fri Dec 11 19:24:26 2020 daemon.notice netifd: wwan (11770): udhcpc: sending discover
Fri Dec 11 19:24:29 2020 daemon.notice netifd: wwan (11770): udhcpc: sending discover
Fri Dec 11 19:24:30 2020 daemon.notice netifd: Network device 'wlan0' link is down
Fri Dec 11 19:24:30 2020 daemon.notice netifd: Interface 'wwan' has link connectivity loss
Fri Dec 11 19:24:30 2020 kern.info kernel: [92133.436716] wlan0: deauthenticated from xx:xx:xx:e1:9b:86 (Reason: 15=4WAY_HANDSHAKE_TIMEOUT)
Fri Dec 11 19:24:30 2020 daemon.notice wpa_supplicant[10521]: wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:e1:9b:86 reason=15
Fri Dec 11 19:24:30 2020 daemon.notice wpa_supplicant[10521]: wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
Fri Dec 11 19:24:30 2020 daemon.notice wpa_supplicant[10521]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="X-WRT_9B84" auth_failures=1 duration=10 reason=WRONG_KEY
Fri Dec 11 19:24:30 2020 daemon.notice netifd: wwan (11770): udhcpc: received SIGTERM
Fri Dec 11 19:24:30 2020 daemon.notice netifd: wwan (11770): udhcpc: entering released state
Fri Dec 11 19:24:30 2020 daemon.notice netifd: wwan (11770): Command failed: Permission denied
Fri Dec 11 19:24:30 2020 daemon.notice netifd: Interface 'wwan' is now down
Fri Dec 11 19:24:30 2020 daemon.notice netifd: Interface 'wwan' is disabled
Fri Dec 11 19:24:30 2020 daemon.notice netifd: Interface 'wwan' is enabled
Fri Dec 11 19:24:34 2020 daemon.notice netifd: Network device 'wlan0-1' link is up
Fri Dec 11 19:24:34 2020 daemon.notice netifd: Interface 'lanap' has link connectivity
Fri Dec 11 19:24:41 2020 daemon.notice wpa_supplicant[10521]: wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="X-WRT_9B84"
Fri Dec 11 19:24:41 2020 daemon.notice wpa_supplicant[10521]: wlan0: SME: Trying to authenticate with xx:xx:xx:e1:9b:86 (SSID='X-WRT_9B84' freq=2462 MHz)
Fri Dec 11 19:24:41 2020 daemon.notice wpa_supplicant[10521]: wlan0: SME: Authentication request to the driver failed
Fri Dec 11 19:24:41 2020 kern.info kernel: [92144.477289] wlan0: authenticate with xx:xx:xx:e1:9b:86
Fri Dec 11 19:24:41 2020 daemon.notice wpa_supplicant[10521]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="X-WRT_9B84" auth_failures=2 duration=20 reason=CONN_FAILED
Fri Dec 11 19:24:41 2020 daemon.notice netifd: Network device 'wlan0-1' link is down
Fri Dec 11 19:24:41 2020 daemon.notice netifd: Interface 'lanap' has link connectivity loss
Fri Dec 11 19:24:46 2020 daemon.notice netifd: Network device 'wlan0-1' link is up
Fri Dec 11 19:24:46 2020 daemon.notice netifd: Interface 'lanap' has link connectivity
Fri Dec 11 19:25:02 2020 daemon.notice wpa_supplicant[10521]: wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="X-WRT_9B84"
Fri Dec 11 19:25:02 2020 daemon.notice wpa_supplicant[10521]: wlan0: SME: Trying to authenticate with xx:xx:xx:e1:9b:86 (SSID='X-WRT_9B84' freq=2462 MHz)
Fri Dec 11 19:25:02 2020 daemon.notice wpa_supplicant[10521]: wlan0: SME: Authentication request to the driver failed
Fri Dec 11 19:25:02 2020 daemon.notice wpa_supplicant[10521]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="X-WRT_9B84" auth_failures=3 duration=30 reason=CONN_FAILED
Fri Dec 11 19:25:02 2020 kern.info kernel: [92165.400213] wlan0: authenticate with xx:xx:xx:e1:9b:86
Fri Dec 11 19:25:02 2020 daemon.notice netifd: Network device 'wlan0-1' link is down
Fri Dec 11 19:25:02 2020 daemon.notice netifd: Interface 'lanap' has link connectivity loss
Fri Dec 11 19:25:04 2020 daemon.notice netifd: Network device 'wlan0-1' link is up
Fri Dec 11 19:25:04 2020 daemon.notice netifd: Interface 'lanap' has link connectivity

if I do /etc/init.d/network restart
it re-connect ok

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the password-change and restoration sequence on the mt76x8 device, using the wpa_supplicant and netifd log events in the report as the starting evidence. Compare this with the recovery from /etc/init.d/network restart; done means the upstream Wi-Fi reconnects automatically after the password is restored, without restarting the network service.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.