Bug 278524 - [ath] Atheros AR9462 `list scan` empty output
Summary: [ath] Atheros AR9462 `list scan` empty output
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 14.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-22 09:21 UTC by Dmitry Lukhtionov
Modified: 2024-04-23 12:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Lukhtionov 2024-04-22 09:21:16 UTC
In my notebook Acer Aspire V3-571G, building wireless card do not fins any network

root@acer:/home/mitya # ifconfig wlan0 up
root@acer:/home/mitya # ifconfig wlan0 scan
root@acer:/home/mitya # ifconfig wlan0 list scan

empty output


ath0@pci0:3:0:0:	class=0x028000 rev=0x01 hdr=0x00 vendor=0x168c device=0x0034 subvendor=0x105b subdevice=0xe052
    vendor     = 'Qualcomm Atheros'
    device     = 'AR9462 Wireless Network Adapter'
    class      = network

pcib3: <ACPI PCI-PCI bridge> at device 28.1 on pci0
pcib0: allocated type 3 (0xb3900000-0xb39fffff) for rid 20 of pcib3
pcib3:   domain            0
pcib3:   secondary bus     3
pcib3:   subordinate bus   3
pcib3:   memory decode     0xb3900000-0xb39fffff
pci3: <ACPI PCI bus> on pcib3
pcib3: allocated bus range (3-3) for rid 0 of pci3
pci3: domain=0, physical bus=3
found->	vendor=0x168c, dev=0x0034, revid=0x01
	domain=0, bus=3, slot=0, func=0
	class=02-80-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0007, statreg=0x0010, cachelnsz=16 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	intpin=a, irq=255
	powerspec 2  supports D0 D1 D2 D3  current D0
	MSI supports 4 messages, 64 bit, vector masks
	map[10]: type Memory, range 64, base rxb3900000, size 19, enabled
pcib3: allocated memory range (0xb3900000-0xb397ffff) for rid 10 of pci0:3:0:0
ath0: <Atheros AR946x/AR948x> mem 0xb3900000-0xb397ffff at device 0.0 on pci3
pcib3: matched entry for 3.0.INTA
pcib3: slot 0 INTA hardwired to IRQ 17
ioapic0: routing intpin 17 (PCI IRQ 17) to lapic 0 vector 58
ar9300_flash_map: unimplemented for now
Restoring Cal data from DRAM
Restoring Cal data from EEPROM
Restoring Cal data from Flash
Restoring Cal data from Flash
Restoring Cal data from OTP
ar9300_hw_attach: ar9300_eeprom_attach returned 0
ath0: RX status length: 48
ath0: RX buffer size: 4096
ath0: TX descriptor length: 128
ath0: TX status length: 36
ath0: TX buffers per descriptor: 4
ath0: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries
ath0: ath_edma_setup_rxfifo: type=1, FIFO depth = 128 entries
ath0: RX timestamp: 32 bits
ath0: TX timestamp: 32 bits
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: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 2T2R
ath0: 11na MCS 20MHz
ath0: MCS 0-7: 6.5Mbps - 65Mbps
ath0: MCS 8-15: 13Mbps - 130Mbps
ath0: 11na MCS 20MHz SGI
ath0: MCS 0-7: 7Mbps - 72Mbps
ath0: MCS 8-15: 14.5Mbps - 144.5Mbps
ath0: 11na MCS 40MHz:
ath0: MCS 0-7: 13.5Mbps - 135Mbps
ath0: MCS 8-15: 27Mbps - 270Mbps
ath0: 11na MCS 40MHz SGI:
ath0: MCS 0-7: 15Mbps - 150Mbps
ath0: MCS 8-15: 30Mbps - 300Mbps
ath0: 11ng MCS 20MHz
ath0: MCS 0-7: 6.5Mbps - 65Mbps
ath0: MCS 8-15: 13Mbps - 130Mbps
ath0: 11ng MCS 20MHz SGI
ath0: MCS 0-7: 7Mbps - 72Mbps
ath0: MCS 8-15: 14.5Mbps - 144.5Mbps
ath0: 11ng MCS 40MHz:
ath0: MCS 0-7: 13.5Mbps - 135Mbps
ath0: MCS 8-15: 27Mbps - 270Mbps
ath0: 11ng MCS 40MHz SGI:
ath0: MCS 0-7: 15Mbps - 150Mbps
ath0: MCS 8-15: 30Mbps - 300Mbps
ath0: AR9460 mac 640.2 RF5110 phy 2822.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000
ath0: Use hw queue 1 for WME_AC_BE traffic
ath0: Use hw queue 0 for WME_AC_BK traffic
ath0: Use hw queue 2 for WME_AC_VI traffic
ath0: Use hw queue 3 for WME_AC_VO traffic
ath0: Use hw queue 8 for CAB traffic
ath0: Use hw queue 9 for beacons
ath0: using multicast key search

mitya@acer:/etc# ifconfig wlan0 list active
Channel   1 : 2412  MHz 11g ht       Channel  60 : 5300* MHz 11a ht       
Channel   2 : 2417  MHz 11g ht       Channel  64 : 5320* MHz 11a ht       
Channel   3 : 2422  MHz 11g ht       Channel 100 : 5500* MHz 11a ht       
Channel   4 : 2427  MHz 11g ht       Channel 104 : 5520* MHz 11a ht       
Channel   5 : 2432  MHz 11g ht       Channel 108 : 5540* MHz 11a ht       
Channel   6 : 2437  MHz 11g ht       Channel 112 : 5560* MHz 11a ht       
Channel   7 : 2442  MHz 11g ht       Channel 116 : 5580* MHz 11a ht       
Channel   8 : 2447  MHz 11g ht       Channel 120 : 5600* MHz 11a ht       
Channel   9 : 2452  MHz 11g ht       Channel 124 : 5620* MHz 11a ht       
Channel  10 : 2457  MHz 11g ht       Channel 128 : 5640* MHz 11a ht       
Channel  11 : 2462  MHz 11g ht       Channel 132 : 5660* MHz 11a ht       
Channel  12 : 2467* MHz 11g ht       Channel 136 : 5680* MHz 11a ht       
Channel  13 : 2472* MHz 11g ht       Channel 140 : 5700* MHz 11a ht       
Channel  36 : 5180* MHz 11a ht       Channel 149 : 5745* MHz 11a ht       
Channel  40 : 5200* MHz 11a ht       Channel 153 : 5765* MHz 11a ht       
Channel  44 : 5220* MHz 11a ht       Channel 157 : 5785* MHz 11a ht       
Channel  48 : 5240* MHz 11a ht       Channel 161 : 5805* MHz 11a ht       
Channel  52 : 5260* MHz 11a ht       Channel 165 : 5825* MHz 11a ht       
Channel  56 : 5280* MHz 11a ht 

mitya@acer:/etc# ifconfig wlan0 list caps
drivercaps=4f8def41<STA,FF,IBSS,PMGT,HOSTAP,AHDEMO,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,MBSS,WPA1,WPA2,BURST,WME,WDS,TXFRAG>
cryptocaps=1f<WEP,TKIP,AES,AES_CCM,TKIPMIC>
htcaps=20701ef<LDPC,CHWIDTH40,SHORTGI20,SHORTGI40,TXSTBC>
Comment 1 Dmitry Lukhtionov 2024-04-22 09:23:31 UTC
mitya@acer:/etc# ifconfig -v wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=0
	ether 68:94:23:7a:41:25
	groups: wlan
	ssid "" channel 12 (2467 MHz 11b) bssid 00:00:00:00:00:00
	regdomain 108 country DEBUG indoor ecm authmode OPEN -wps -tsn
	privacy OFF deftxkey UNDEF
	powersavemode OFF powersavesleep 100 txpower 20 txpowmax 50.0 -dotd
	rtsthreshold 2346 fragthreshold 2346 bmiss 7
	11a     ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
	11b     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
	11g     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
	11na    ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
	11ng    ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
	scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
	roam:11a     rssi    7dBm rate 12 Mb/s
	roam:11b     rssi    7dBm rate  1 Mb/s
	roam:11g     rssi    7dBm rate  5 Mb/s
	roam:11na    rssi    7dBm  MCS  1    
	roam:11ng    rssi    7dBm  MCS  1    
	-pureg protmode CTS ht htcompat ampdu ampdulimit 64k ampdudensity 8
	amsdu shortgi htprotmode RTSCTS -puren -smps -rifs stbc ldpc -uapsd
	-vht -vht40 -vht80 -vht160 -vht80p80 wme burst -dwds roaming AUTO
	bintval 0
	AC_BE cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm ack
	      cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm
	AC_BK cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm ack
	      cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm
	AC_VI cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm ack
	      cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm
	AC_VO cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm ack
	      cwmin  0 cwmax  0 aifs  0 txopLimit   0 -acm
	parent interface: ath0
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11b
	status: no carrier
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	drivername: wlan0
Comment 2 Adrian Chadd freebsd_committer freebsd_triage 2024-04-22 15:15:12 UTC
ok, let's see if this is a WB225 NIC (AR9485 + AR30xx BT)

https://techinfodepot.shoutwiki.com/wiki/Atheros_AR5B225


I added btcoex support a while back but didn't enable it by default.

You need to add hint.ath.0.btcoex_profile="wb225" to /boot/loader.conf and reboot.
It needs to be there before probe/attach so the btcoex code can see it.

Then check dmesg for 'Enabling WB225 BTCOEX'.

the AR9485 has an external antenna switch IC that switches between bluetooth and wifi, and if it's not all configured correctly you'll end up with no receive. :-)
Comment 3 Dmitry Lukhtionov 2024-04-23 12:03:13 UTC
I see 'Enabling WB225 BTCOEX' in dmesg
but `ifconfig wlan0 scan` and `ifconfig wlan0 list scan` produce empty output

Can I debug this error ?
`ar9300_hw_attach: ar9300_eeprom_attach returned 0`
Comment 4 Dmitry Lukhtionov 2024-04-23 12:27:00 UTC
I rebooting notebook and see

root@acer:/home/mitya # ifconfig wlan0 scan
SSID/MESH ID                      BSSID              CHAN RATE    S:N     INT CAPS
Altair free_5G                    34:60:f9:c7:45:b9   44   54M  -81:-96   100 E    WPS BSSLOAD HTCAP VHTCAP VHTOPMODE WME
root@acer:/home/mitya # ifconfig wlan0 list scan
SSID/MESH ID                      BSSID              CHAN RATE    S:N     INT CAPS
Altair free_5G                    34:60:f9:c7:45:b9   44   54M  -81:-96   100 E    WPS BSSLOAD HTCAP VHTCAP VHTOPMODE WME


root@acer:/home/mitya # ifconfig wlan0 
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=0
	ether 68:94:23:7a:41:25
	inet 192.168.0.112 netmask 0xffffff00 broadcast 192.168.0.255
	groups: wlan
	ssid "Altair free_5G" channel 44 (5220 MHz 11a ht/40+) bssid 34:60:f9:c7:45:b9
	regdomain 108 indoor ecm authmode OPEN privacy OFF txpower 30 bmiss 7
	mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 64k ampdudensity 4
	shortgi -uapsd wme burst roaming MANUAL
	parent interface: ath0
	media: IEEE 802.11 Wireless Ethernet MCS mode 11na
	status: associated
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


I rebooting notebook again and see

oot@acer:/home/mitya # ifconfig wlan0 scan
SSID/MESH ID                      BSSID              CHAN RATE    S:N     INT CAPS
W0028082563320                    ca:c9:a3:a5:34:c6    1   54M  -89:-96   100 EP   RSN WPA
STO                               38:6b:1c:ca:be:b2    1   54M  -79:-96   100 EP   HTCAP WPA RSN BSSLOAD WME
blackout                          b8:27:eb:92:b6:b2    6   54M  -78:-96   100 EP   RSN HTCAP WME
lena                              10:fe:ed:b4:85:64    6   54M  -79:-96   100 EPS  RSN HTCAP APCHANREP WPA WME ATH WPS
WV-CONNECT                        f8:5e:3c:0f:71:c4   11   54M  -91:-96   100 EPS  RSN HTCAP WME
Altair_5G                         1c:61:b4:5d:1f:f8   36   54M  -90:-96   100 EP   RSN WPS BSSLOAD HTCAP VHTCAP VHTOPMODE WME
TP-Link_8813_5G                   30:de:4b:a4:88:15   40   54M  -91:-96   100 EP   RSN WPS BSSLOAD HTCAP VHTCAP VHTOPMODE WME
Altair free_5G                    34:60:f9:c7:45:b9   44   54M  -82:-96   100 E    WPS BSSLOAD HTCAP VHTCAP VHTOPMODE WME
netis_F29776                      e4:be:ed:f2:97:76    3   54M  -87:-96    25 EP   HTCAP WPA RSN WME
Altair free                       34:60:f9:c7:45:b7    3   54M  -83:-96   100 E    HTCAP BSSLOAD WME WPS
Noob                              48:a9:8a:74:89:c0    9   54M  -72:-96   100 EPS  HTCAP RSN WME WPS
Kyivstar_78EE                     68:ff:7b:10:78:ee   10   54M  -82:-96   100 EP   RSN WPS HTCAP WME BSSLOAD