Solved How to install 'atheros' wifi driver

Hi,

I'm trying to enable wifi (a AR5418 wifi card) on my desktop PC with FreeBsd 12.2.
$ sysctl net.wlan.devices
net.wlan.devices: ath0
$ pciconf -lv ath0
ath0@pci0:2:0:0: class=0x028000 card=0x2a5f103c chip=0x0024168c rev=0x01 hdr=0x00
vendor = 'Qualcomm Atheros'
device = 'AR5418 Wireless Network Adapter [AR5008E 802.11(a)bgn] (PCI-Express)'
class = network
$

What do I need in '/etc/rc.conf' to enable the wifi? I'm thinking along the line
#added wifi interface
wlans ath0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"

any thoughts?
 
Depending on your location, you might need to add create_args_wlan0="country XX".
Because, in different countries different channels are permitted/forbidden.
Without that, I couldn't get my base station scanned.
 
Is this a typo? Should be wlans_ath0="wlan0"
thanks! Good point!

My wifi configuration files are as follows:

I edited /etc/rc.conf to add:
wlans_ath0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"

also created /etc/wpa_supplicant.conf and add following:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="id"
scan_ssid=1
psk="password"

Restarted machine and wifi is working now!
 
Back
Top