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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 04 Jun 2022 15:44:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264238

--- Comment #35 from Jaskie <jiangjun12321@yahoo.com> ---
(In reply to Bjoern A. Zeeb from comment #33)

I assigned bssid=fc:b6:98:f6:12:80 in /etc/wpa_supplicant.conf again, made sure
it worked in 13.0. And below are terminal inputs (% as PS1) and outputs in
13.1:

% doas service netif restart                                                    
dhclient not running? (check /var/run/dhclient/dhclient.alc0.pid).              
Stopping wpa_supplicant.                                                        
Waiting for PIDS: 333.                                                          
Stopping Network: lo0 alc0 wlan0.                                               
lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384                  
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>         
        groups: lo                                                              
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>                               
alc0: flags=8802<BROADCAST,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                                              
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>                    
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500                
        ether 1c:4b:d6:ca:3e:ac                                                 
        groups: wlan                                                            
        ssid "" channel 13 (2472 MHz 11g ht/20)                                 
        regdomain 96 indoor ecm authmode OPEN privacy OFF txpower 20 bmiss 7    
        scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi         
        -stbctx stbcrx -ldpc -uapsd wme burst                                   
        parent interface: ath0                                                  
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)            
        status: no carrier                                                      
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>                    
Destroyed wlan(4) interfaces: wlan0.                                            
Created wlan(4) interfaces: wlan0.                                              
Starting wpa_supplicant.                                                        
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
        groups: wlan                          
        ssid "" channel 13 (2472 MHz 11g ht/20)                                 
        regdomain 96 indoor ecm authmode WPA1+WPA2/802.11i privacy MIXED        
        deftxkey UNDEF txpower 20 bmiss 7 scanvalid 60 protmode CTS             
        ampdulimit 64k ampdudensity 8 shortgi -stbctx stbcrx -ldpc -uapsd wme   
        burst roaming MANUAL bintval 0                                          
        parent interface: ath0                
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)            
        status: no carrier                    
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

% doas dhclient wlan0                                                          
                                                                               
    @23:24
wlan0: no link ........ got link
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

% ifconfig wlan0                                                               
                                                                               
    @23:27
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 1c:4b:d6:ca:3e:ac
        inet 0.0.0.0/8 broadcast 255.255.255.255
        groups: wlan
        ssid WHU-STU channel 13 (2472 MHz 11g ht/20) bssid fc:b6:98:f6:12:80
        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>

Based on the time I executed those commands, here are log file entries I saw:

In /var/log/messages:

Jun  4 23:24:12 freebsd wpa_supplicant[2383]: wlan0: Trying to associate with
fc:b6:98:f6:12:80 (SSID='WHU-STU' freq=2472 MHz)
Jun  4 23:24:12 freebsd wpa_supplicant[2383]: wlan0: Associated with
fc:b6:98:f6:12:80
Jun  4 23:24:12 freebsd kernel: wlan0: link state changed to UP
Jun  4 23:24:12 freebsd wpa_supplicant[2383]: wlan0: CTRL-EVENT-CONNECTED -
Connection to fc:b6:98:f6:12:80 completed [id=1 id_str=]
Jun  4 23:24:40 freebsd kernel: lo0: link state changed to DOWN
Jun  4 23:24:40 freebsd wpa_supplicant[2383]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=fc:b6:98:f6:12:80 reason=3 locally_generated=1
Jun  4 23:24:40 freebsd kernel: wlan0: link state changed to DOWN
Jun  4 23:24:40 freebsd wpa_supplicant[2383]: wlan0: CTRL-EVENT-DSCP-POLICY
clear_all
Jun  4 23:24:40 freebsd syslogd: last message repeated 1 times
Jun  4 23:24:40 freebsd wpa_supplicant[2383]: wlan0: CTRL-EVENT-TERMINATING 
Jun  4 23:24:41 freebsd kernel: wlan0: Ethernet address: 1c:4b:d6:ca:3e:ac
Jun  4 23:24:41 freebsd kernel: lo0: link state changed to UP
Jun  4 23:24:41 freebsd wpa_supplicant[3069]: Successfully initialized
wpa_supplicant
Jun  4 23:24:41 freebsd wpa_supplicant[3069]: ioctl[SIOCS80211, op=20, val=0,
arg_len=7]: Invalid argument
Jun  4 23:24:41 freebsd syslogd: last message repeated 1 times
Jun  4 23:24:41 freebsd wpa_supplicant[3071]: wlan0: CTRL-EVENT-SCAN-FAILED
ret=-1 retry=1
Jun  4 23:24:42 freebsd syslogd: last message repeated 1 times
Jun  4 23:24:59 freebsd wpa_supplicant[3071]: wlan0: Trying to associate with
fc:b6:98:f6:12:80 (SSID='WHU-STU' freq=2472 MHz)
Jun  4 23:24:59 freebsd wpa_supplicant[3071]: wlan0: Associated with
fc:b6:98:f6:12:80
Jun  4 23:24:59 freebsd kernel: wlan0: link state changed to UP
Jun  4 23:24:59 freebsd wpa_supplicant[3071]: wlan0: CTRL-EVENT-CONNECTED -
Connection to fc:b6:98:f6:12:80 completed [id=1 id_str=]
Jun  4 23:24:59 freebsd dhclient[3136]: send_packet: No buffer space available
Jun  4 23:25:32 freebsd syslogd: last message repeated 4 times
Jun  4 23:25:49 freebsd syslogd: last message repeated 1 times


In /var/log/daemon.log:

Jun  4 23:24:12 freebsd wpa_supplicant[2383]: wlan0: Trying to associate with
fc:b6:98:f6:12:80 (SSID='WHU-STU' freq=2472 MHz)
Jun  4 23:24:12 freebsd wpa_supplicant[2383]: wlan0: Associated with
fc:b6:98:f6:12:80
Jun  4 23:24:12 freebsd wpa_supplicant[2383]: wlan0: CTRL-EVENT-CONNECTED -
Connection to fc:b6:98:f6:12:80 completed [id=1 id_str=]
Jun  4 23:24:40 freebsd wpa_supplicant[2383]: wlan0: CTRL-EVENT-DISCONNECTED
bssid=fc:b6:98:f6:12:80 reason=3 locally_generated=1
Jun  4 23:24:40 freebsd wpa_supplicant[2383]: wlan0: CTRL-EVENT-DSCP-POLICY
clear_all
Jun  4 23:24:40 freebsd syslogd: last message repeated 1 times
Jun  4 23:24:40 freebsd wpa_supplicant[2383]: wlan0: CTRL-EVENT-TERMINATING 
Jun  4 23:24:41 freebsd wpa_supplicant[3069]: Successfully initialized
wpa_supplicant
Jun  4 23:24:41 freebsd wpa_supplicant[3069]: ioctl[SIOCS80211, op=20, val=0,
arg_len=7]: Invalid argument
Jun  4 23:24:41 freebsd syslogd: last message repeated 1 times
Jun  4 23:24:41 freebsd wpa_supplicant[3071]: wlan0: CTRL-EVENT-SCAN-FAILED
ret=-1 retry=1
Jun  4 23:24:42 freebsd syslogd: last message repeated 1 times
Jun  4 23:24:59 freebsd wpa_supplicant[3071]: wlan0: Trying to associate with
fc:b6:98:f6:12:80 (SSID='WHU-STU' freq=2472 MHz)
Jun  4 23:24:59 freebsd wpa_supplicant[3071]: wlan0: Associated with
fc:b6:98:f6:12:80
Jun  4 23:24:59 freebsd wpa_supplicant[3071]: wlan0: CTRL-EVENT-CONNECTED -
Connection to fc:b6:98:f6:12:80 completed [id=1 id_str=]
Jun  4 23:24:59 freebsd dhclient[3136]: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 4
Jun  4 23:24:59 freebsd dhclient[3136]: send_packet: No buffer space available
Jun  4 23:25:03 freebsd dhclient[3136]: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 4
Jun  4 23:25:03 freebsd dhclient[3136]: send_packet: No buffer space available
Jun  4 23:25:07 freebsd dhclient[3136]: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 8
Jun  4 23:25:07 freebsd dhclient[3136]: send_packet: No buffer space available
Jun  4 23:25:15 freebsd dhclient[3136]: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 17
Jun  4 23:25:15 freebsd dhclient[3136]: send_packet: No buffer space available
Jun  4 23:25:32 freebsd dhclient[3136]: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 17
Jun  4 23:25:32 freebsd dhclient[3136]: send_packet: No buffer space available
Jun  4 23:25:49 freebsd dhclient[3136]: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 5
Jun  4 23:25:49 freebsd dhclient[3136]: send_packet: No buffer space available
Jun  4 23:25:54 freebsd dhclient[3136]: No DHCPOFFERS received.
Jun  4 23:25:54 freebsd dhclient[3136]: No working leases in persistent
database - sleeping.

And in /var/log/dmesg.today (just last lines seemed relavent here, not sure
about time though 'cuz there was no timestamp):

wlan0: link state changed to UP
uhub1: 6 ports with 6 removable, self powered
uhub0: 6 ports with 6 removable, self powered
ugen7.2: <Sonix Technology Co., Ltd. USB 2.0 Camera> at usbus7
ath0: bb hang detected (0x4), resetting
ath0: bb hang detected (0x4), resetting
ath0: bb hang detected (0x4), resetting
ath0: bb hang detected (0x4), resetting
ath0: bb hang detected (0x4), resetting

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