Bug 288009 - WiFi Not Working Upgrading to FreeBSD 14.3 on ThinkPad W520
Summary: WiFi Not Working Upgrading to FreeBSD 14.3 on ThinkPad W520
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 14.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Bjoern A. Zeeb
URL:
Keywords: regression
Depends on:
Blocks: PRs, net80211
  Show dependency tree / graph
 
Reported: 2025-07-04 20:03 UTC by Osama Albahrani
Modified: 2025-08-10 20:20 UTC (History)
3 users (show)

See Also:
bz: needs_errata? (secteam)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Osama Albahrani 2025-07-04 20:03:57 UTC
Hello, on June 14 I upgraded to FreeBSD 14.3 and WiFi stopped working. I know it is due to the upgrade because reverting back to 14.2 WiFi does work. I have a Lenovo ThinkPad W520.

When running `dhclient wlan0` as root I get `wlan0: no link .............. giving up`.

And in Xfce, hovering over the internet icon (Network Manager) I get "Network card is not enabled" and sometimes "WiFi wlan0 not connected".

What can I try to fix this issue? I can connect to Ethernet just fine.

I did try running `fwget` as was suggested in the Discord:

```console
# fwget
No package found for device 0x0126
No firmware packages to install.
```

WiFi card: Centiro Advanced-N 6205 [Taylor Peak]

Also reported in:
 
https://forums.freebsd.org/threads/wifi-not-working-upgrading-to-freebsd-14-3-on-thinkpad-w520.98386

https://www.reddit.com/r/freebsd/comments/1lpwc76/wifi_not_working_upgrading_to_freebsd_143_on
Comment 1 Adrian Chadd freebsd_committer freebsd_triage 2025-07-04 20:05:58 UTC
hi,

are you trying to connect to a TKIP network? What's "ifconfig wlan0 list scan" show for the SSID you're trying to connect to?

There's a known regression with 14.3 and TKIP encryption on some NICs. It's been fixed in -HEAD and stable/14, but it wasn't considered important enough to delay releasing 14.3.
Comment 2 Osama Albahrani 2025-07-04 21:14:14 UTC
> are you trying to connect to a TKIP network?

I don't know what TKIP is. So I can't tell.

> What's "ifconfig wlan0 list scan" show for the SSID you're trying to connect to?

The last column of `ifconfig wlan0 list scan` shows the following for the networks that I'd like to connect to one of them:

```
HTCAP RSN BSSLOAD WME WPS
RSN WPA WME BSSLOAD HTCAP WPS
APCHANREP APCHANREP WPA RSN WPS HTCAP WME
HTCAP RSN BSSLOAD WME WPS
BSSLOAD HTCAP VHTAP VHTOPMODE VHTPWRENV WME ATH WPA RSN WPS
WPA RSN WPS HTCAP VHTCAP VHTOPMODE WME VHTPWRENV
```

I hope this is the output you were referring to.

(I don't think it's an issue with a specific wifi network because I can't get to the stage of selecting a network in Network Manager. But happy to try other methods of connecting to WiFi)
Comment 3 Adrian Chadd freebsd_committer freebsd_triage 2025-07-04 22:39:58 UTC
ah crap, sorry.

try ifconfig -v wlan0 list scan
Comment 4 Osama Albahrani 2025-07-04 22:50:45 UTC
I do see TKIP in the output of that command. Though I’m not sure how that relates to the network card not being enabled (as reported by Network Manager).
Comment 5 Adrian Chadd freebsd_committer freebsd_triage 2025-07-05 22:07:27 UTC
Please try applying the diff here to your kernel sources and rebuild. Let me know if it works, thanks!


https://cgit.freebsd.org/src/commit/?id=950343a170f06a0651b725058e0669b8d03b9d24
Comment 6 Osama Albahrani 2025-07-05 22:12:31 UTC
How can I do that? I’m unfamiliar with obtaining and building kernel sources.
Comment 7 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-07 04:17:55 UTC
There is documentation for this at:
https://docs.freebsd.org/en/books/handbook/kernelconfig/
though it probably does not document all the steps (checking out the source from git and the right branch).  But there's also src distributed with the release (but no errata and security updates).

You'll find that information here:
https://docs.freebsd.org/en/books/handbook/mirrors/#git

Where it says "git checkout stable/13" you want "git checkout releng/14.3".



Alternatively, do you have any chance on your access point or router to switch from TKIP to CCMP?  TKIP has been deprecated for 13(?) years now and is a security risk.
What's the vendor and model?  Maybe we can help with that?
Comment 8 Osama Albahrani 2025-07-07 05:00:33 UTC
I’m not entirely sure my router actually uses TKIP because my iPhone does not warn that the network is insecure and TKIP is mentioned in Apple’s website for network security.

As for building a custom kernel, thank you for providing the documentation. I will get to that in a bit.
Comment 9 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-07 05:32:58 UTC
(In reply to Osama Albahrani from comment #8)

If the router does not use TKIP then the rebuilding of the kernel will not help much.

Can you share the full output of:
ifconfig -v wlan0
ifconfig -v wlan0 list scan
grep wpa_supplicant /var/log/messages | tail -100

Maybe that will enlighten us what's really going wrong.

If you don't what to share it publicly, feel free to email it to bz@ .
Comment 10 Osama Albahrani 2025-07-07 05:49:03 UTC
(In reply to Bjoern A. Zeeb from comment #9)

Emailed.
Comment 11 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-07 06:01:14 UTC
Ok,

wpa_supplicant says [PTK=CCMP GTK=TKIP]

And you'll see:

wlan0: Michael MIC failure detected
wlan0: TKIP countermeasures started

I sadly do not see your SSIDs in the scan output but could you try the following in /etc/wpa_supplicant.conf (make a backup of the file first):

Add if not there yet:
        proto=WPA2
        pairwise=CCMP
        group=CCMP

and see if it works.  If it does not, it'll sadly be recompiling the kernel for now and I should probably request an Errata Notice for 14.3.
Comment 12 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-07 06:03:32 UTC
I should be clear; it needs to be added to/replaced in the network statement(s) for your SSID(s), not globally.
Comment 13 Osama Albahrani 2025-07-07 06:17:35 UTC
What do I do after adding these lines inside the network{}=‘s for the networks in the config?

I just rebooted and Network Manager is still not letting me get to the stage of picking networks. It says “Network card is not enabled” when I hover over the icon in Cinnamon (the same error message in Xfce).
Comment 14 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-07 06:28:22 UTC
(In reply to Osama Albahrani from comment #13)

Does ifconfig wlan0 show you being associated?
Does /var/log/messages show anything different now?

I fear we should try to sort that bit before going after network manager.



Just for the records, as I need to get better with instructions,
service wpa_supplicant restart wlan0
would have done the right thing after editing (there are ways to reload the config from wpa_cli as well but it's more complicated).
Comment 15 Osama Albahrani 2025-07-07 06:41:31 UTC
(In reply to Bjoern A. Zeeb from comment #14)

> Does ifconfig wlan0 show you being associated?

Not sure what "being associated" means. Here is the output:

```console
$ ifconfig wlan0
wlan0: flags=8c43<UP,BROADCAST,RUNNING,DRV_OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=0
	ether 08:11:96:a9:71:b0
	inet6 fe80::a11:96ff:fea9:71b0%wlan0 prefixlen 64 scopeid 0x3
	groups: wlan
	ssid "" channel 44 (5220 MHz 11a)
	regdomain FCC country US authmode OPEN privacy OFF txpower 17
	bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60 wme bintval 0
	parent interface: iwn0
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
	status: no carrier
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
```

> Does /var/log/messages show anything different now?

It doesn't seem to show anything interesting. Though I'm not entirely sure what to look for.

> I fear we should try to sort that bit before going after network manager.

I agree. And I wasn't trying to blame Network Manager per se, just clarifying that I can't get to the stage of attempting to connect to a network like I normally do from the first place. I don't know any other method of connecting to wifi other than the Network Manager UI, but happy to try another method.

I have finished cloning the kernel source code, applied the patch, and it is now building. I did not modify the GENERIC file, just copied it to be MYKERNEL and ran `make buildkernel KERNCONF=MYKERNEL` as in the documentation.
Comment 16 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-07 06:47:29 UTC
Can you check if wpa_supplicant is running?

ps ax | grep wpa

The ifconfig output now states "authmode OPEN privacy OFF" and not "authmode WPA1+WPA2/802.11i" which indicates wpa_supplicant is not running but that also means yo should have an error message in /var/log/messages;  likely the edit of its config  introduced an error.

If you are going to try the new kernel, please restore the original wpa_supplicant.conf file.
Comment 17 Osama Albahrani 2025-07-07 07:16:46 UTC
You're right, I tried to `service wpa_supplicant restart wlan0` and it told me about the fields I added globally to the config file and forgot to delete them.

However I restarted the service and rebooted, I still see the same values in the ifconfig output.


```console
$ ps ax | grep wpa
 381  -  Ss   0:00.01 /usr/sbin/wpa_supplicant -s -B -i wlan0 -c /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_supplicant/wlan0.pid
1757  0  S+   0:00.00 grep wpa
$ ifconfig wlan0
wlan0: flags=8c43<UP,BROADCAST,RUNNING,DRV_OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=0
	ether 08:11:96:a9:71:b0
	inet6 fe80::a11:96ff:fea9:71b0%wlan0 prefixlen 64 scopeid 0x3
	groups: wlan
	ssid "" channel 165 (5825 MHz 11a)
	regdomain FCC country US authmode WPA1+WPA2/802.11i privacy MIXED
	deftxkey UNDEF txpower 23 bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60
	wme roaming MANUAL bintval 0
	parent interface: iwn0
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
	status: no carrier
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
```
Comment 18 Osama Albahrani 2025-07-07 07:21:10 UTC
Actually nvm, I no longer see “ authmode OPEN privacy OFF” in the output.

But I still can’t connect to wifi.

I was able to momentarily click the wifi icon and select a network, but then the menu immediately disappeared. Now hovering over the Network Manager icon I see “WiFi wlan0 not connected” again and the icon is not clickable.
Comment 19 Osama Albahrani 2025-07-07 07:40:43 UTC
Would it be a good idea to try to just reinstall FreeBSD? I don’t have anything important on this laptop.
Comment 20 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-07 09:02:18 UTC
(In reply to Osama Albahrani from comment #19)

You would have to install a stable/14 snapshot to avoid the TKIP issue and not 14.3-RELEASE.  The fix was merged June 10 with 950343a170f06a0651b725058e0669b8d03b9d24 .

The last one likely being: FreeBSD-14.3-STABLE-amd64-20250626-fad4064226b2-271785-memstick.img from https://download.freebsd.org/snapshots/ISO-IMAGES/14.3/ .
But I cannot say how that would help you in the future with updating or tracking packages, etc. or it will fix all the problems.

How did your newly compiled kernel go?  When you rebooted last, was that with the updated kernel?
Comment 21 Osama Albahrani 2025-07-07 09:12:28 UTC
In the 14.3-RELEASE dvd iso I was not able to connect to wifi, so I imagine the same would happen in the installed system. I have it installed but I haven’t installed Xorg yet to see if the same happens with the Network Manager UI.

I haven’t finished building the modified kernel yet. I will try that approach and report back.
Comment 22 Osama Albahrani 2025-07-08 02:58:55 UTC
I just booted into the modified kernel and I still cannot connect to wifi.

Let me know if there is something else I can do to troubleshoot. This is not a laptop I mainly used and it’s mostly for experimentation. So happy to try anything that might help.

I noticed that `ifconfig wlan0` shows “authmode OPEN privacy OFF” despite wpa_supplicant running but I’m not sure if this is related.
Comment 23 Osama Albahrani 2025-07-18 04:41:10 UTC
WiFi did work when using FreeBSD-14.3-STABLE-amd64-20250710-7a96c75098af-271907-memstick.img!

Does this mean WiFi should work with a RELEASE kernel only when 14.4-RELEASE drops or will there be updates to the 14.3-RELEASE kernel so I can then "switch back" to it?
Comment 24 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-18 11:16:59 UTC
I'll try to see if we'll publish an EN for this.
Comment 25 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-07-19 11:10:36 UTC
I've requested an Errata.   Once published you should be able to use 14.3-RELEASE again as well after updating.  There will be no new install media.  That means you'll have to install without wireless working and then update using other means.  I'll try to leave another note once the errata is out.
Comment 26 Bjoern A. Zeeb freebsd_committer freebsd_triage 2025-08-10 20:20:51 UTC
It seems the Errata is out:
https://cgit.FreeBSD.org/src/commit/?id=a3bd81ddfe2912afb824e322fddc576cde72e376

See here:
https://lists.freebsd.org/archives/freebsd-announce/2025-August/000199.html

That is if you run freebsd-update now for 14.3 you should be able to have a working 14.3 system.   There are no new installer images to use.