Hi! I have two AR9281 mini PCIe devices in my router, one on 5GHz and the other on 2.4GHz. The weird thing is, they act nice when only one of them is plugged in, but if both, one of them is acting iffy.
An example: I have these two hostname.if(5) files: hostname.athn0: ==========8<========== media autoselect mode 11g chan 10 nwid daniell wpakey _ wpaprotos wpa2 mediaopt hostap #nwflag hidenwid inet6 eui64 up ##!/sbin/ifconfig athn0 media autoselect mode auto mediaopt hostap #!/sbin/ifconfig athn0 chan 10 #!/sbin/ifconfig athn0 media autoselect mode 11g chan 10 mediaopt hostap ==========8<========== hostname.athn1: ==========8<========== media autoselect mode 11a chan 36 nwid daniell wpakey _ wpaprotos wpa2 mediaopt hostap #nwflag hidenwid inet6 eui64 up ==========8<========== athn1 comes up just fine, but athn0 gets configured only half-baked: athn0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 04:f0:21:_ index 5 priority 4 groups: wlan media: IEEE802.11 autoselect (autoselect mode 11a hostap) status: active ieee80211: nwid daniell chan 10 bssid 04:f0:21:_ wpakey _ wpaprotos wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip inet6 fe80::6f0:21ff:fe14:c78c%athn0 prefixlen 64 scopeid 0x5 athn1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 04:f0:21:_ index 6 priority 4 groups: wlan media: IEEE802.11 autoselect (autoselect mode 11a hostap) status: active ieee80211: nwid daniell chan 36 bssid 04:f0:21:_ wpakey _ wpaprotos wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip inet6 fe80::6f0:21ff:fe14:c837%athn1 prefixlen 64 scopeid 0x6 See how athn0 didn't get the 11g option? But after I reconfigure it with: # sh /etc/netstart athn0 # ifconfig athn0 athn0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 04:f0:21:_ index 5 priority 4 groups: wlan media: IEEE802.11 autoselect mode 11g hostap status: active ieee80211: nwid daniell chan 10 bssid 04:f0:21:_ wpakey 0x228bb445239a88219823bbd178a4ea26efd3b25acb33ac634fb70a1186238b1e wpaprotos wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip inet6 fe80::6f0:21ff:fe14:c78c%athn0 prefixlen 64 scopeid 0x5 ... athn0 gets configured properly. This is why there is a whole /sbin/ifconfig line at the end of the `hostname.athn0' file (although now commented out), so that it configures it (again) during boot. Btw, the identical essid is not by accident, it eases things for me. Nevertheless, I also tried it with different ones. This has actually been the case since I've been using these devices (for like 6 months or so), I just got around to write up this mail because now it has been bothering me well enough :) Not the worst thing -- I mean, it's not critical --, but if I can help debug this somehow, I'd be happy to. Daniel dmesg: OpenBSD 5.9-current (GENERIC.MP) #2013: Sat May 7 20:15:46 MDT 2016 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 2059997184 (1964MB) avail mem = 1992953856 (1900MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec130 (75 entries) bios0: vendor American Megatrends Inc. version "F2" date 08/06/2015 bios0: Gigabyte Technology Co., Ltd. H81M-DS2 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT SSDT SSDT MCFG HPET SSDT SSDT acpi0: wakeup devices PS2K(S3) PS2M(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Celeron(R) CPU G1840 @ 2.80GHz, 2793.91 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,XSAVE,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,ERMS,INVPCID,SENSOR,ARAT cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Celeron(R) CPU G1840 @ 2.80GHz, 2793.54 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,XSAVE,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,ERMS,INVPCID,SENSOR,ARAT cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (RP01) acpiprt2 at acpi0: bus 3 (RP03) acpiprt3 at acpi0: bus 4 (RP05) acpiprt4 at acpi0: bus 5 (RP06) acpiprt5 at acpi0: bus 1 (PEG0) acpiprt6 at acpi0: bus -1 (PEG1) acpiprt7 at acpi0: bus -1 (PEG2) acpiec0 at acpi0: not present acpicpu0 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpipwrres0 at acpi0: FN00, resource for FAN0 acpipwrres1 at acpi0: FN01, resource for FAN1 acpipwrres2 at acpi0: FN02, resource for FAN2 acpipwrres3 at acpi0: FN03, resource for FAN3 acpipwrres4 at acpi0: FN04, resource for FAN4 acpitz0 at acpi0: critical temperature is 105 degC acpitz1 at acpi0: critical temperature is 105 degC "INT3F0D" at acpi0 not configured "PNP0501" at acpi0 not configured acpibtn0 at acpi0: PWRB "INT3394" at acpi0 not configured "PNP0C0B" at acpi0 not configured "PNP0C0B" at acpi0 not configured "PNP0C0B" at acpi0 not configured "PNP0C0B" at acpi0 not configured "PNP0C0B" at acpi0 not configured acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: DD1F cpu0: Enhanced SpeedStep 2793 MHz: speeds: 2800, 2700, 2500, 2400, 2300, 2100, 2000, 1900, 1700, 1600, 1500, 1300, 1200, 1100, 900, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x06 ppb0 at pci0 dev 1 function 0 "Intel Core 4G PCIE" rev 0x06: msi pci1 at ppb0 bus 1 em0 at pci1 dev 0 function 0 "Intel I350" rev 0x01: msi, address 00:1b:21:_ em1 at pci1 dev 0 function 1 "Intel I350" rev 0x01: msi, address 00:1b:21:_ em2 at pci1 dev 0 function 2 "Intel I350" rev 0x01: msi, address 00:1b:21:_ em3 at pci1 dev 0 function 3 "Intel I350" rev 0x01: msi, address 00:1b:21:_ inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x06 drm0 at inteldrm0 inteldrm0: msi inteldrm0: 1360x768 wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, vt100 emulation) azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x06: msi azalia0: No codecs found "Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured ehci0 at pci0 dev 26 function 0 "Intel 8 Series USB" rev 0x05: apic 8 int 16 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb1 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xd5: msi pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 2 "Intel 8 Series PCIE" rev 0xd5: msi pci3 at ppb2 bus 3 ppb3 at pci0 dev 28 function 4 "Intel 8 Series PCIE" rev 0xd5: msi pci4 at ppb3 bus 4 athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 8 int 16 athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 04:f0:21:_ ppb4 at pci0 dev 28 function 5 "Intel 8 Series PCIE" rev 0xd5: msi pci5 at ppb4 bus 5 athn1 at pci5 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 8 int 17 athn1: AR9280 rev 2 (2T2R), ROM rev 22, address 04:f0:21:_ ehci1 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x05: apic 8 int 23 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 pcib0 at pci0 dev 31 function 0 "Intel H81 LPC" rev 0x05 ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x05: msi, AHCI 1.3 ahci0: port 0: 6.0Gb/s ahci0: port 1: 6.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: <ATA, KINGSTON SHFS37A, 608A> SCSI3 0/direct fixed naa.50026b726304fbe2 sd0: 114473MB, 512 bytes/sector, 234441648 sectors, thin sd1 at scsibus1 targ 1 lun 0: <ATA, KINGSTON SHFS37A, 608A> SCSI3 0/direct fixed naa.50026b726304fb22 sd1: 114473MB, 512 bytes/sector, 234441648 sectors, thin ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x05: apic 8 int 18 iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.05 addr 2 uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.05 addr 2 uhidev0 at uhub3 port 2 configuration 1 interface 0 "SINO WEALTH USB KEYBOARD" rev 1.10/1.00 addr 3 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub3 port 2 configuration 1 interface 1 "SINO WEALTH USB KEYBOARD" rev 1.10/1.00 addr 3 uhidev1: iclass 3/0, 5 report ids uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0 uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0 uhid2 at uhidev1 reportid 5: input=0, output=0, feature=5 uhidev2 at uhub3 port 3 configuration 1 interface 0 "American Power Conversion Back-UPS XS 1400U FW:926.T1 .I USB FW:T1" rev 1.10/1.06 addr 4 uhidev2: iclass 3/0, 123 report ids upd0 at uhidev2 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed sd2: 114470MB, 512 bytes/sector, 234435953 sectors root on sd2a (59f8b4a610bc10ff.a) swap on sd2b dump on sd2b pppoe0: received unexpected PADO pppoe0: received unexpected PADO uhidev0 at uhub3 port 1 configuration 1 interface 0 "SINO WEALTH USB KEYBOARD" rev 1.10/1.00 addr 3 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub3 port 1 configuration 1 interface 1 "SINO WEALTH USB KEYBOARD" rev 1.10/1.00 addr 3 uhidev1: iclass 3/0, 5 report ids uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0 uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0 uhid2 at uhidev1 reportid 5: input=0, output=0, feature=5 upd0 detached uhidev2 detached uhidev2 at uhub3 port 3 configuration 1 interface 0 "American Power Conversion Back-UPS XS 1400U FW:926.T1 .I USB FW:T1" rev 1.10/1.06 addr 4 uhidev2: iclass 3/0, 123 report ids upd0 at uhidev2 uhub3: illegal enable change, port 3 upd0 detached uhidev2 detached uhub3: device problem, disabling port 3 uhub3: port error, restarting port 3 uhidev2 at uhub3 port 3 configuration 1 interface 0 "American Power Conversion Back-UPS XS 1400U FW:926.T1 .I USB FW:T1" rev 1.10/1.06 addr 4 uhidev2: iclass 3/0, 123 report ids upd0 at uhidev2 uhub3: illegal enable change, port 3 -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F