User Tools

Site Tools


bsd:notes:wifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bsd:notes:wifi [2025/05/22 02:36] Sean Rhonebsd:notes:wifi [2025/05/22 03:42] (current) Sean Rhone
Line 1: Line 1:
 +====== Resources ======
 +
 +  * https://srobb.net/fbsdquickwireless.html
 +  * [[https://man.freebsd.org/cgi/man.cgi?query=wpa_supplicant&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html|wpa_supplicant]]
 +  * [[https://man.freebsd.org/cgi/man.cgi?query=wpa_supplicant.conf&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html|wpa_supplicant.conf]]
 +
 +  * [[bsd:freebsd_14.3_xfce]]
 +
 +====== Interface ======
 +
 +  ifconfig wlan create wlandev iwm0
 +
 +  sysrc wlans_iwm0="wlan0"
 +
 +====== rc.conf ======
 +
 +  * TODO: Other SSIDs might need DHCP?
 +
 +  ee '/etc/rc.conf'
 +
 <code> <code>
 +wlans_iwm0="wlan0"
 +ifconfg_wlan0="WPA inet 192.168.1.151/24 ssid Highgate (5GHz)"</code>
  
-sysrc wlans_iwm0="wlan0"+====== wpa_supplicant.conf ======
  
 +  ee '/etc/wpa_supplicant.conf'
 +
 +<code>
 +ctrl_interface=/var/run/wpa_supplicant
 +eapol_version=2
 +ap_scan=1
 +fast_reauth=1
  
 network={ network={
   ssid="Highgate (5GHz)"   ssid="Highgate (5GHz)"
-  psk="x" +  psk=
-  scan_ssid=1+
   key_mgmt=WPA-PSK   key_mgmt=WPA-PSK
   priority=5   priority=5
 } }
-</code> 
-====== Old Wireless ====== 
  
-  * :?: 2025/04/01: ''ping'' to a website wouldn't work immediately after connecting to an Android hotspot (even with unrelated USB Tethering and in-house Highgate); may be local DNS?+network={ 
 +  ssid="The Crossroads (2.4GHz)
 +  psk= 
 +  key_mgmt=WPA-PSK 
 +  priority=4 
 +}
  
-  su -+network={ 
 +  ssid="Izaro" 
 +  psk= 
 +  key_mgmt=WPA-PSK 
 +  priority=3 
 +}
  
-  pkg install 'wifimgr'+network={ 
 +  ssid="Kitava (iPhone XR)" 
 +  psk= 
 +  key_mgmt=WPA-PSK 
 +  priority=2 
 +}
  
-  ee '/etc/rc.conf'+# End</code>
  
-<code> +===== wpa_passphrase ===== 
-wlans_iwm0="wlan0" + 
-ifconfig_wlan0="WPA SYNCDHCP" +  wpa_passphrase 'Highgate (5GHz)' 
-ifconfig_wlan0_ipv6="inet6 accept_rtadv" + 
-create_args_wlan0="country US regdomain FCC"</code>+  wpa_passphrase 'The Crossroads (2.4GHz)' 
 + 
 +  wpa_passphrase 'Izaro' 
 + 
 +  wpa_passphrase 'Kitava (iPhone XR)' 
 + 
 +===== Test ===== 
 + 
 +**** 
 + 
 +  wpa_supplicant -d -c '/etc/wpa_supplicant.conf' -i 'wlan0' 
 + 
 +====== Etc ====== 
 + 
 +  sysctl 'net.wlan.devices' 
 + 
 +  dhclient 'wlan0'
  
/srv/www/wiki/data/attic/bsd/notes/wifi.1747895786.txt.gz · Last modified: by Sean Rhone