Re: zyd fails to associate with a network

2010-07-28 Thread Dmitrij D. Czarkoff
Maybe anyone knows how can I get any debugging information about my device?
I could try to solve it on my own if I understood where the error is...

Dmitrij D. Czarkoff czark...@gmail.com wrote:

 Hello!

 I'm trying to connect a wireless network on my ASUS R2Hv. Both the built-in
 and usb dongle wireless adapters are zyd-based:

 Asus WL-159g (built-in):
  $ usbdevs -vdf /dev/usb0 -a 3
  Controller /dev/usb0:
  addr 3: high speed, power 500 mA, config 1, USB2.0 WLAN(0x171b), 
 ASUS(0x0b05),
  rev 48.02
zyd0

 3COM 3CRUSB10075 (usb dongle):
  $ usbdevs -vdf /dev/usb0 -a 7 
  Controller /dev/usb0:
  addr 7: high speed, power 500 mA, config 1, USB2.0 WLAN(0x1215),
  ZyDAS(0x0ace), rev 48.10
zyd1

 zyd(4) mensions both as supported. They both attach as zyd0 and zyd1
 respectively. Scanning on them succeeds with my network being found, but
 connecting to it gives troubles:

 $ sudo ifconfig zyd0 scan  
 zyd0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:1d:60:62:59:ef
 priority: 4
 groups: wlan
 media: IEEE802.11 autoselect (DS1 mode 11g)
 status: no network
 ieee80211: nwid  100dBm
 nwid bedova chan 11 bssid 00:23:54:71:50:71 26dB 54M
 short_preamble,short_slottime 
 $ sudo ifconfig zyd0 nwid bedova 
 $ sudo ifconfig zyd0 
 zyd0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:1d:60:62:59:ef
 priority: 4
 groups: wlan
 media: IEEE802.11 autoselect (DS1 mode 11g)
 status: no network
 ieee80211: nwid bedova 100dBm
 inet6 fe80::21d:60ff:fe62:59ef%zyd0 prefixlen 64 scopeid 0x4
 $ sudo dhclient zyd0
 zyd0: no link . sleeping

 What can I do to further investigate the problem?



Re: zyd fails to associate with a network

2010-07-28 Thread damien . bergamini
| Maybe anyone knows how can I get any debugging information about my device?
| I could try to solve it on my own if I understood where the error is...

ifconfig zyd0 debug is usually a good start.

Damien



Re: zyd fails to associate with a network

2010-07-28 Thread Dmitrij D. Czarkoff
damien.bergam...@free.fr wrote:
 ifconfig zyd0 debug is usually a good start.

Thanks.

Actually, I didn't get anything I believe to be helpful.

So, my steps were:

# ifconfig zyd0 debug
# ifconfig zyd0 up
# ifconfig zyd0 scan
zyd0: flags=8847UP,BROADCAST,DEBUG,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:18:6e:35:fd:7f
priority: 4
groups: wlan
media: IEEE802.11 autoselect
status: no network
ieee80211: nwid  100dBm
nwid STREAM-15 chan 6 bssid 00:13:33:8a:03:bf 142dB 54M 
privacy,short_slottime 
nwid TheTail chan 6 bssid 00:14:d1:59:16:d3 143dB 54M 
privacy,short_preamble,short_slottime 
nwid TP-LINK chan 6 bssid 00:1d:0f:f3:1e:5b 156dB 54M 
privacy,short_preamble,short_slottime 
nwid kusso chan 6 bssid 00:1e:58:b8:99:2b 20dB 54M 
privacy,short_preamble,short_slottime 
nwid bedova chan 11 bssid 00:23:54:71:50:71 24dB 54M 
short_preamble,short_slottime 
# ifconfig zyd0 nwid bedova
# dhclient zyd0
zyd0: no link . sleeping
# ifconfig zyd0 down

The corresponding dmesg says:

zyd0 at uhub0 port 2 configuration 1 interface 0 ZyDAS USB2.0 WLAN rev 
2.00/48.10 addr 3
zyd0: HMAC ZD1211B, FW 47.25, RF AL2230, PA 0, address 00:18:6e:35:fd:7f
zyd0: begin active scan
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 2 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 3 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 4 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 5 mode 11g
zyd0: received beacon from 00:1e:58:b8:99:2b rssi 20 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 6 mode 11g
zyd0: received beacon from 00:14:d1:59:16:d3 rssi 143 mode 11g
zyd0: received beacon from 00:13:33:8a:03:bf rssi 140 mode 11g
zyd0: received beacon from 00:13:33:8a:03:bf rssi 142 mode 11g
zyd0: received beacon from 00:1d:0f:f3:1e:5b rssi 156 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 7 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 8 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 9 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 10 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 172 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 11 mode 11g
zyd0: received probe_resp from 00:23:54:71:50:71 rssi 161 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 24 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 24 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 12 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 156 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 162 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 161 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 13 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 14 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 1 mode 11g
zyd0: end active scan
zyd0: begin active scan
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 2 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 3 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 4 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 5 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 6 mode 11g
zyd0: received beacon from 00:13:33:8a:03:bf rssi 138 mode 11g
zyd0: received beacon from 00:14:d1:59:16:d3 rssi 119 mode 11g
zyd0: received beacon from 00:13:33:8a:03:bf rssi 137 mode 11g
zyd0: received beacon from 00:14:d1:59:16:d3 rssi 137 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 7 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 8 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 9 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 10 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 56 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 159 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 11 mode 11g
zyd0: received probe_resp from 00:23:54:71:50:71 rssi 160 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 30 mode 11g
zyd0: received beacon from 00:16:e3:f3:a3:ce rssi 147 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 147 mode 11g
zyd0: received beacon from 00:16:e3:f3:a3:ce rssi 25 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 20 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 12 mode 11g
zyd0: received beacon from 00:23:54:71:50:71 rssi 165 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 13 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 14 mode 11g
zyd0: sending probe_req to ff:ff:ff:ff:ff:ff on channel 1 mode 11g
zyd0: end active scan
zyd0: sending auth to 00:23:54:71:50:71 on channel 11 mode 11g
zyd0: received auth from 00:23:54:71:50:71 rssi 27 mode 11g
zyd0: sending assoc_req to 

Re: zyd fails to associate with a network

2010-07-28 Thread damien . bergamini
| So now I know that that:
| 
| 1. the association fails with status 25;
| 2. the drivers actively sends free-roaming requests during
| asssociation
| process while is requested to connect an exact network.
| 
| Where can I read what is association failed (status 25) and
| deauthenticate (reason 3)? Does anyone know what the problem is?

Status 25 is IEEE80211_STATUS_SHORTSLOT_REQUIRED.
It means that the access point refuses association from
clients that do not support short slot time.
zyd(4) does not have the IEEE80211_C_SHSLOT capability.
I'll try to see what is required to support that functionnality.
I suggest you submit a PR with sendbug so it does not get lost.

Damien



Re: zyd fails to associate with a network

2010-07-28 Thread Dmitrij D. Czarkoff
damien.bergam...@free.fr wrote:
 Status 25 is IEEE80211_STATUS_SHORTSLOT_REQUIRED.
 It means that the access point refuses association from
 clients that do not support short slot time.

Thanks!

While it's not a valid workaround, I've set my router up to long slot, so my
issue is resolved.

Still, could You please tell me where can I find that info without disturbing
developpers and mailing list memebers?

--
Dmitrij D. Czarkoff



Re: zyd fails to associate with a network

2010-07-28 Thread damien . bergamini
| Thanks!
| 
| While it's not a valid workaround, I've set my router up to long slot,
| so my issue is resolved.
| 
| Still, could You please tell me where can I find that info without
| disturbing developpers and mailing list memebers?

In the IEEE 802.11 standard or in /usr/src/sys/net80211/ieee80211.h
or /usr/include/net80211/ieee80211.h

Damien



zyd fails to associate with a network

2010-07-26 Thread Dmitrij D. Czarkoff
Hello!

I'm trying to connect a wireless network on my ASUS R2Hv. Both the built-in
and usb dongle wireless adapters are zyd-based:

Asus WL-159g (built-in):
 $ usbdevs -vdf /dev/usb0 -a 3
 Controller /dev/usb0:
 addr 3: high speed, power 500 mA, config 1, USB2.0 WLAN(0x171b), ASUS(0x0b05),
 rev 48.02
   zyd0

3COM 3CRUSB10075 (usb dongle):
 $ usbdevs -vdf /dev/usb0 -a 7 
 Controller /dev/usb0:
 addr 7: high speed, power 500 mA, config 1, USB2.0 WLAN(0x1215),
 ZyDAS(0x0ace), rev 48.10
   zyd1

zyd(4) mensions both as supported. They both attach as zyd0 and zyd1
respectively. Scanning on them succeeds with my network being found, but
connecting to it gives troubles:

$ sudo ifconfig zyd0 scan  
zyd0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
lladdr 00:1d:60:62:59:ef
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11g)
status: no network
ieee80211: nwid  100dBm
nwid bedova chan 11 bssid 00:23:54:71:50:71 26dB 54M
short_preamble,short_slottime 
$ sudo ifconfig zyd0 nwid bedova 
$ sudo ifconfig zyd0 
zyd0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
lladdr 00:1d:60:62:59:ef
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11g)
status: no network
ieee80211: nwid bedova 100dBm
inet6 fe80::21d:60ff:fe62:59ef%zyd0 prefixlen 64 scopeid 0x4
$ sudo dhclient zyd0
zyd0: no link . sleeping

What can I do to further investigate the problem?

OpenBSD 4.8-beta (GENERIC) #43: Sun Jul 25 10:07:23 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.00GHz (GenuineIntel 686-class) 1 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 1324707840 (1263MB)
avail mem = 1293062144 (1233MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/16/07, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.3 @ 0xf92f0 (36 entries)
bios0: vendor American Megatrends Inc. version 208 date 10/16/2007
bios0: ASUSTeK Computer Inc. R2H
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET SSDT
acpi0: wakeup devices LAN0(S4) P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
EUSB(S3) MC97(S4) AZAL(S3) PWRB(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 99MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus 1 (P0P1)
acpiprt3 at acpi0: bus 2 (P0P4)
acpiprt4 at acpi0: bus -1 (P0P5)
acpiprt5 at acpi0: bus -1 (P0P6)
acpiprt6 at acpi0: bus -1 (P0P7)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 105 degC
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0 model R2-2134 serial   type LIon oem ASUSTEK
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: CRTD
acpivout1 at acpivideo0: TVOD
acpivout2 at acpivideo0: LCDD
acpivideo1 at acpi0: VGA_
acpivout3 at acpivideo1: CRTD
acpivout4 at acpivideo1: TVOD
acpivout5 at acpivideo1: LCDD
bios0: ROM list: 0xc/0xea00!
cpu0: Enhanced SpeedStep 1078 MHz: speeds: 1000, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82915GM Host rev 0x04
vga1 at pci0 dev 2 function 0 Intel 82915GM Video rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at inteldrm0
Intel 82915GM Video rev 0x04 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04: apic 1 int 
16 (irq 11)
azalia0: codecs: Analog Devices/0x1986
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04: apic 1 int 16 
(irq 11)
pci1 at ppb0 bus 2
re0 at pci1 dev 0 function 0 Realtek 8101E rev 0x01: RTL8101E (0x3400), apic 
1 int 16 (irq 11), address 00:1d:60:38:96:0e
rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: apic 1 int 23 
(irq 5)
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: apic 1 int 19 
(irq 6)
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: apic 1 int 18 
(irq 3)
uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: apic 1 int 16 
(irq 11)
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: apic 1 int 23 
(irq 5)
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 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xd4
pci2 at ppb1 bus 1
sdhc0 at pci2 dev 1 function 0 Ricoh 5C822 SD/MMC rev 0x19: apic 1 int 17 
(irq 3)
sdmmc0