[Bug 264238] WiFi stops working after upgrade from 13.0 to 13.1, AR9285 (wpa_supplicant)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 17 Jun 2022 05:52:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238

--- Comment #84 from Jaskie <jiangjun12321@gmail.com> ---
(In reply to Cy Schubert from comment #83)

I added synchronous_dhclient="YES" to /etc/rc/conf, copied wpa_supplicant v2.10
in place, network was not working. dt_out2.txt.xz is uploaded as attachment.

# service netif start
Created wlan(4) interfaces: wlan0.                                              
Starting dhclient.                                                              
alc0: no link .............. giving up                                          
/etc/rc.d/dhclient: WARNING: failed to start dhclient                           
Starting wpa_supplicant.                                                        
wpa_supplicant v2.10                                                            
Successfully initialized wpa_supplicant                                         
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'bsd'
ctrl_interface 'N/A' bridge 'N/A'                                               
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'     
Reading configuration file '/etc/wpa_supplicant.conf'                           
Line: 1 - start of a new network block                                          
ssid - hexdump_ascii(len=8):                                                    
     57 48 55 2d 57 4c 41 4e                           WHU-WLAN                 
key_mgmt: 0x4                                                                   
Line: 11 - start of a new network block                                         
ssid - hexdump_ascii(len=7):                                                    
     57 48 55 2d 53 54 55                              WHU-STU                  
key_mgmt: 0x4                                                                   
priority=100 (0x64)                                                             
Line: 19 - start of a new network block                                         
ssid - hexdump_ascii(len=8):
     57 68 61 74 54 68 65 46                           WhatTheF        
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]

# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 1c:4b:d6:ca:3e:ac
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        groups: wlan
        ssid WHU-STU channel 5 (2432 MHz 11g ht/20) bssid 70:d9:31:0e:2c:00
        regdomain 96 indoor ecm authmode WPA privacy MIXED deftxkey UNDEF
        txpower 20 bmiss 7 scanvalid 60 protmode CTS ampdulimit 64k shortgi
        -stbctx stbcrx -ldpc -uapsd wme burst roaming MANUAL bintval 300
        parent interface: ath0
        media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11ng
        status: associated
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 100
   id=1 ssid='WHU-STU'
Priority group 0
   id=0 ssid='WHU-WLAN'
   id=2 ssid='WhatTheF'
wpa_driver_bsd_capa: drivercaps=0x4f8def41,cryptocaps=0x0000001f
Add interface wlan0 to a new radio N/A
PTKSA: Initializing
wlan0: Failed to attach pkt_type filter
wlan0: Own MAC address: 1c:4b:d6:ca:3e:ac
bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=0
bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=1
bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=2
bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=3
bsd_set_key: alg=0 addr=0x0 key_idx=4 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=4                                                          
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument                    
bsd_set_key: alg=0 addr=0x0 key_idx=5 set_tx=0 seq_len=0 key_len=0              
bsd_del_key: key_idx=5                                                          
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
wpa_driver_bsd_set_countermeasures: enabled=0
wlan0: RSN: flushing PMKID list in the driver
wlan0: Setting scan request: 0.100000 sec
TDLS: TDLS operation not supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
wlan0: WPS: UUID based on MAC address: 8f102e08-5289-5b2f-a07e-bbde503569e6
ENGINE: Loading builtin engines
ENGINE: Loading builtin engines
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
MBO: Update non-preferred channels, non_pref_chan=N/A
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
Daemonize..
Starting dhclient.
wlan0: no link .... got link
Starting Network: lo0 alc0 wlan0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=c3198<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
        ether 48:5b:39:8e:3c:b0
        media: Ethernet autoselect (none)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 1c:4b:d6:ca:3e:ac
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        groups: wlan
        ssid WHU-STU channel 5 (2432 MHz 11g ht/20) bssid 70:d9:31:0e:2c:00
        regdomain 96 indoor ecm authmode WPA privacy MIXED deftxkey UNDEF
        txpower 20 bmiss 7 scanvalid 60 protmode CTS ampdulimit 64k shortgi
        -stbctx stbcrx -ldpc -uapsd wme burst roaming MANUAL bintval 300
        parent interface: ath0
        media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11ng
        status: associated
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


# less /var/log/messages
Jun 17 13:34:07 freebsd kernel: wlan0: Ethernet address: 1c:4b:d6:ca:3e:ac
Jun 17 13:34:07 freebsd kernel: lo0: link state changed to UP
Jun 17 13:34:19 freebsd adam[2850]: /etc/rc.d/dhclient: WARNING: failed to
start dhclient
Jun 17 13:34:23 freebsd kernel: wlan0: link state changed to UP
Jun 17 13:34:23 freebsd dhclient[2919]: send_packet: No buffer space available
Jun 17 13:35:03 freebsd syslogd: last message repeated 5 times
Jun 17 13:35:26 freebsd syslogd: last message repeated 2 times
Jun 17 13:35:39 freebsd dhclient[3003]: New IP Address (wlan0): 10.134.140.105
Jun 17 13:35:39 freebsd dhclient[3007]: New Subnet Mask (wlan0): 255.255.128.0
Jun 17 13:35:39 freebsd dhclient[3011]: New Broadcast Address (wlan0):
10.134.255.255
Jun 17 13:35:39 freebsd dhclient[3015]: New Routers (wlan0): 10.134.255.254
Jun 17 13:35:40 freebsd dhclient[3020]: New Routers (wlan0): 10.134.255.254

wpa_supplicant v2.9 from 13.0 worked as expected.

-- 
You are receiving this mail because:
You are on the CC list for the bug.