I have an Atheros AR5418 mini-PCI card in my laptop, which I think
came from an eBay seller in China.  It used to work under OpenBSD, but
that may have been back about 5.2 or 4.7.  Now I'm using 5.7.  It
works now in Kismet under OpenBSD, but an ifconfig scan comes up not
finding anything.  If I set the nwid and chan in ifconfig and do a
dhclient I get no link.

If I boot the same machine into Linux it works, but mostly only using
WiCD to configure it.  One thing I notice is that Linux dmesg shows
the regdomain as 0x6a, which could be a concern since it came directly
from China.

OpenBSD dmesg says:

athn0 at pci2 dev 0 function 0 "Atheros AR5418" rev 0x01: apic 2 int 17
athn0: MAC AR5418 rev 2, RF AR5133 (2T3R), ROM rev 8, address
00:21:63:30:0e:4c

ifconfig says:

athn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:21:63:30:0e:4c
        priority: 4
        groups: wlan
        media: IEEE802.11 autoselect
        status: no network
        ieee80211: nwid ""

lspci says:

0c:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network
Adapter [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01)
        Subsystem: Askey Computer Corp. Device 7125
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 3
        Region 0: Memory at f6cf0000 (64-bit, non-prefetchable)
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2- AuxCurrent=375mA
PME(D0+,D1+,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
                Address: 00000000  Data: 0000
        Capabilities: [60] Express (v1) Legacy Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, 
L1 <64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- 
Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- 
TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L1, Exit Latency 
L0s
<512ns, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl: ASPM L1 Enabled; RCB 128 bytes Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ 
DLActive-
BWMgmt- ABWMgmt-
        Capabilities: [90] MSI-X: Enable- Count=1 Masked-
                Vector table: BAR=0 offset=00000000
                PBA: BAR=0 offset=00000000
00: 8c 16 24 00 07 01 10 00 01 00 80 02 10 00 00 00
10: 04 00 cf f6 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 4f 14 25 71
30: 00 00 00 00 40 00 00 00 00 00 00 00 03 01 00 00

Linux dmesg says:

[   11.514374] ath: EEPROM regdomain: 0x6a
[   11.514375] ath: EEPROM indicates we should expect a direct regpair map
[   11.514377] ath: Country alpha2 being used: 00
[   11.514377] ath: Regpair used: 0x6a
[   19.374377] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   22.800353] wlan0: authenticate with e8:91:20:23:4f:38
[   22.806963] wlan0: send auth to e8:91:20:23:4f:38 (try 1/3)
[   22.813479] wlan0: authenticated
[   22.816231] wlan0: associate with e8:91:20:23:4f:38 (try 1/3)
[   22.834215] wlan0: RX AssocResp from e8:91:20:23:4f:38
(capab=0x8421 status=0 aid=3)
[   22.837361] wlan0: associated
[   22.840320] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Linux ifconfig says:

wlan0     Link encap:Ethernet  HWaddr 00:21:63:30:0e:4c
          inet addr:192.168.43.223  Bcast:192.168.43.255  Mask:255.255.255.0
          inet6 addr: fe80::221:63ff:fe30:e4c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:42 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6205 (6.0 KiB)  TX bytes:13295 (12.9 KiB)

–------

Unrelated, but I'm connected by USB/rndis to one phone which is
connected by WiFi to my other phone which has a sim in it.  And
writing in Libre Office Writer since Abiword doesn't work anymore.
But I'm booted into OpenBSD, my Linux is broken right now (again).

--
Credit is the root of all evil.  - AB1JX

Reply via email to