Re: [gentoo-user] wpa_supplicant confusion

2008-06-09 Thread Jonathan Fosburgh


On Friday 06 June 2008 14:36:14 Mick wrote:


 Yep.  I did manage to get it working with wpa_supplicant (or so I
 thought . . . )

 # lsmod | grep rt2
 rt2500usb  21728  0
 rt2x00usb   8576  1 rt2500usb
 rt2x00lib  14944  2 rt2500usb,rt2x00usb

 Am I on a hiding to nothing?  I thought that if it made it into the kernel
 it would be alright to use.  When I was downloading the rt2x00 from cvs it
 was a bit of a hit and miss affair.


The rt2x00 driver works for some chipsets, but the rt2500usb doesn't seem to 
work at all.  If you check the kernel config you may still see it marked as 
experimental.  Better to use a CVS build (not in portage IIRC) of rt2570 and a 
current kernel than to try with rt2500usb at this time.  That is what I am 
doing, with wpa using the iwpriv commands.
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] wpa_supplicant confusion

2008-06-06 Thread Mick
I am not sure I can explain this:

I can connect to an AP (using WEP), but only after I run

# iwconfig wlan0 ap auto

Within the next few seconds I get an IP via dhcpcd and I can immediately 
connect to the Internet, but very unreliably.  Within a few seconds it seems 
that the link goes down, i.e. I can no longer ping Internet addresses, or the 
AP, despite iwconfig showing that all is fine connection wise:

# iwconfig wlan0
wlan0 IEEE 802.11g  ESSID:daddy  
  Mode:Managed  Frequency:2.442 GHz  Access Point: 00:18:4D:AE:55:2C   
  Bit Rate=12 Mb/s   Tx-Power=27 dBm   
  Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
  Encryption key:8B7B-9671-89
  Link Quality=31/100  Signal level=-56 dBm  
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wpa_cli also shows that the connection is OK:

 status
bssid=00:18:4d:ae:55:2c
ssid=daddy
id=2
pairwise_cipher=WEP-40
group_cipher=WEP-40
key_mgmt=NONE
wpa_state=COMPLETED
ip_address=192.168.0.9

Ping-ing the AP has some ridiculous latency, or it fails completely:

$ ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=6737 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=6725 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=255 time=7736 ms

--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2009ms
rtt min/avg/max/mdev = 6725.875/7066.811/7736.602/473.648 ms, pipe 3

This is what's in the wpa_supplicant conf:

network={
   ssid=daddy
   bssid=00:18:4D:AE:55:2C
   key_mgmt=NONE
#   mode=managed
   wep_key0=8B7B967189
#   wep_key1=BA6889DB39
#   wep_key2=D3D68AA753
#   wep_key3=35116656AB
   wep_tx_keyidx=0
   group=WEP40
   priority=4
}

Any idea?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] wpa_supplicant confusion

2008-06-06 Thread Michal 'vorner' Vaner
Hello

On Fri, Jun 06, 2008 at 06:15:11PM +0100, Mick wrote:
 wlan0 IEEE 802.11g  ESSID:daddy  
   Mode:Managed  Frequency:2.442 GHz  Access Point: 00:18:4D:AE:55:2C  
  
   Bit Rate=12 Mb/s   Tx-Power=27 dBm   
   Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
   Encryption key:8B7B-9671-89
   Link Quality=31/100  Signal level=-56 dBm  

I do not know your card, but mine works with link quality above 60/100,
below that doesn't do much. The ping times are because there are
link-level retransmits, so it tries many times and it sometimes
succeeds.

If you get closer to the AP, is it still a problem?

-- 
All flame and insults will go to /dev/null (if they fit)

Michal 'vorner' Vaner


pgp5u8KSLjqAc.pgp
Description: PGP signature


Re: [gentoo-user] wpa_supplicant confusion

2008-06-06 Thread Jonathan Fosburgh


On Friday 06 June 2008 12:15:11 Mick wrote:


 Within the next few seconds I get an IP via dhcpcd and I can immediately
 connect to the Internet, but very unreliably.  Within a few seconds it
 seems that the link goes down, i.e. I can no longer ping Internet
 addresses, or the AP, despite iwconfig showing that all is fine connection
 wise:


What driver are you using? This sounds a lot like what rt2500usb (part of the 
rt2x00 project) does, when it associates with an AP at all

BTW, did you really send your wep keys to the world? :) You may want to change 
them...

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] wpa_supplicant confusion

2008-06-06 Thread Mick
On Friday 06 June 2008, Michal 'vorner' Vaner wrote:
 Hello

 On Fri, Jun 06, 2008 at 06:15:11PM +0100, Mick wrote:
  wlan0 IEEE 802.11g  ESSID:daddy
Mode:Managed  Frequency:2.442 GHz  Access Point:
  00:18:4D:AE:55:2C Bit Rate=12 Mb/s   Tx-Power=27 dBm
Retry min limit:7   RTS thr:off   Fragment thr=2346 B
Encryption key:8B7B-9671-89
Link Quality=31/100  Signal level=-56 dBm

 I do not know your card, but mine works with link quality above 60/100,
 below that doesn't do much. The ping times are because there are
 link-level retransmits, so it tries many times and it sometimes
 succeeds.

 If you get closer to the AP, is it still a problem?

It's a USB dongle:

Bus 002 Device 004: ID 050d:7050 Belkin Components F5D7050 ver 1000 WiFi

I have moved right next to the AP and notice the same weird behaviour.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] wpa_supplicant confusion

2008-06-06 Thread Mick
On Friday 06 June 2008, Jonathan Fosburgh wrote:
 On Friday 06 June 2008 12:15:11 Mick wrote:
  Within the next few seconds I get an IP via dhcpcd and I can immediately
  connect to the Internet, but very unreliably.  Within a few seconds it
  seems that the link goes down, i.e. I can no longer ping Internet
  addresses, or the AP, despite iwconfig showing that all is fine
  connection wise:

 What driver are you using? This sounds a lot like what rt2500usb (part of
 the rt2x00 project) does, when it associates with an AP at all

Yep.  I did manage to get it working with wpa_supplicant (or so I 
thought . . . )

# lsmod | grep rt2
rt2500usb  21728  0 
rt2x00usb   8576  1 rt2500usb
rt2x00lib  14944  2 rt2500usb,rt2x00usb

Am I on a hiding to nothing?  I thought that if it made it into the kernel it 
would be alright to use.  When I was downloading the rt2x00 from cvs it was a 
bit of a hit and miss affair.

 BTW, did you really send your wep keys to the world? :) You may want to
 change them...

Nah, not important.  I'm in the middle of nowhere to be honest visiting a 
friend.  Also, WEP encryption is rather trivial to crack, especially so with 
a 40bit key.  :p
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] wpa_supplicant confusion

2008-06-06 Thread Mick
On Friday 06 June 2008, Michal 'vorner' Vaner wrote:
 Hello

 On Fri, Jun 06, 2008 at 06:15:11PM +0100, Mick wrote:
  wlan0 IEEE 802.11g  ESSID:daddy
Mode:Managed  Frequency:2.442 GHz  Access Point:
  00:18:4D:AE:55:2C Bit Rate=12 Mb/s   Tx-Power=27 dBm
Retry min limit:7   RTS thr:off   Fragment thr=2346 B
Encryption key:8B7B-9671-89
Link Quality=31/100  Signal level=-56 dBm

 I do not know your card, but mine works with link quality above 60/100,
 below that doesn't do much. The ping times are because there are
 link-level retransmits, so it tries many times and it sometimes
 succeeds.

 If you get closer to the AP, is it still a problem?

Ahh, just noticed this USB unclaimed message in lshw:

   *-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.24-gentoo-r8 uhci_hcd
physical id: 1
bus info: [EMAIL PROTECTED]
logical name: usb2
version: 2.06
capabilities: usb-1.10
configuration: maxpower=0mA slots=2 speed=12.0MB/s
  *-usb UNCLAIMED
   description: Generic USB device
   product: Belkin 54g USB Network Adapter
   vendor: Belkin
   physical id: 1
   bus info: [EMAIL PROTECTED]:1
   version: 0.01
   capabilities: usb-2.00
   configuration: maxpower=300mA speed=12.0MB/s

Should it be so?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.