when start program :wifimgr,we got outpu :
no wifi interface is configured in /etc/rc.conf
The first step will be to configure the wireless network card to an interface. To find out what wireless network cards are in the system check the section Identify Network Adapters.
# ifconfig wlan0 create wlandev iwm0
output:
ifconfig: wlandev: bad value
so where is my wifi dev ?
search for help :Solved - Ifconfig: wlandev: bad value | The FreeBSD Forums
use dmesg
dmesg |grep Wir
ugen0.2: <YICHIP Wireless Device> at usbus0
ukbd0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
Intel(R) Wireless WiFi based driver for FreeBSD
iwm0: <Intel(R) Dual Band Wireless AC 7265> mem 0xe1000000-0xe1001fff at device 0.0 on pci2
ums0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
ugen0.2: <YICHIP Wireless Device> at usbus0
ukbd0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
Intel(R) Wireless WiFi based driver for FreeBSD
iwm0: <Intel(R) Dual Band Wireless AC 7265> mem 0xe1000000-0xe1001fff at device 0.0 on pci2
ums0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
ugen0.2: <YICHIP Wireless Device> at usbus0 (disconnected)
ugen0.2: <YICHIP Wireless Device> at usbus0
ukbd0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
ums0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
so we have iwm0 ,the Intel Dual Wireless
but I can't config it ....
change wifi :
- TWT关闭开启(部分终端的驱动较旧,开启该功能可能存在一定兼容性问题)
close TWT
pciconf -lv
iwm0@pci0:3:0:0: class=0x028000 rev=0x59 hdr=0x00 vendor=0x8086 device=0x095a subvendor=0x8086 subdevice=0x5010
vendor = 'Intel Corporation'
device = 'Wireless 7265'
class = network
we found that wlan0 is no carrier
at last use :
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
then it's ok
status: associated
then add route :
route add default 192.168.0.1
then network is ok
but after service netif restart ,we need reuse
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
config wifi at TTY
-
add an entry for this network to /etc/wpa_supplicant.conf. If the file does not exist, create it:
network={ ssid="myssid" psk="mypsk" }
- add the network entry to configure the network on startup:
# sysrc wlans_iwn0="wlan0"
# sysrc ifconfig_wlan0="WPA DHCP"
then :
# service netif restart
or write to /etc/rc.conf :
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
and then :
/etc/netstart
after that ,I fount wifimgr is ok!
summory
at last wifigmr error solved ,so after config wifi at TTY .