Can't access wep encrypted network with linksys wusb11 ver 2.6 net adapter

Hey, I have installed Suse 11.4 from the Gnome liveCD, and I “can” access my home network when it is unsecured, however, I can’t access it when WEP is turned on. Now, I know that WEP is insecure but there are devices on the network that only supports WEP so the router settings can’t be changed. Also just for testing purposes i have tried the WPA2 encryption method to no avail (dmesg reports that the connection timed out). The only encryption method that looks promising is the open-wep encryption. When trying to connect to the network (with open-wep turned on) I have performed a bit of checking to see what is going on, now I don’t know much about in-depth linux and stuff but, below are the outputs from lsusb, dmesg, iwconfig, and ifconfig.

lsusb

Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 077b:2219 Linksys WUSB11 V2.6 802.11b Adapter

dmesg

301.510073] wlan0: authenticate with 00:17:9a:28:ea:6c (try 1)
  301.512664] wlan0: authenticated
  301.930021] wlan0: associate with 00:17:9a:28:ea:6c (try 1)
  301.933078] wlan0: RX AssocResp from 00:17:9a:28:ea:6c (capab=0x431 status=0 aid=1)
  301.933087] wlan0: associated
  309.508109] ieee80211 phy0: wlan0: No probe response from AP 00:17:9a:28:ea:6c after 500ms, disconnecting.
  312.019147] cfg80211: Calling CRDA to update world regulatory domain
  312.052743] cfg80211: World regulatory domain updated:
  312.052753]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  312.052760]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  312.052765]     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  312.052771]     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  312.052776]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  312.052782]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  314.225474] wlan0: authenticate with 00:17:9a:28:ea:6c (try 1)
  314.227524] wlan0: authenticated
  314.641393] wlan0: associate with 00:17:9a:28:ea:6c (try 1)
  314.644709] wlan0: RX AssocResp from 00:17:9a:28:ea:6c (capab=0x431 status=0 aid=1)
  314.644718] wlan0: associated
  319.848103] ieee80211 phy0: wlan0: No probe response from AP 00:17:9a:28:ea:6c after 500ms, disconnecting.

iwconfig


initial check
wlan0     IEEE 802.11b  ESSID:"The Network"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:17:9A:28:EA:6C   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:XXXX-YYXX-XX
          Power Management:off
          Link Quality=8/100  Signal level=8/100  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


after about 5 seconds
wlan0     IEEE 802.11b  ESSID:"The Network"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:17:9A:28:EA:6C   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:XXXX-YYXX-XX
          Power Management:off
          Link Quality=7/100  Signal level=7/100  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

after about 10 more seconds
wlan0     IEEE 802.11b  ESSID:off/any  
          Mode:Managed  Frequency:2.462 GHz  Access Point: Not-Associated   
          Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off

where X=Number, Y=Letter

ifconfig wlan0


wlan0     Link encap:Ethernet  HWaddr 00:06:25:B1:09:65  
          inet6 addr: fe80::206:25ff:feb1:965/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:16390 (16.0 Kb)

I would really appreciate it if someone could shed some light on what’s going on, and whether or not this is fixable.
Thanks

With WEP you have to use the whole hex key, usually 128bit
Is that what you do?

the key is a 64-bit key

Not sure then.
I’m no expert in this area, so hang around for them to respond.

The driver for that 077b:2219 device is at76c50x-usb. The code says it handles
WEP, and in fact your system authenticated and associated as shown in your dmesg
output (your WEP Key is OK):

314.227524] wlan0: authenticated
314.641393] wlan0: associate with 00:17:9a:28:ea:6c (try 1)
314.644709] wlan0: RX AssocResp from 00:17:9a:28:ea:6c (capab=0x431
status=0 aid=1)
314.644718] wlan0: associated
319.848103] ieee80211 phy0: wlan0: No probe response from AP
00:17:9a:28:ea:6c after 500ms, disconnecting.

Why the link went inactive after 5 seconds is not clear.

To get some debugging output, do the following:


sudo /sbin/modprobe -rv at76c50x-usb
sudo /sbin/modprobe -v at76c50x-usb options at76c50x-usb=0xF

It may be necessary to get more debug output later, but let us start with this.

I tried those two commands and got the follow:

sudo /sbin/modprobe -rv at76c50x-usb

rmmod /lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko
rmmod /lib/modules/2.6.37.1-1.2-default/kernel/net/mac80211/mac80211.ko
rmmod /lib/modules/2.6.37.1-1.2-default/kernel/net/wireless/cfg80211.ko

sudo /sbin/modprobe -v at76c50x-usb options at76c50x-usb=0xF

insmod /lib/modules/2.6.37.1-1.2-default/kernel/net/wireless/cfg80211.ko 
insmod /lib/modules/2.6.37.1-1.2-default/kernel/net/mac80211/mac80211.ko 
insmod /lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko options at76c50x-usb=0xF
FATAL: Error inserting at76c50x_usb (/lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko): Unknown symbol in module, or unknown parameter (see dmesg)

in which case dmesg gave

  940.778856] Atmel at76x USB Wireless LAN Driver 0.17 unloading
  940.778866] usbcore: deregistering interface driver at76c50x-usb
  940.781220] ieee80211 phy0: disconnecting
  940.788545] at76c50x-usb 2-1:1.0: disconnected
  944.650780] cfg80211: Calling CRDA to update world regulatory domain
  944.714247] at76c50x_usb: Unknown parameter `options'
  944.732222] cfg80211: World regulatory domain updated:
  944.732232]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  944.732239]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  944.732244]     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  944.732250]     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  944.732258]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  944.732264]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

After this I have to disconnect the adapter and reconnect it (a couple times). If i reverse the order of the commands i get no output for “sudo /sbin/modprobe -v at76c50x-usb options at76c50x-usb=0xF”.

I blew that with a bad copy and paste:

sudo /sbin/modprobe -rv at76c50x-usb

sudo /sbin/modprobe -v at76c50x-usb options at76_debug=0xF

Pnce the driver has been loaded, you need to unload it before a reload produces
any output.

I get about the same thing:

sudo /sbin/modprobe -rv at76c50x-usb

rmmod /lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko
rmmod /lib/modules/2.6.37.1-1.2-default/kernel/net/mac80211/mac80211.ko
rmmod /lib/modules/2.6.37.1-1.2-default/kernel/net/wireless/cfg80211.ko

sudo /sbin/modprobe -v at76c50x-usb options at76_debug=0xF

insmod /lib/modules/2.6.37.1-1.2-default/kernel/net/wireless/cfg80211.ko 
insmod /lib/modules/2.6.37.1-1.2-default/kernel/net/mac80211/mac80211.ko 
insmod /lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko option at76_debug=0xF
FATAL: Error inserting at76c50x_usb (/lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko): Unknown symbol in module, or unknown parameter (see dmesg)

dmesg reports:

at76c50x_usb: Unknown parameter 'options'

On 08/09/2011 06:56 PM, skullmaster101 wrote:
>
> I get about the same thing:
>
> sudo /sbin/modprobe -rv at76c50x-usb
>
> Code:
> --------------------
> rmmod /lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko
> rmmod /lib/modules/2.6.37.1-1.2-default/kernel/net/mac80211/mac80211.ko
> rmmod /lib/modules/2.6.37.1-1.2-default/kernel/net/wireless/cfg80211.ko
>
> --------------------
>
>
> sudo /sbin/modprobe -v at76c50x-usb options at76_debug=0xF
>
> Code:
> --------------------
> insmod /lib/modules/2.6.37.1-1.2-default/kernel/net/wireless/cfg80211.ko
> insmod /lib/modules/2.6.37.1-1.2-default/kernel/net/mac80211/mac80211.ko
> insmod /lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko option at76_debug=0xF
> FATAL: Error inserting at76c50x_usb (/lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko): Unknown symbol in module, or unknown parameter (see dmesg)
>
> --------------------
>
>
> dmesg reports:
>
> Code:
> --------------------
> at76c50x_usb: Unknown parameter ‘options’
> --------------------

That was pretty clear. Leave the “options” keyword out of the command.

And I left out the “options” keyword, and got about the same thing again (just this time the “unknown parameter” is ‘at76_debug=0xF’). If the purpose of this command is to simply reload the driver, sudo /sbin/modprobe -v at76c50x-usb seems to work

On 08/09/2011 08:56 PM, skullmaster101 wrote:
>
> And I left out the “options” keyword, and got about the same thing again
> (just this time the “unknown parameter” is ‘at76_debug=0xF’). If the
> purpose of this command is to simply reload the driver, sudo
> /sbin/modprobe -v at76c50x-usb seems to work

Obviously, that was not the intent. From the source, that module parameter was
supposed to turn on certain debugging, but it obviously doesn’t work. I have no
knowledge of this driver, thus I will not be able to help any further.

Larry Finger wrote:

> On 08/09/2011 08:56 PM, skullmaster101 wrote:
>>
>> And I left out the “options” keyword, and got about the same thing again
>> (just this time the “unknown parameter” is ‘at76_debug=0xF’). If the
>> purpose of this command is to simply reload the driver, sudo
>> /sbin/modprobe -v at76c50x-usb seems to work
>
> Obviously, that was not the intent. From the source, that module parameter
> was supposed to turn on certain debugging, but it obviously doesn’t work.
> I have no knowledge of this driver, thus I will not be able to help any
> further.

I hope that you can come back in the game :slight_smile:

linux:~ # modinfo at76c50x-usb
filename: /lib/modules/2.6.37.6-0.7-desktop/kernel/drivers/net/wireless/at76c50x-usb.ko
license: GPL
description: Atmel at76x USB Wireless LAN Driver

firmware: atmel_at76c503-rfmd-acc.bin
firmware: atmel_at76c503-rfmd.bin
firmware: atmel_at76c503-i3863.bin
firmware: atmel_at76c503-i3861.bin

depends: mac80211
vermagic: 2.6.37.6-0.7-desktop SMP preempt mod_unload modversions
parm: debug:Debugging level (uint)

After trial and error attempts to get proper syntax (debug:1 doesn’t cut):
linux:~ # modprobe -v at76c50x_usb debug=1
insmod /lib/modules/2.6.37.6-0.7-desktop/kernel/drivers/net/wireless/at76c50x-usb.ko debug=1

The “debug” value should be unsigned integer.
I checked only 2 values 1 and 5, both accepted, but meaning is not clear to me.

In another root window:
linux:~ #tail -f /var/log/messages
Aug 10 02:38:39 linux kernel: Atmel at76x USB Wireless LAN Driver 0.17 loading
Aug 10 02:38:39 linux kernel: usbcore: registered new interface driver at76c50x-usb

To remove wireless modules they must be listed in this order:
rmmod at76c50x-usb mac80211 cfg80211 rfkill


Regards,
Rajko

On 08/10/2011 03:56 AM, Rajko M. wrote:
> Larry Finger wrote:
>
>> On 08/09/2011 08:56 PM, skullmaster101 wrote:
>>>
>>> And I left out the “options” keyword, and got about the same thing again
>>> (just this time the “unknown parameter” is ‘at76_debug=0xF’). If the
>>> purpose of this command is to simply reload the driver, sudo
>>> /sbin/modprobe -v at76c50x-usb seems to work
>>
>> Obviously, that was not the intent. From the source, that module parameter
>> was supposed to turn on certain debugging, but it obviously doesn’t work.
>> I have no knowledge of this driver, thus I will not be able to help any
>> further.
>
> I hope that you can come back in the game :slight_smile:
>
> linux:~ # modinfo at76c50x-usb
> filename: /lib/modules/2.6.37.6-0.7-desktop/kernel/drivers/net/wireless/at76c50x-usb.ko
> license: GPL
> description: Atmel at76x USB Wireless LAN Driver
> …
> firmware: atmel_at76c503-rfmd-acc.bin
> firmware: atmel_at76c503-rfmd.bin
> firmware: atmel_at76c503-i3863.bin
> firmware: atmel_at76c503-i3861.bin
> …
> depends: mac80211
> vermagic: 2.6.37.6-0.7-desktop SMP preempt mod_unload modversions
> parm: debug:Debugging level (uint)
>
> After trial and error attempts to get proper syntax (debug:1 doesn’t cut):
> linux:~ # modprobe -v at76c50x_usb debug=1
> insmod /lib/modules/2.6.37.6-0.7-desktop/kernel/drivers/net/wireless/at76c50x-usb.ko debug=1
>
> The “debug” value should be unsigned integer.
> I checked only 2 values 1 and 5, both accepted, but meaning is not clear to me.
>
> In another root window:
> linux:~ #tail -f /var/log/messages
> Aug 10 02:38:39 linux kernel: Atmel at76x USB Wireless LAN Driver 0.17 loading
> Aug 10 02:38:39 linux kernel: usbcore: registered new interface driver at76c50x-usb
>
> To remove wireless modules they must be listed in this order:
> rmmod at76c50x-usb mac80211 cfg80211 rfkill

That is why we use “modprobe -r”. That handles the dependencies.

When the module is loaded with “debug=5”, what does dmesg show? The amount of
output will likely bo so large that you will need to post it at
http://image.susepaste.org/. Do not forget to set the expiration at never.

Larry Finger wrote:


> When the module is loaded with “debug=5”, what does dmesg show? The amount
> of output will likely bo so large that you will need to post it at
> http://susepaste.org/. Do not forget to set the expiration at never.

Reading: http://at76c503a.berlios.de/support.html

It seems that debug= takes different values for different types of debug
information. Source code lists quite a few DBG_ variables.

Also, I don’t have that hardware, it is up to skullmaster101 to try and post
output.


Regards,
Rajko

Given the new commands I retried the test, the first command output stays the same, however,
for sudo /sbin/modprobe -v at76c50x-usb debug=5 i get

insmod /lib/modules/2.6.37.1-1.2-default/kernel/net/wireless/cfg80211.ko 
insmod /lib/modules/2.6.37.1-1.2-default/kernel/net/mac80211/mac80211.ko 
insmod /lib/modules/2.6.37.1-1.2-default/kernel/drivers/net/wireless/at76c50x-usb.ko debug=5

after this dmesg outputs

  402.078799] cfg80211: Calling CRDA to update world regulatory domain
  402.135593] Atmel at76x USB Wireless LAN Driver 0.17 loading
  402.156375] usb 2-1: using firmware atmel_at76c503-rfmd.bin (version 1.101.0-84)
  402.159895] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
  402.161358] ieee80211 phy0: USB 2-1:1.0, MAC 00:06:25:b1:09:65, firmware 1.101.2-84
  402.161366] ieee80211 phy0: regulatory domain 0x10: FCC (USA)
  402.161458] usbcore: registered new interface driver at76c50x-usb
  402.187817] cfg80211: World regulatory domain updated:
  402.187829]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  402.187835]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  402.187840]     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  402.187845]     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  402.187850]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  402.187856]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  403.100592] ADDRCONF(NETDEV_UP): wlan0: link is not ready

On 08/10/2011 11:56 AM, skullmaster101 wrote:
>
> Given the new commands I retried the test, the first command output
> stays the same, however,
> for sudo /sbin/modprobe -v at76c50x-usb debug=5 i get

I don’t know what the debug option is doing, but I don’t see any debug output.
Sorry.

Do you have a second Linux system with wireless available? If so, you might try
capturing the packets from the air.

I don’t have the hardware, and I did not see any on Ebay at reasonable cost. I
regularly buy samples of 802.11n devices that are new for under $20 including
shipping. Paying more than that for a used 802.11b device doesn’t make sense.
Without one in hand, it will not be possible to debug this.

skullmaster101 wrote:

> 2000 mBm) 403.100592] ADDRCONF(NETDEV_UP): wlan0: link is not ready

There is some troubleshooting help at:
http://at76c503a.berlios.de/support.html#trouble

It is working without WEP, so try section “In all configurations:”


Regards,
Rajko

I am finding it very difficult to get a packet sniffer installed on my system since all of them needs to be built and I don’t have the development packages as yet (since i don’t have internet access). Also, another thing I noticed, is that after the several attempts to connect to the network, dmesg reports that it deauthenticated for “reason=3”. So far I haven’t found a straightforward definition for this. Hope this give more clues :\

On 08/11/2011 11:06 AM, skullmaster101 wrote:
>
> I am finding it very difficult to get a packet sniffer installed on my
> system since all of them needs to be built and I don’t have the
> development packages as yet (since i don’t have internet access). Also,
> another thing I noticed, is that after the several attempts to connect
> to the network, dmesg reports that it deauthenticated for “reason=3”. So
> far I haven’t found a straightforward definition for this. Hope this
> give more clues :\

As wireshark is a standard package on 11.4, it should be on the DVD. Set the DVD
as a repository (should already be there) and ‘sudo zypper in wireshark’. No
building is required. A YaST => Software Management search would have shown this
package and you could have installed from there.

From
http://etutorials.org/Networking/Wireless+lan+security/Chapter+4.+WLAN+Fundamentals/Basic+Choreography/:

Reason 3 - Deauthenticated because sending station is leaving (or has left) IBSS
or ESS.

OK thanks but, since i installed Suse for the live CD and didn’t bother to download the DVD, it will take some time for me to download the DVD. I’ll post what I find when things are in place