User Tools

Site Tools


bsd:notes:wifi

This is an old revision of the document!


Resources

TODO

Device

  • Wi-Fi 6E(802.11ax) AX210/AX1675* 2×2 [Typhoon Peak]
  • iwlwifi0
pciconf -lv | grep -A'1' -B'3' 'network'
sysctl 'net.wlan.devices'

Initial

ifconfig 'wlan0' create 'wlandev' 'iwlwifi0'
ifconfig 'wlan0' regdomain 'fcc' country 'US'

Persist

sysrc wlans_iwlwifi0="wlan0"
sysrc create_args_wlan0="country US regdomain fcc"

Scan

ifconfig 'wlan0' up list scan

wpa_supplicant.conf

  • :!: Blank line between ssid and key_mgmt is for psk= from wpa_passphrase
ee '/etc/wpa_supplicant.conf'
network={
  ssid="Highgate (5GHz)"
  
  key_mgmt=WPA-PSK
  priority=4
}

network={
  ssid="Izaro"
  
  key_mgmt=WPA-PSK
  priority=3
}

network={
  ssid="Kitava (iPhone XR)"
  
  key_mgmt=WPA-PSK
  priority=2
}

# End

wpa_passphrase

wpa_passphrase 'Highgate (5GHz)'
wpa_passphrase 'Izaro'
wpa_passphrase 'Kitava (iPhone XR)'

Etc

ee '/etc/rc.conf'
ifconfig_wlan0="inet 192.168.1.150 netmask 255.255.255.0"
#ifconfig_wlan0="WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
service 'netif' restart
wpa_supplicant -i'wlan0' -c'/etc/wpa_supplicant.conf'

rc.conf

su -
ee '/etc/rc.conf'
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA inet 192.168.1.150 netmask 255.255.255.0"
defaultrouter="192.168.1.1"

DHCP

wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA DHCP"
#ifconfig_ue0="SYNCDHCP"

Network Restart

su 'root' -c "service 'netif' restart && '/etc/netstart'"

Etc

sysctl 'net.wlan.devices'
dhclient 'wlan0'

Default

  • Included with fresh-install, might be useful for connecting to random APs?
network={
        priority=0
        key_mgmt=NONE
}
/srv/www/wiki/data/attic/bsd/notes/wifi.1779960300.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki