Re: urtw0 wpa2 working on Lemote?

2014-02-06 Thread Sebastian Reitenbach
On Wednesday, February 5, 2014 22:15 CET, Alexey Suslikov 
alexey.susli...@gmail.com wrote: 
 
 Sebastian Reitenbach sebastia at l00-bugdead-prods.de writes:
  Anyways, at work I specify the nwid and the wpakey like this:
  
  ifconfig urtw0 nwid MYID wpakey SECRETKEY up
  
  but status keeps telling me: no network
  however, the manual page tells me that WPA and WPA2 should work.
 
 from ifconfig(8):
 
 wpakey passphrase | hexkey
Set the WPA key and enable WPA.  The key can be given using
either a passphrase or a full length hex key, starting with 0x.
If a passphrase is used the nwid option must be set prior to
specifying the wpakey option, since ifconfig will hash the nwid
along with the passphrase to create the key.
 

stupid /me. I was fairly sure that I also tried it manually, setting the
different values with different commands. I tried it now with a clean boot
in the correct order and it just works.
Thanks for cluebatting ;)

The only thing I still wonder is why all networks I see from a scan
show 143 dB network strength.

Sebastian



urtw0 wpa2 working on Lemote?

2014-02-05 Thread Sebastian Reitenbach
Hi,

with my lemote, I tried to connect to WPA2 secured network at work.
Now I'm back at home, where I can connect without issues to 
my unsecured network.

When scanning for WLAN networks using my amd64 notebook, 
I usually see different dB values, but here, every network is 
143 dB signal strength. Is this a known limitation to the urtw driver?

# ifconfig urtw0 scan   
 
urtw0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
lladdr 00:17:c4:5a:1f:d4
priority: 4
groups: wlan
media: IEEE802.11 autoselect
status: no network
ieee80211: nwid  100dBm
nwid brb.freifunk.net chan 1 bssid 00:11:09:9a:9a:7e 143dB 11M 
short_preamble 
nwid FRITZ!Box Fon WLAN 7170 chan 6 bssid 00:1c:4a:d5:eb:16 
143dB 54M privacy,short_slottime 
nwid FRITZ!Box Fon WLAN 7240 chan 1 bssid 00:1f:3f:d1:48:d2 
143dB 54M privacy,short_preamble,short_slottime 
nwid WLAN-6E1076 chan 6 bssid 88:25:2c:6e:10:91 143dB 54M 
privacy,short_preamble,short_slottime 
nwid FRITZ!Box Fon WLAN 7320 chan 11 bssid bc:05:43:f8:e9:49 
143dB 54M privacy,short_preamble,short_slottime 
nwid Triple X chan 11 bssid c0:25:06:2e:d6:7e 143dB 54M 
privacy,short_slottime 
nwid Demiurge chan 11 bssid e8:40:f2:16:5c:23 143dB 54M 
privacy,short_slottime 

Anyways, at work I specify the nwid and the wpakey like this:

ifconfig urtw0 nwid MYID wpakey SECRETKEY up

but status keeps telling me: no network
however, the manual page tells me that WPA and WPA2 should work.

any ideas?

Sebastian


# dmesg
[ using 489112 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2014 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.5-beta (GENERIC) #2: Tue Feb  4 11:37:08 CET 2014
root@loong.ds9:/usr/src/sys/arch/loongson/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1058816000 (1009MB)
mainbus0 at root: Lemote Yeeloong
cpu0 at mainbus0: STC Loongson2F CPU 797 MHz, STC Loongson2F FPU
cpu0: cache L1-I 64KB D 64KB 4 way, L2 512KB 4 way
bonito0 at mainbus0: memory and PCI-X controller, rev 1
pci0 at bonito0 bus 0
rl0 at pci0 dev 7 function 0 Realtek 8139 rev 0x10: irq 5, address 
00:23:8b:b5:37:62
rlphy0 at rl0 phy 0: RTL internal PHY
smfb0 at pci0 dev 8 function 0 Silicon Motion LynxEM+ rev 0xb0
wsdisplay0 at smfb0 mux 1: console (std, vt100 emulation)
ohci0 at pci0 dev 9 function 0 NEC USB rev 0x44: irq 7, version 1.0
ehci0 at pci0 dev 9 function 1 NEC USB rev 0x05: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NEC EHCI root hub rev 2.00/1.00 addr 1
glxpcib0 at pci0 dev 14 function 0 AMD CS5536 ISA rev 0x03: rev 3, 32-bit 
3579545Hz timer, watchdog, gpio, i2c
isa0 at glxpcib0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
mcclock0 at isa0 port 0x70/2: mc146818 or compatible
ykbec0 at isa0 port 0x381/3
gpio1 at glxpcib0: 32 pins
iic at glxpcib0 not configured
glxclk0 at glxpcib0: clock, prof
pciide0 at pci0 dev 14 function 2 AMD CS5536 IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: SanDisk pSSD 8GB
wd0: 4-sector PIO, LBA, 7815MB, 16007040 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
auglx0 at pci0 dev 14 function 3 AMD CS5536 Audio rev 0x01: isa irq 9, CS5536 
AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auglx0
ohci1 at pci0 dev 14 function 4 AMD CS5536 USB rev 0x02: isa irq 11, version 
1.0, legacy support
ehci1 at pci0 dev 14 function 5 AMD CS5536 USB rev 0x02: isa irq 11
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 AMD EHCI root hub rev 2.00/1.00 addr 1
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 NEC OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 AMD OHCI root hub rev 1.00/1.00 addr 1
apm0 at mainbus0
umass0 at uhub1 port 1 configuration 1 interface 0 Generic USB2.0-CRW rev 
2.00/58.87 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: Generic-, Multi-Card, 1.00 SCSI0 0/direct 
removable serial.0bda015811417340
urtw0 at uhub1 port 4 Realtek RTL8187B rev 2.00/2.00 addr 3
urtw0: RTL8187B rev E, address 00:17:c4:5a:1f:d4
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
pmon bootpath: /dev/disk/wd0
boot device: wd0
root on wd0a (4ce70288f4ecaf0f.a) swap on wd0b dump on wd0b



Re: urtw0 wpa2 working on Lemote?

2014-02-05 Thread Alexey Suslikov
Sebastian Reitenbach sebastia at l00-bugdead-prods.de writes:
 Anyways, at work I specify the nwid and the wpakey like this:
 
 ifconfig urtw0 nwid MYID wpakey SECRETKEY up
 
 but status keeps telling me: no network
 however, the manual page tells me that WPA and WPA2 should work.

from ifconfig(8):

wpakey passphrase | hexkey
   Set the WPA key and enable WPA.  The key can be given using
   either a passphrase or a full length hex key, starting with 0x.
   If a passphrase is used the nwid option must be set prior to
   specifying the wpakey option, since ifconfig will hash the nwid
   along with the passphrase to create the key.