Re: New iwlwifi firmware for testing in main

From: Bakul Shah <bakul_at_iitbombay.org>
Date: Mon, 08 Aug 2022 00:30:43 UTC
On Aug 7, 2022, at 5:13 PM, Bjoern A. Zeeb <bz@FreeBSD.org> wrote:
> 
> On Sun, 7 Aug 2022, Bakul Shah wrote:
> 
>> 
>> in /etc/rc.conf changed
>> 	ifconfig_wlan0="WPA DHCP"
>> to
>> 	ifconfig_wlan0="WPA inet 192.168.123.45 netmask 255.255.255.0"
>> 
>> and
>> # service netif restart wlan0
> 
> That's a slightly different story than I thought.  Good you mentioned!
> I was assuming adding the static address makes it crash at boot time
> already every time.
> 
> The fact that you are now taearing an interface down, destroying the
> clone and trying to create a new one goes by the documented fact of
> stability problems and synching state as still listed on the Wiki.
> 
> I wonder if I can ask you to do yet another test?  Does the same thing
> happenif you simply run the service command without any changes to the
> configuration?
> 
> (1) boot up
> (2) wait a bit, possibly until it associated.
> (3) please make no changes whatsoever
> (4) run `service netif restart wlan0` and see if that panics too?
> 
> The reason I am asking is that I dont' have to spend time then to
> try to make it break with a static IP address (which I failed based on
> past reports) and the problem description simply is "restarting the
> interface makes it crash".

If I use the static address, on reboot it panics as before.
If I use dhcp, on reboot it associates fine. Then if I restart,
it takes a few seconds to associate but it does come up:

# service netif restart wlan0
Aug  7 10:21:59 xxxx dhclient[836]: My address (192.168.123.45) was deleted, dhclient exiting
Stopping wpa_supplicant.
Waiting for PIDS: 622.
Aug  7 10:21:59 xxxx dhclient[836]: connection closed
Aug  7 10:21:59 xxxx dhclient[836]: exiting.
Stopping Network: wlan0.
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 12:34:56:78:9a:bc
        groups: wlan
        ssid "" channel 10 (2457 MHz 11g)
        regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7
        scanvalid 60 protmode CTS wme
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
iwlwifi0: iwl_trans_send_cmd bad state = 0
iwlwifi0: Failed to remove MAC context: -5
Destroyed wlan(4) interfaces: wlan0.
net.wlan.0.debug: 0x0 => 0x11c91000<crypto,node,assoc,auth,state,dot1xsm,wpa>
Created wlan(4) interfaces: wlan0.
Starting wpa_supplicant.
Aug  7 10:21:59 xxxx wpa_supplicant[1119]: ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
Starting Network: wlan0.
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 12:34:56:78:9a:bc
        groups: wlan
        ssid "" channel 1 (2412 MHz 11b)
        regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7
        scanvalid 60 wme bintval 0
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
10:21:59 xxxx:/usr/home/bakul 971# iwlwifi0: Not associated and the time event is over already...

10:22:03 xxxx:/usr/home/bakul 971# iwlwifi0: fail to flush all tx fifo queues Q 5
iwlwifi0: Queue 5 is active on fifo 3 and stuck for 10000 ms. SW [2, 3] HW [2, 3] FH TRB=0x080305001

10:22:05 xxxx:/usr/home/bakul 971# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 12:34:56:78:9a:bc
        groups: wlan
        ssid "" channel 4 (2427 MHz 11g)
        regdomain FCC country US authmode WPA2/802.11i privacy ON
        deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 protmode CTS wme
        roaming MANUAL
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
10:22:10 xxxx:/usr/home/bakul 972# Aug  7 10:21:59 xxxx syslogd: last message repeated 1 times
Aug  7 10:22:12 xxxx dhclient[1162]: send_packet: No buffer space available
ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 12:34:56:78:9a:bc
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        groups: wlan
        ssid yyyy channel 10 (2457 MHz 11g) bssid 34:56:78:9a:bc:de
        regdomain FCC country US authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
        protmode CTS wme roaming MANUAL
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
        status: associated
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
10:22:15 xxxx:/usr/home/bakul 972# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 12:34:56:78:9a:bc
        inet 192.168.123.45 netmask 0xffffff00 broadcast 192.168.123.255
        groups: wlan
        ssid yyyy channel 10 (2457 MHz 11g) bssid 34:56:78:9a:bc:de
        regdomain FCC country US authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
        protmode CTS wme roaming MANUAL
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
        status: associated
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
10:22:20 xxxx:/usr/home/bakul 972#  ping google.com
PING google.com (74.125.136.139): 56 data bytes
64 bytes from 74.125.136.139: icmp_seq=0 ttl=50 time=67.761 ms
^C
--- google.com ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 67.761/67.761/67.761/0.000 ms
10:23:17 xxxx:/usr/home/bakul 973#