Re: Problems with WiFi networks - HP 255 G7, FreeBSD 14.2

From: Dave Cottlehuber <dch_at_skunkwerks.at>
Date: Wed, 02 Apr 2025 23:30:06 UTC
> On Wed, Apr 2, 2025 at 4:30 AM Dave Cottlehuber <dch@skunkwerks.at> wrote:
>> On Tue, 1 Apr 2025, at 17:33, Mauricio wrote:
>> > Hey! : )
>> >
>> > I have decided to install FreeBSD 14.2 in my laptop (HP 255 G7).
>> > This model use a WiFi card detected as rtw880 in the system.
>> 
>> Welcome Mauricio!
>> 
>> > I did the same for this 14.2 installation. And my WiFi card is 
>> > recognized when looking at the ifconfig output.

TLDR try installing 14-STABLE to see if this is resolved.

I wrote most of the notes below before finding PR283142, so just
use it to refer to in future.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272145 seems relevant
with https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283903
as does https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283142 which
looks like a fix may already be in 14-STABLE, my suggestion would be
to see if 14-STABLE works or not.

> dmesg: https://pastebin.com/pYWAkSed

rtw880: <rtw_8821ce> port 0x2000-0x20ff mem 0xc0600000-0xc060ffff at device 0.0 on pci1
rtw880: successfully loaded firmware image 'rtw88/rtw8821c_fw.bin'
rtw880: Firmware version 24.8.0, H2C version 12

> ifconfig: https://pastebin.com/JcETgrGU

wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=0
	ether 00:e9:3a:db:06:fb
	groups: wlan
	ssid "" channel 11 (2462 MHz 11g). <---------
	regdomain FCC country US authmode WPA1+WPA2/802.11i privacy ON
	deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 protmode CTS wme
	roaming MANUAL
	parent interface: rtw880
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
	status: no carrier <-------------------------

So you're not getting an IP address from DHCP server because no
connection is being established to the access point (no carrier).

While I can't diagnose this, you should grab output of wifi scan,
and run wpa_supplicant in debug mode, and update one of the 
tickets above if its still an issue on 14-STABLE.

# ifconfig -v wlan0 list scan
# pkill -ilf wpa_supplicant
# wpa_supplicant -tddi wlan0 -c /etc/wpa_supplicant.conf

You may need to sanitise this file, it may contain your wifi password

A+
Dave