Atheros AR9285 Wireless laptop

Hi! I'm new. yesterday I installed FreeBSD 14.1i on an old laptop lenovo b570e . And no wi-fi in ifconfig, only lo0 and re0 (realtek lan).

Code:
 ath0@pci0:2:0:0:    class=0x028000 rev=0x01 hdr=0x00 vendor=0x168c device=0x002b subvendor=0x17aa subdevice=0x30a1
    vendor     = 'Qualcomm Atheros'
    device     = 'AR9285 Wireless Network Adapter (PCI-Express)'
    class      = network

Code:
root@galaxy ~# dmesg | grep "ath0"
ath0: <Atheros 9285> mem 0xd0500000-0xd050ffff at device 0.0 on pci2
ath0: [HT] enabling HT modes
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 RX streams; 1 TX streams
ath0: AR9285 mac 192.2 RF5133 phy 14.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0

I found only old thread , but no new how fix
Tell me please how to start it?

PS: sorry my english is bad :(
 
 
Hi. I am using AR9462 and i have similar dmesg output like you have.
Code:
# dmesg | grep "ath0"
ath0: <Atheros AR946x/AR948x> mem 0xfcd00000-0xfcd7ffff at device 0.0 on pci5
ath0: [HT] enabling HT modes
ath0: [HT] enabling short-GI in 20MHz mode
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] LDPC transmit/receive enabled
ath0: [HT] 2 RX streams; 2 TX streams
ath0: AR9460 mac 640.2 RF5110 phy 3164.8
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000

You may need to configure ath0.

Code:
# grep -E 'ath0|wlan' /etc/rc.conf
wlans_ath0="wlan0"
ifconfig_wlan0="WPA inet 192.168.1.123 netmask 255.255.255.0"
create_args_wlan0="country TR regdomain ETSI"

Code:
# cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
        ssid="xxxxxx"
        scan_ssid=0
        psk="xxxxxxxx"
        priority=5
}
network={
        priority=0
        key_mgmt=NONE
}

After making these changes according to your setup, run # service netif restart && service routing restart or # reboot your system.
 
I add code in files:

Code:
/etc/rc.conf
wlans_ath0="wlan0"
ifconfig wlan0 mode 11ng country RU regdomain etsi txpower 30
ifconfig_wlan0="WPA inet 172.22.1.2 netmask 255.255.255.0"

vik@galaxy ~> cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
        ssid="Home_wifi"
        scan_ssid=0
        psk="mypass"
        priority=5
}
network={
        priority=0
        key_mgmt=NONE
}

Yes, in ifconfig now

Code:
wlan0: flags=8c43<UP,BROADCAST,RUNNING,DRV_OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=0
    ether 20:16:d8:04:36:d5
    inet 172.22.1.2 netmask 0xfffffe00 broadcast 172.22.1.255
    groups: wlan
    ssid "" channel 12 (2467 MHz 11g)
    regdomain ETSI country RU indoor ecm authmode WPA1+WPA2/802.11i
    privacy MIXED deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60
    protmode CTS wme burst roaming MANUAL
    parent interface: ath0
    media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng (autoselect)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

But ssid is empty and
root@galaxy /v/log# ifconfig wlan0 up list scan
is empty :(
 
ifconfig wlan0 mode 11ng country RU regdomain etsi txpower 30
That line seems wrong.

Here is the support table for AR9285. It seems to support bgn modes but they say 11bg station mode is stable. I think try without specifying mode. Also, txpower is unknown but you have specified it in /etc/rc.conf, maybe try fixing that line and it should look like this.
create_args_wlan0="country RU regdomain ETSI"

Try setting defaultrouter to the router's IP address in /etc/rc.conf. For example
# sysrc defaultrouter="192.168.1.1"
Then, run command below as root:
# service netif restart && service routing restart

1730543704648.png


I don't know why u can't see any access points with scan command, maybe that is related to issue above in my post.
 
I would not do it in rc.conf. I would first do it in terminal, line by line, to make sure all my commands work and to check I get what I want. Only then, I would add things that I tested and actually work to rc.conf.

I found it takes a little testing and checking and googling to get my Atheros card working (but I use it as a wifi hotspot).

And congratulations, Atheros cards are the best, as far as I know. No proprietory firmware to install, cheap, good quality. You have a card with two streams, there are Atheros cards with 3 streams that are even faster (if both access point and the client device support it).
 
Back
Top