Wlan0 no carrier after upgrade from 13.1 to 13.2

I just upgrade my laptop from 13.1 to 13.2 via freebsd-update(8) and now my wlan0 says no carrier. My ifconfig says:
Code:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether a8:6d:aa:38:2f:25
    groups: wlan
    ssid "" channel 1 (2412 MHz 11g)
    regdomain FCC country US authmode WPA1+WPA2/802.11i privacy MIXED
    deftxkey UNDEF txpower 30 bmiss 10 scanvalid 60 protmode CTS wme
    roaming MANUAL bintval 0
    parent interface: iwm0
    media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
if I issue ifconfig wlan0 up scan I get:
Code:
SSID/MESH ID                      BSSID              CHAN RATE    S:N     INT CAPS
c66cc2d6                          50:2c:c6:6c:c2:d6    1   54M  -81:-96   100 EPS  HTCAP RSN WME
Metrolink-47795                   c4:ad:34:fa:41:ae    1   54M  -69:-96   100 EPS  HTCAP RSN WPA WME WPS
TIM-29921597                      10:13:31:c8:91:3d    6   54M  -71:-96   100 EP   RSN HTCAP WPS WME
baraquack                         00:24:36:a9:f6:cd   11   54M  -54:-96   100 EPS  RSN HTCAP WME
Metrolink-47795                   c4:ad:34:fa:41:ad   36   54M  -65:-96   100 EPS  HTCAP RSN VHTCAP VHTOPMODE WPA WME WPS
FASTWEB-80D754                    a4:91:b1:80:d7:54    1   54M  -84:-96   100 EP   RSN BSSLOAD HTCAP WPS WME
WOW FI - FASTWEB                  a6:91:b1:80:d7:57    1   54M  -84:-96   100 EPS  RSN BSSLOAD HTCAP WME
c63e0707                          50:2c:c6:3e:07:07    1   54M  -87:-96   100 EPS  HTCAP RSN WME
Home&Life SuperWiFi-E262          b8:d5:26:25:e2:62   10   54M  -86:-96   100 EP   RSN BSSLOAD HTCAP WPS WME
Vodafone - Rinaldi Home           e4:8f:34:e8:6f:05   10   54M  -79:-96   100 EP   RSN BSSLOAD HTCAP WPS WME
hello_avomaki                     b4:0f:3b:ec:dd:59    1   54M  -87:-96   100 EP   BSSLOAD HTCAP MESHCONF WPA RSN WME
TIM_7eBYX2                        d4:72:26:60:e3:f9    6   54M  -87:-96   250 EPS  HTCAP VHTCAP VHTOPMODE WME ATH RSN WPS
WebCube4-C289                     60:14:66:4e:c2:89    1   54M  -87:-96   100 EP   HTCAP RSN WME
WiFi-ISPER                        20:4e:7f:8f:5e:d5    6   54M  -89:-96   100 EPS  WME RSN HTCAP
Home&Life SuperWiFi-E205          c8:54:4b:bb:e2:05    4   54M  -89:-96   100 EP   RSN HTCAP WPS WME
So it seems that the iwm0 is working...

What did I miss?
 
I think I read a similar title. I look? Beyond a possible failure, I would start looking (and sharing) in /etc/rc.conf and /etc/wpa_supplicant.conf, if you need to preload any firmware (dmesg, kldstat, /boot/loader.conf) and if the services are running wpa, dhcp...
Checking
cat /var/log/wpa_supplicant.log
 
The machine is @home, I have taken some excerpts to keep it short:

from /etc/rc.conf:
Code:
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA DHCP"
from /etc/wpa_supplicant.conf (psk censored :):
Code:
# /etc/wpa_supplicant.conf written by wifimgr(8)

    ctrl_interface=/var/run/wpa_supplicant
    eapol_version=2
    ap_scan=1

network={
    #: Microtik
    ssid="Metrolink-47795"
    priority=1
    bssid=c4:ad:34:fa:41:ad
    key_mgmt=WPA-PSK
    proto=RSN WPA
    psk="***************"
}

Kldstat:
Code:
Id Refs Address                Size Name
 1   89 0xffffffff80200000  1f3e2d0 kernel
 2    1 0xffffffff8213f000     2d10 msdosfs_iconv.ko
 3    2 0xffffffff82142000     9148 libiconv.ko
 4    1 0xffffffff82320000     3530 fdescfs.ko
 5    1 0xffffffff82324000   1858b8 i915kms.ko
 6    1 0xffffffff824aa000    739e0 drm.ko
 7    2 0xffffffff8251e000     5220 linuxkpi_gplv2.ko
 8    3 0xffffffff82524000     62d8 dmabuf.ko
 9    1 0xffffffff8252b000     3378 acpi_wmi.ko
10    1 0xffffffff8252f000     3250 ichsmb.ko
11    1 0xffffffff82533000     2180 smbus.ko
12    1 0xffffffff82536000    880c8 if_iwlwifi.ko
13    1 0xffffffff825bf000    17310 if_iwm.ko
14    1 0xffffffff825d7000     5ecc ig4.ko
15    1 0xffffffff825dd000    fd098 iwm3168fw.ko
16    1 0xffffffff826db000     3340 uhid.ko
17    1 0xffffffff826df000     4350 ums.ko
18    1 0xffffffff826e4000     3380 usbhid.ko
19    1 0xffffffff826e8000     31f8 hidbus.ko
20    1 0xffffffff826ec000     3320 wmt.ko
21    1 0xffffffff826f0000     4d00 ng_ubt.ko
22    3 0xffffffff826f5000     aac8 netgraph.ko
23    2 0xffffffff82700000     a238 ng_hci.ko
24    2 0xffffffff8270b000     25a8 ng_bluetooth.ko
 
I'll try to put that in /etc/rc.conf when back home and report the results afterwards.

Thanks for the hint.
 
It makes no difference, only ifconfig says regdomain ETSI country Italy. The behaviour of wpa_supplicant is the same, same errors, same ifconfig scan.
 
Not the same behavor: mine doesn't work even after the boot...

I'll continue testing later on and keep you posted.
 
I did surrender.
Rollbacking to 13.1 did the trick.
I see the same kernel modules loaded:
Code:
root@mordax:~ # kldstat 
Id Refs Address                Size Name
 1   91 0xffffffff80200000  1f30470 kernel
 2    1 0xffffffff82131000     2d10 msdosfs_iconv.ko
 3    2 0xffffffff82134000     9148 libiconv.ko
 4    1 0xffffffff82320000     3530 fdescfs.ko
 5    1 0xffffffff82324000   1858b8 i915kms.ko
 6    1 0xffffffff824aa000    739e0 drm.ko
 7    2 0xffffffff8251e000     5220 linuxkpi_gplv2.ko
 8    3 0xffffffff82524000     62d8 dmabuf.ko
 9    1 0xffffffff8252b000     3378 acpi_wmi.ko
10    1 0xffffffff8252f000     3250 ichsmb.ko
11    1 0xffffffff82533000     2180 smbus.ko
12    1 0xffffffff82536000    87098 if_iwlwifi.ko
13    1 0xffffffff825be000    17310 if_iwm.ko
14    1 0xffffffff825d6000     5e7c ig4.ko
15    1 0xffffffff825dc000     433c iicbus.ko
16    1 0xffffffff825e1000    fd098 iwm3168fw.ko
17    1 0xffffffff826df000     2340 uhid.ko
18    1 0xffffffff826e2000     4350 ums.ko
19    1 0xffffffff826e7000     3380 usbhid.ko
20    1 0xffffffff826eb000     31f8 hidbus.ko
21    1 0xffffffff826ef000     3320 wmt.ko
22    1 0xffffffff826f3000     4d00 ng_ubt.ko
23    3 0xffffffff826f8000     aac8 netgraph.ko
24    2 0xffffffff82703000     a238 ng_hci.ko
25    2 0xffffffff8270e000     25a8 ng_bluetooth.ko
and the wpa_supplicant is the same.
 
Hi.
Try to simplify the /etc/wpa_supplicant.conf

In may case with the same card:

Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1
network={
    ssid="HomeWifi"
    bssid=12:43:1a:7d:52:6c
    proto=RSN
    priority=10
    psk="XXXXXXXX"
    }
network={
    ssid="HomeWifi"
    bssid=12:43:1a:7d:52:6b
    proto=RSN
    priority=5
    psk="XXXXXXXX"
    }
The proto has only RSN, and remove the key_mgmt line

In my case, I prioritize the 11a over the 11g, placing a weight of 10, but I define the 2 connections in case I stray too far from the base.
The second help in my case was to define this in the /etc/rc.conf:
Code:
create_args_wlan0="country UY"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP indoor -powersave"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
rtsold_enable="YES"

The indoor value enables me to use the extreme channels in 11a in my case

Try it
 
I just recently setup 13.2-RELEASE-p2 on a Thinkpad X1 Carbon 7th gen and was able to get the release to work with the new iwlwifi(4) driver using this snippit in /etc/rc.conf:

Code:
kld_list="${kld_list} if_iwlwifi"
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
rtsold_enable="YES"
 
A followup from my last post:
The wifi configuration does stall out after while. I can get it to restart by using service netif restart, but no spontaneous reboots or other stuff like that.
I am puzzling out how to make a more permanent fix. Any helpful clues from anyone?
 
OK, I installed wifimgr which made some changes to /etc/wpa_supplicant.conf and things got more stable. It looks much better now.
 
I had a similar experience as above (14.2).
Seems that with a mobile WiFi provider and this manually entered
/etc/wpa_supplicant.conf

network={
ssid="myId"
psk="myPsk"
}

the connection got up and working initially, but when the provider had a temporary short outage, I also got the "no carrier" in ifconfig output.

Installing and running wifimgr then gave this:

# /etc/wpa_supplicant.conf written by wifimgr(8)

network={
ssid="myId"
bssid=...
key_mgmt=WPA-PSK
proto=RSN
psk="myPsk"
}

and I experienced no issues after that.
 
Yesterday I did

pkg upgrade

on 14.2 on a ThinkPad T470s.

After this upgrade, I get "no carrier" in the ifconfig output as above. wifimgr no longer seems to help getting the connection back. The wpa_supplicant.conf file is unchanged compared with previous post.

Restarting didn't help either.
I did notice some suspect messages during startup.

iwmbtfw: iwmbt_fw_read: open: /use/local/share/iwmbt-firmware/ibt-12-16.sfi: No such file or directory
iwmbtfw: main: Firmware download failed!

Same error message as mentioned in

Sounds like I should try connecting by cable and then install iwmbt-firmware
Quite confusing, as the wifi did work for some hours after upgrade+restart...

Then:
Restarted the router, wifi working
Restarted laptop, wifi working
Installed iwmbt-firmware
Restarted laptop, the error message seems to have gone.

I'll have to see if problems reappear the next few days.
 
Back
Top