wlan0 interface does not exist, can't find wireless interface

Hello,

I'm trying get the WiFi working on my ThinkPad T480s with FreeBSD 14.

When I try

Code:
ifconfig wlan0 up scan


I get the error


Code:
ifconfig: interface wlan0 does not exist


in my /etc/rc.conf

there is no entry for wlan0, only for em0.

If I undersand this correctly, this means my wireless interface is not configured.

How do I configure it?
 
Give me the output of

pciconf -lv | grep -A1 -B3 network

hello,

the output of
pciconf -lv | grep -A1 -B3 network

is

Code:
em0@pci0:0:31:6:    class=0x020000 rev=0x21 hdr=0x00 vendor=0x8086 device=0x15d7 subvendor=0x17aa subdevice=0x2258
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection (4) I219-LM'
    class      = network
    subclass   = ethernet
--
iwm0@pci0:61:0:0:    class=0x028000 rev=0x78 hdr=0x00 vendor=0x8086 device=0x24fd subvendor=0x8086 subdevice=0x0010
    vendor     = 'Intel Corporation'
    device     = 'Wireless 8265 / 8275'
    class      = network
nvme0@pci0:62:0:0:    class=0x010802 rev=0x00 hdr=0x00 vendor=0x144d device=0xa809 subvendor=0x144d subdevice=0xa801
 
my 14.0-RELEASE-p6 / thinkpad x250 has

Code:
$ fgrep wlan /etc/rc.conf
wlans_iwm0="wlan0"
create_args_wlan0="country DE powersave"
# create_args_wlan0="country DE regdomain ETSI"
ifconfig_wlan0="WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
 

Does this work for you?
 
  • Like
Reactions: mro

Does this work for you?
I'm not sure how to get the SSID or PSK for my local home network.

EDIT:
I tried putting the "name of network" as SSID and the wifi password as PSK, and then following the rest of the quick start steps:

sysrc wlans_iwn0="wlan0"
sysrc ifconfig_wlan0="WPA DHCP"
service netif restart

however, it still doesn't seem to work.
The output for sysctl net.wlan.devices and pciconf -lv | grep -A1 -B3 network remains the same.
 
my 14.0-RELEASE-p6 / thinkpad x250 has

Code:
$ fgrep wlan /etc/rc.conf
wlans_iwm0="wlan0"
create_args_wlan0="country DE powersave"
# create_args_wlan0="country DE regdomain ETSI"
ifconfig_wlan0="WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
huh..

when I try the same command, I get just
Code:
create_args_wlan0="country F2"

EDIT: after following the quick start steps, now it says
Code:
5:create_args_wlan0="country F2"
19:wlans_iwn0="wlan0"
20:ifconfig_wlan0="WPA DHCP"
 
Your sysctl entry shows iwm0 not iwn0.

thanks for catching that ^_^

now when I run ifconfig wlan0 up scan I get a bunch of info, looks like the info for all the local wifi networks.

I tried just unplugging my ethernet and seeing if it would switch to wifi, not the case, but still, this is progress, thank you very much ^_^
 
I tried just unplugging my ethernet and seeing if it would switch to wifi, not the case
You will need to do some extra configuring if you want to 'automagically' switch from ethernet to wifi (or vice versa).

 
  • Like
Reactions: mro
thanks for catching that ^_^

now when I run ifconfig wlan0 up scan I get a bunch of info, looks like the info for all the local wifi networks.

I tried just unplugging my ethernet and seeing if it would switch to wifi, not the case, but still, this is progress, thank you very much ^_^
that's what the scan does.

I don't need transparent failover, so I use $ wpa_gui plus editing /etc/wpa_supplicant.conf to connect the Wifis I want. And occasionally do $ sudo service netif restart
 
thanks for catching that ^_^

now when I run ifconfig wlan0 up scan I get a bunch of info, looks like the info for all the local wifi networks.

Is the SSID you want to connect to listed in this output.

If that is the case, you are almost there, just need to specify the required password....

 
You will need to do some extra configuring if you want to 'automagically' switch from ethernet to wifi (or vice versa).

Doesnt FreeBSD 14.0 automatically switches wifi off when ethernet cable gets plugged in and vise versa when disconnects ?
I never did anything and if i use wired - my wifi goes off and powers on if i remove my ethernet.
 
On Windows perhaps.
Understood and i know where i got confused.
P.s. This is line i get when im in console and plugging in my Ethernet cable.
Code:
iwlwifi0: RF_KILL bit toggled to disable radio

Which means it does kill WiFi and if Ethernet is not configured - no internet. Correct ? So by end of the day - if i install trough WiFi - i need to configure Ethernet cable ?
 
This is line i get when im in console and plugging in my Ethernet cable.
Looks like this laptop might have some hardware that automatically kills the wireless interface when the ethernet port is active. Annoying feature to be honest. But perhaps you can switch this on/off in the BIOS?

Which means it does kill WiFi and if Ethernet is not configured - no internet. Correct ?
Correct.

if i install trough WiFi - i need to configure Ethernet cable ?
Unless you're installing from the 'bootonly' images you don't actually need to configure the network during the installer. This can all be done afterwards.
 
Looks like this laptop might have some hardware that automatically kills the wireless interface when the ethernet port is active. Annoying feature to be honest. But perhaps you can switch this on/off in the BIOS?
Thank You ! Turns out i do have this option in my BIOS and i can disable it.
Ps. It might be useful for OP then - its ThinkPad T480 motherboard
 
  • Like
Reactions: mro
Back
Top