Re: Wireless not working with Linksys

2017-09-23 Thread Timo Myyrä
Stefan Sperling  writes:

> On Sat, Sep 23, 2017 at 12:18:22PM +0300, Timo Myyrä wrote:
>> $ doas ifconfig iwn0 scan | grep MyNet
>> nwid MyNet chan 11 bssid xx:xx:xx:xx:xx:xx -21dBm HT-MCS23 
>> privacy,short_preamble,short_slottime,wpa2,wpa1 
>
> Try disabling WPA1 on your AP. In your AP's configuration,
> look for config items such as "WPA2", "CCMP", "AES" and enable them.
> Disable anything labeled "WPA1" and/or "TKIP".

Ah, this worked. Switched the AP security mode from "WPA2/WPA Personal mixed" to
"WPA2 Personal" and now I can associate and get DHCP lease from the AP. 

Seems the wpa1 support is needed when the AP is supporting both in order to
negotiate which mode to support.

Timo



Re: Wireless not working with Linksys

2017-09-23 Thread Stuart Henderson
On 2017-09-23, Timo Myyrä  wrote:
> "Ted Unangst"  writes:
>
>> TimoMyyrä wrote:
>>
>>> I just got Linksys 1900ACS wireless router and it works great, except with
>>> OpenBSD. I've got Thinkpad T430s running -current and I can't get DHCP 
>>> lease from the new
>>> router. 
>>> I noticed lines: "dhclient[22294]: fatal in iwn0: yielding responsibility" 
>>> in
>>> messages file which might be relating to this.
>>> 
>>> Any ideas what could be the problem and how to begin debugging this further?
>>
>> Does it work with 6.0? Does the network appear in scan?
>
> Haven't tested the older release, as I said just got the new router.
> I can try later with older bsd.rd to see if it works with it.
>
> But scan results see the 2.4Ghz network but not the 5Ghz network:
>
> $ doas ifconfig iwn0 scan | grep MyNet
> nwid MyNet chan 11 bssid xx:xx:xx:xx:xx:xx -21dBm HT-MCS23 
> privacy,short_preamble,short_slottime,wpa2,wpa1 
>
>
> timo
>
>

- does it associate or not? (Paste output from just "ifconfig iwn0")

- what shows up in logs if you do "ifconfig iwn0 debug" and then
"ifconfig iwn0 scan" ?

- it might be useful to capture some beacons:

 tcpdump -n -s 4096 -y IEEE802_11_RADIO -v type mgt subtype beacon -i iwn0



Re: Wireless not working with Linksys

2017-09-23 Thread Stefan Sperling
On Sat, Sep 23, 2017 at 12:18:22PM +0300, Timo Myyrä wrote:
> $ doas ifconfig iwn0 scan | grep MyNet
> nwid MyNet chan 11 bssid xx:xx:xx:xx:xx:xx -21dBm HT-MCS23 
> privacy,short_preamble,short_slottime,wpa2,wpa1 

Try disabling WPA1 on your AP. In your AP's configuration,
look for config items such as "WPA2", "CCMP", "AES" and enable them.
Disable anything labeled "WPA1" and/or "TKIP".



Re: Wireless not working with Linksys

2017-09-23 Thread Ted Unangst
TimoMyyrä wrote:
> > But scan results see the 2.4Ghz network but not the 5Ghz network:
> >
> > $ doas ifconfig iwn0 scan | grep MyNet
> > nwid MyNet chan 11 bssid xx:xx:xx:xx:xx:xx -21dBm HT-MCS23 
> > privacy,short_preamble,short_slottime,wpa2,wpa1 
> >
> >
> > timo
> 
> Actually, did quick test and seems that I can get link and ip when booting 6.0
> bsd.rd.

Not that this is much help, but the reason I asked is I have (had) an AP (made
by WD) with a similar problem. Worked without problems with 6.0, then sometime
after that the new 802.11n code made it disappear. Can't associate, can't see
the AP at all in ifconfig scan. The problem is unresolved (I ended up
replacing the AP). There is a particular kind of packet which seems to be
"invisible". But I'm out of my depth. Nobody else had seen this, but you
appear to be the lucky second victim.



Re: Wireless not working with Linksys

2017-09-23 Thread Timo Myyrä
timo.my...@wickedbsd.net (Timo Myyrä) writes:

> "Ted Unangst"  writes:
>
>> TimoMyyrä wrote:
>>
>>> I just got Linksys 1900ACS wireless router and it works great, except with
>>> OpenBSD. I've got Thinkpad T430s running -current and I can't get DHCP 
>>> lease from the new
>>> router. 
>>> I noticed lines: "dhclient[22294]: fatal in iwn0: yielding responsibility" 
>>> in
>>> messages file which might be relating to this.
>>> 
>>> Any ideas what could be the problem and how to begin debugging this further?
>>
>> Does it work with 6.0? Does the network appear in scan?
>
> Haven't tested the older release, as I said just got the new router.
> I can try later with older bsd.rd to see if it works with it.
>
> But scan results see the 2.4Ghz network but not the 5Ghz network:
>
> $ doas ifconfig iwn0 scan | grep MyNet
> nwid MyNet chan 11 bssid xx:xx:xx:xx:xx:xx -21dBm HT-MCS23 
> privacy,short_preamble,short_slottime,wpa2,wpa1 
>
>
> timo

Actually, did quick test and seems that I can get link and ip when booting 6.0
bsd.rd.

Timo



Re: Wireless not working with Linksys

2017-09-23 Thread Timo Myyrä
"Ted Unangst"  writes:

> TimoMyyrä wrote:
>
>> I just got Linksys 1900ACS wireless router and it works great, except with
>> OpenBSD. I've got Thinkpad T430s running -current and I can't get DHCP lease 
>> from the new
>> router. 
>> I noticed lines: "dhclient[22294]: fatal in iwn0: yielding responsibility" in
>> messages file which might be relating to this.
>> 
>> Any ideas what could be the problem and how to begin debugging this further?
>
> Does it work with 6.0? Does the network appear in scan?

Haven't tested the older release, as I said just got the new router.
I can try later with older bsd.rd to see if it works with it.

But scan results see the 2.4Ghz network but not the 5Ghz network:

$ doas ifconfig iwn0 scan | grep MyNet
nwid MyNet chan 11 bssid xx:xx:xx:xx:xx:xx -21dBm HT-MCS23 
privacy,short_preamble,short_slottime,wpa2,wpa1 


timo



Re: Wireless not working with Linksys

2017-09-23 Thread Mark Carroll
On 23 Sep 2017, Timo Myyrä wrote:

> I just got Linksys 1900ACS wireless router and it works great, except with
> OpenBSD. I've got Thinkpad T430s running -current and I can't get DHCP lease 
> from the new
> router. 
> I noticed lines: "dhclient[22294]: fatal in iwn0: yielding responsibility" in
> messages file which might be relating to this.
>
> Any ideas what could be the problem and how to begin debugging this further?

Could try disabling some of the fancier wifi features / variants on
the WAP to see if it then starts working better - there's sometimes
a workaround or clue in the outcome of that.

-- Mark



Re: Wireless not working with Linksys

2017-09-23 Thread Ted Unangst
TimoMyyrä wrote:
> I just got Linksys 1900ACS wireless router and it works great, except with
> OpenBSD. I've got Thinkpad T430s running -current and I can't get DHCP lease 
> from the new
> router. 
> I noticed lines: "dhclient[22294]: fatal in iwn0: yielding responsibility" in
> messages file which might be relating to this.
> 
> Any ideas what could be the problem and how to begin debugging this further?

Does it work with 6.0? Does the network appear in scan?



Wireless not working with Linksys

2017-09-23 Thread Timo Myyrä
Hi,

I just got Linksys 1900ACS wireless router and it works great, except with
OpenBSD. I've got Thinkpad T430s running -current and I can't get DHCP lease 
from the new
router. 
I noticed lines: "dhclient[22294]: fatal in iwn0: yielding responsibility" in
messages file which might be relating to this.

Any ideas what could be the problem and how to begin debugging this further?

Timo


OpenBSD 6.2-beta (RAMDISK_CD) #103: Mon Sep 18 23:35:48 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 16973611008 (16187MB)
avail mem = 16455442432 (15693MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdae9c000 (68 entries)
bios0: vendor LENOVO version "G7ETA4WW (2.64 )" date 10/08/2015
bios0: LENOVO 2355C16
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SLIC TCPA SSDT SSDT SSDT HPET APIC MCFG ECDT FPDT ASF! 
UEFI UEFI POAT SSDT SSDT DMAR UEFI DBG2
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz, 2594.57 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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2594566800 Hz
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus 4 (EXP3)
acpiprt5 at acpi0: bus -1 (EXP5)
acpiprt6 at acpi0: bus -1 (EXP6)
acpiprt7 at acpi0: bus -1 (EXP7)
acpiprt8 at acpi0: bus -1 (EXP8)
acpicpu at acpi0 not configured
acpipwrres at acpi0 not configured
acpitz at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
"LEN0071" at acpi0 not configured
"LEN0015" at acpi0 not configured
"SMO1200" at acpi0 not configured
"PNP0C0A" at acpi0 not configured
"ACPI0003" at acpi0 not configured
"LEN0078" at acpi0 not configured
"LEN0068" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
"Intel HD Graphics 4000" rev 0x09 at pci0 dev 2 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 7 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 
addr 1
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address 
3c:97:0e:60:8d:ca
ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
"Intel 7 Series HD Audio" rev 0x04 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Centrino Advanced-N 6205" rev 0x34: msi, 
MIMO 2T2R, MoW, address 60:67:20:f8:17:f4
ppb2 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi
pci3 at ppb2 bus 4
sdhc0 at pci3 dev 0 function 0 "Ricoh 5U823 SD/MMC" rev 0x04: apic 2 int 18
sdhc0: SDHC 3.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed
ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
"Intel QM77 LPC" rev 0x04 at pci0 dev 31 function 0 not configured
ahci0 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 1.5Gb/s
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct fixed 
naa.50025388400c34c6
sd0: 488386MB, 512 bytes/sector, 1000215216 sectors, thin
cd0 at scsibus0 targ 1 lun 0:  ATAPI 5/cdrom 
removable
"Intel 7 Series SMBus" rev 0x04 at pci0 dev 31 function 3 not configured
isa0 at mainbus0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
efifb0 at mainbus0: 1600x900, 32bpp
wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
"Lenovo H5321 gw" rev 2.00/0.00 addr 2 at uhub0 port 4 not configured
uhub3 at uhub1 port 1 configuration 1 interface 0 "vendor 0x8087 product 
0x0024" rev 2.00/0.00 addr 2
"Lenovo Integrated Smart Card