
Tengo un Lenovo Ideapad 100S 14'' IBR-14'' Intel Celeron CPU N3060 @ 1.60GHz, 32GB SSD, 4GB RAM, pero no sé qué wifi tengo allí, ya que hay varias generaciones diferentes, y cómo para encontrar qué controlador tengo que usar en FreeBSD.
¿Cómo hacerlo?
Respuesta1
Para saber qué kernel wifi usará el controlador, haga lo siguiente:
$sysctl net.wlan.devices
net.wlan.devices: iwm0
Ahora sabemos que tenemos que usar iwm0.
También puedes encontrar el hardware correspondiente haciendo:
$ pciconf -lv iwm0
iwm0@pci0:2:0:0: class=0x028000 card=0x82708086 chip=0x08b48086 rev=0x93 hdr=0x00
vendor = 'Intel Corporation'
device = 'Wireless 3160'
class = network
Ahora sabemos que es un modelo con Intel Wireless AC y iwm0
; lo cual es una muy buena noticia, ya que este modelo me lo vendieron como capaz de hacer bgn y no 802.11n AC.
Mientras que en el pasado era necesario compilar el controlador Intel 3160AC, hoy en día ya es compatible con el kernel predeterminado.
Ahora, para configurarlo, cargaremos el módulo, el firmware y los protocolos de autenticación wifi compatibles en /etc/rc.conf
:
legal.intel.license_ack=1
if_iwm_load="YES"
iwm3160fw_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
También en /etc/rc.conf
definirá el wpa_supplicant
cliente DHCP, activará la interfaz y definirá el país como PT para que transmita en una frecuencia más fuerte y apropiada para mi país:
wpa_supplicant_enable="YES"
synchronous_dhclient="YES"
wlans_iwm0="wlan0"
create_args_wlan0="country PT"
Ahora búscalo wpa_config
e instálalo:
#pkg search wpa_config
wpa_gui-2.6 Qt-based frontend for wpa_supplicant
wpa_supplicant-2.6 Supplicant (client) for WPA/802.1x protocols
#pkg install wpa_gui wpa_supplicant
Editar ahora /etc/wpa_supplicant.conf
:
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="my_ssid"
priority=146
scan_ssid=1
psk="wifipassword"
}
Al reiniciar, podrás ver las líneas, o más tarde con dmesg
.
iwm0: hw rev 0x160, fw ver 17.352738.0, address f4:06:69:xx:xx:xx
wlan0: Ethernet address: f4:06:69:xx:xx:xx
iwm0: iwm_update_edca: called
iwm0: iwm_update_edca: called
wlan0: link state changed to UP
Ahora tenemos conectividad wifi, dirección IP y conectividad a Internet.
$ ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether f4:06:69:xx:xx:xx
inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid xxxx channel 13 (2472 MHz 11g) bssid 30:b5:c2:xx:xx:xx
regdomain ETSI country PT authmode WPA2/802.11i privacy ON
deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 bmiss 10
scanvalid 60 protmode CTS wme roaming MANUAL
groups: wlan
Finalmente para configurarlo gráficamente, puedes usar wpa_gui
; Si usas Lumina también puedes instalarlo pcbsd-utils
para tener el ícono de wifi en la bandeja.
Para enumerar los SSID disponibles en la línea de comando, haga lo siguiente:
#ifconfig wlan0 list scan
SSID/MESH ID BSSID CHAN RATE S:N INT CAPS
MEO-1608CD c4:ea:1d:16:08:cd 1 54M -87:-96 100 EP RSN HTCAP WPS WPA WME
MEO-WiFi c6:ea:1d:16:08:ce 1 54M -89:-96 100 ES HTCAP WME
Vodafone-11... 9c:97:26:11:ad:10 1 54M -70:-96 100 EP RSN HTCAP WPS WPA WME
NOS-14F0 f0:f2:49:99:14:f8 12 54M -88:-96 100 EPS WPS HTCAP WPA RSN WME BSSLOAD
NOS_WIFI_Fon bc:4d:fb:53:65:d9 12 54M -88:-96 100 ES HTCAP WME BSSLOAD
xxxx 30:b5:c2:xx:xx:xx 13 54M -44:-96 100 EPS RSN HTCAP WME
xxxxx 30:b5:c2:xx:xx:xx 36 54M -50:-96 100 EP RSN HTCAP VHTCAP VHTOPMODE WME
MEO-A8E087-5G e2:b9:e5:a8:e0:87 60 54M -78:-96 100 EP RSN HTCAP VHTCAP VHTOPMODE VHTPWRENV WPS WPA WME
oLi oNe 2c:9d:1e:d3:22:c0 124 54M -75:-96 98 EP RSN BSSLOAD HTCAP VHTCAP VHTOPMODE VHTPWRENV WPS WPA WME
Lectura adicional: Manual de FreeBSD30.3. Redes inalámbricas