WiFi not working after upgrade to FreeBSD 15.0-RC3

After upgrading from FreeBSD 14.3-RELEASE to FreeBSD 15.0-RC3, my WiFi connection stopped working. I understand that there were major changes with respect to WiFi, and that the iwm firmware has been replaced by iwlwifi.

My configuration in /etc/rc.conf looked like this:

Code:
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"

So here's what I did. I manually unloaded both kernel modules, then loaded iwlwifi only. Afterwards, I was able to create the interface:

Code:
# kldunload if_iwlwifi
# kldunload if_iwm
# kldload if_iwlwifi
# ifconfig wlan0 create wlandev iwlwifi0
[...]

Unfortunately, this does not survice a reboot, although I modified /etc/rc.conf ( wlans_iwlwifi0="wlan0") and added if_iwm_load="NO" to /boot/loader.conf. How can I disable iwm permanently and make sure the network card is attached to the new driver?
 
How can I disable iwm permanently and make sure the network card is attached to the new driver?
If you run kldstat | grep if_iwm do you get any results? I would expect that setting if_iwm_load="NO" in /boot/loader.conf would stop the driver loading. However, if the driver is still being loaded then remove that line completely from /boot/loader.conf or comment it out using a hash character ('#'). To get the new driver to load and survive a reboot check the instructions in the SYNOPSIS section of man 4 iwlwifi()
 
After a reboot, kldstat | grep if_iwm returns the iwm module, so the setting in /boot/loader.conf does not seem to have any effect. I followed the instructions on the man page for iwlwifi and added the module to the kld_list parameter (instead of adding it via /boot/loader.conf), but iwm still seems to take precedence.
 
Which network card is it the iwm driver wants to attach to? Please post pciconf -lv | grep -B 3 network.

The iwlwifi driver attaches to the device using devmatch(8), see iwlwifi(4).

Have you installed net/wifi-firmware-iwlwifi-kmod?

iwlwifi(4)
Rich (BB code):
FILES
     The iwlwifi driver requires firmware from
     ports/net/wifi-firmware-iwlwifi-kmod.  This firmware package will be
     installed automatically with fwget(8) if the appropriate hardware is
     detected at installation or runtime.
 
This is what pciconf -lv | grep -B 3 network returns after I manually unloaded the modules and reloaded only iwlwifi:

Code:
em0@pci0:0:31:6:    class=0x020000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x156f subvendor=0x17aa subdevice=0x2233
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection I219-LM'
    class      = network
--
iwlwifi0@pci0:4:0:0:    class=0x028000 rev=0x3a hdr=0x00 vendor=0x8086 device=0x24f3 subvendor=0x8086 subdevice=0x0130
    vendor     = 'Intel Corporation'
    device     = 'Wireless 8260'
    class      = network

fwget pci returns the following:

Code:
Needed firmware packages: 'gpu-firmware-intel-kmod-skylake wifi-firmware-iwlwifi-kmod-8000'
The most recent versions of packages are already installed

There is a little delay between the first and the second line of output. I never installed the firmware manually, and I got the connection to work (s. my initial post), just not automatically at boot.
 
Back
Top