Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout
Hello, first of all I want to wish everyone on the list a happy new year and best wishes. I have now checked hardware: card has contact and ground, removed sma cabling, checked for defective contacts on sma and antennas. Everything seems ok. Installed fresh 5.9-current (2015-12-28) Installed cat6 network cable from homerouter to APU2 at em0 Left network config off 10.3.12.45 homerouter as default gw and nameserver 10.3.12.70 APU2 em0 fixed IP 10.10.10.1 APU2 athn0 wifi hostap IP Did echo "pf=\"NO\"" > /etc/rc.conf.local pfctl -d ifconfig em0 inet 10.3.12.70 netmask 255.255.255.0 up route add default 10.3.12.45 echo nameserver 10.3.12.45 > /etc/resolv.conf ping 10.3.12.45 works traceroute google.de works Did ifconfig athn0 inet 10.10.10.1 netmask 255.255.255.0 \ media autoselect mediaopt hostap nwid APU2TestNet \ wpakey my-Socks!are-GREY chan 1 up Result: athn0: Device timeout ifconfig athn0 switches between chan 1 (status: active) and chan 36 (status: no network) ifconfig athn0 debug shows athn0: creating ibss athn0: synchronized with 04:f0:21:14:ca:c0 ssid "APU2TestNet" channel 1 start 1Mb short preamble long slot time Is the card, sma cabling or the antennas defect? Driver problem? Anyone else with this problem? Friendly regards, Stefan -Ursprüngliche Nachricht- Von: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] Im Auftrag von Kapfhammer, Stefan Gesendet: Mittwoch, 30. Dezember 2015 21:22 An: Mihai Popescu ; misc@openbsd.org Betreff: Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout Hello Mihai, I installed the current snapshot 2015-12-28 and the corresponding athn-firmware for 5.9 Here is the output from dmesg and the debug output from 'ifconfig athn0 debug' 'ifconfig athn0 scan' got result 'none' but I am connected with my BlackBerry Classic and my notebook (Toshiba Portege Z930-12J). The scan with my NB shows 7 active AP's. I got the same error 'athn0: Device timeout' with -current. Here are the outputs. Friendly regards, Stefan --dmesg-- OpenBSD 5.9-beta (GENERIC.MP) #1783: Sun Dec 27 17:08:42 MST 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4261076992 (4063MB) avail mem = 4127813632 (3936MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries) bios0: vendor coreboot version "APU2A_20150928-13-gdfdf4a2-dirty" date 11/06/2015 bios0: PC Engines apu2 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S2 S3 S4 S5 acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4) UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD GX-412TC SOC, 998.25 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU S H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POP C NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AM C R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD GX-412TC SOC, 998.14 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU S H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POP C NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AM C R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD GX-412TC SOC, 998.14 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU S H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POP C NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AM C R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu2: smt 0, core 2, package 0 cpu3 at mainbus0:
Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout
> 'ifconfig athn0 scan' got result 'none' > The scan with my NB shows 7 active AP's. If those APs support n mode only, I don't think you will see them. Be sure at least yours is /a/b/g.
Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout
Hello Mihai, I installed the current snapshot 2015-12-28 and the corresponding athn-firmware for 5.9 Here is the output from dmesg and the debug output from 'ifconfig athn0 debug' 'ifconfig athn0 scan' got result 'none' but I am connected with my BlackBerry Classic and my notebook (Toshiba Portege Z930-12J). The scan with my NB shows 7 active AP's. I got the same error 'athn0: Device timeout' with -current. Here are the outputs. Friendly regards, Stefan --dmesg-- OpenBSD 5.9-beta (GENERIC.MP) #1783: Sun Dec 27 17:08:42 MST 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4261076992 (4063MB) avail mem = 4127813632 (3936MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries) bios0: vendor coreboot version "APU2A_20150928-13-gdfdf4a2-dirty" date 11/06/2015 bios0: PC Engines apu2 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S2 S3 S4 S5 acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4) UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD GX-412TC SOC, 998.25 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMC R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD GX-412TC SOC, 998.14 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMC R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD GX-412TC SOC, 998.14 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMC R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: AMD GX-412TC SOC, 998.14 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMC R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1 cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 16-way L2 cache cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 4 pa 0xfec0, version 21, 24 pins ioapic1 at mainbus0: apid 5 pa 0xfec2, version 21, 32 pins ioapic1: misconfigured as apic 0, remapped to apid 5 acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (PBR4) acpiprt2 at acpi0: bus 2 (PBR5) acpiprt3 at acpi0: bus 3 (PBR6) acpiprt4 at acpi0: bus 4 (PBR7) acpiprt5 at acpi0: bus -1 (PBR8) acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS acpibtn0 at acpi0: PWRB cpu0: 998 MHz: speeds: 1000 800 600 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Root Complex" rev 0x00 pchb1 at pci0 dev 2 function 0 "AMD AMD64 16h Host" rev 0x00 ppb0 at pci0 dev 2 function 1 "AMD AMD64 16h PCIE" rev 0x00: msi pci1 at ppb0 bus 1 athn0 at pci1 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4 int 16 athn
Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout
Hello Mihai, thank you for the anwer. I will support of course the community and the developers with logs and outputs, to improve the OS and the corresponding drivers. At the moment I'm in vacation and have only access to a minimal equipment. (Notebook, APU, AP) Next week, things will go much easier, but I will try to test in that spare time - I AM STILL ADDICTED TO OPENBSD 8-;) and it's security concepts! Friendly regards, Stefan Originalnachricht Von: Mihai Popescu Gesendet: Mittwoch, 30. Dezember 2015 00:34 An: misc@openbsd.org Betreff: Re: wle200nx WiFi card on apu2b4 - no link > seems that I am not alone. This can be changed. But you and other users need to provide some information. Try a snapshot install and simple commands like: $ ifconfig athn0 scan (this scans for available WiFi networks) $ ifconfig athn0 debug (enable debug mode) Be sure your AP is accesible and fully functional, if you can provide some info about AP, too. Test it with other client. If it is not a standard one, check for not so common settings, forced modes, etc...
Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout
Hello Chris, thank you for giving deeper insights, how the driver works. Would you give me some advise, in which order I have to set the commands in hostname.athn0 for accessing an access point (AVM FritzBox 7490). This is only for setup, testing and configuration. Later on, this box will be connected to a VDSL2 bridge modem as an AP, NAS, FW, IPsec VPN Srv and PS. But first I have to check, that the OpenBSD works with all components of the APU2b4 system board and it's mounted cards. Thank you in advance. Friendly regards, Stefan Originalnachricht Von: Chris Cappuccio Gesendet: Mittwoch, 30. Dezember 2015 00:54 An: Mihai Popescu Cc: misc@openbsd.org Betreff: Re: wle200nx WiFi card on apu2b4 - no link Mihai Popescu [mih...@gmail.com] wrote: > > -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4 int 16 > > -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address > > AR9281 and AR9280 are two different chips as they are listed in the man page. > Why does your dmesg report 2 chips? One is based on the PCI device ID, one is based on the internal card identifier used by the driver. You'll have to examine the driver to understand what implication this has. The ath and athn drivers are both finicky and require specific combinations of settings, set in a particular order, to work properly.
Re: wle200nx WiFi card on apu2b4 - athn0: device timeout
Hello Dániel, thank you for your reply. I changed from PCIe slot 1 to PCie slot 2 - same result. got athn0: device timeout. (Sorry forgot the "n" in error msg in first post) I tried also to set media with - media autoselect - media autoselect mode 11g - media DS1 mode 11g but won't work. I will give -current a try, but that's not the right way for a production system. Friendly regards, Stefan -Ursprüngliche Nachricht- Von: LÉVAI Dániel [mailto:l...@ecentrum.hu] Gesendet: Montag, 28. Dezember 2015 15:10 An: Kapfhammer, Stefan Cc: misc@openbsd.org Betreff: Re: wle200nx WiFi card on apu2b4 - no link Kapfhammer, Stefan @ 2015-12-27T22:44:09 +0100: > Good evening, > > I cannot access hotspot with apu2b4's wle200nx wifi card. > > got ath0: device timeout [...] How come it's not athn? Is this the full and only error message? >From athn(4): athn0: device timeout A frame dispatched to the hardware for transmission did not complete in time. The driver will reset the hardware. This should not happen. Can you try the minipcie card in an other board, or switch minipcie slots? [...] > -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic > -> 4 int 16 > -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address [...] > # ifconfig > > athn0: flags=8843 mtu 1500 > lladdr > priority: 4 > groups: wlan > media: IEEE802.11 autoselect (OFDM6 mode 11a) > status: no network > ieee80211: nwid chan 9 wpakey 0x > wpaprotos > wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher tkip > > # cat /etc/hostname.athn0 > > nwid TESTNET > wpakey 'Do!Not-deal+w1th-IT' > dhcp I'm using exactly the same minipcie card, in almost the same board (apu1d), only with -current, and in hostap mode. Just off the top of my head, you could try to set media to autoselect, and make sure that you use the right mode: # ifconfig athn0 media [...] supported media: media autoselect media autoselect mediaopt hostap media autoselect mediaopt monitor media autoselect mode 11a media autoselect mode 11a mediaopt hostap media autoselect mode 11a mediaopt monitor media autoselect mode 11b media autoselect mode 11b mediaopt hostap media autoselect mode 11b mediaopt monitor media autoselect mode 11g media autoselect mode 11g mediaopt hostap media autoselect mode 11g mediaopt monitor The one and only problem with my WLE card was that I set the mode to 11g before setting it to a 5GHz channel, and that combo does not exist, and I could not set it back without a reboot. But other than that, it is performing really well, set to 11a and 5GHz. Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]