You are not logged in.

#1 2008-03-31 23:31:40

Surgat_
Member
Registered: 2007-08-08
Posts: 317

[SOLVED]netcfg2 detects WEP key as command??

Hello there

Tonight I decided to turn into netcfg2 after having a lot of problems with my wifi card (rt73). I have followed the "Network Profiles" wiki page and configured a profile as follows:

CONNECTION="wireless"
DESCRIPTION="A simple WEP encrypted wireless connection"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wep"
ESSID="asdf_fdsa"
KEY="bn5qyiva56"
IP="dhcp"

But when I try to netcfg2 <profile> it says:

:: casa up
iwconfig: unknown command "bn5qyiva56"
              - Could not set wireless configuration

So it seems that netcfg2 thinks my WEP key is a iwconfig command. Does anyone know what do I have to do to make it work? Maybe put the key in HEX? And, if so, how can I translate it from ASCII to HEX?

Thank you
Bye!

Last edited by Surgat_ (2008-04-06 17:44:16)

Offline

#2 2008-04-01 03:54:24

jbromley
Member
From: Pasadena, CA
Registered: 2007-02-04
Posts: 268

Re: [SOLVED]netcfg2 detects WEP key as command??

You wouldn't happen to have any special Bash characters in your SSID or WEP key, would you? Anything like !#$&'"? Since netcfg2 is just bash scripts, any of these characters might be causing confusion. In my case I had a $  in my WPA passphrase and netcfg tried to do variable substitution on the $ and the characters that followed it. This effectively deleted half of my passphrase and I could never connect with that passphrase.

Good luck,
j

Offline

#3 2008-04-01 03:56:09

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED]netcfg2 detects WEP key as command??

Hi.

I don't know how to translate it, but it definitely needs to be hex.  Does your router show it as hex anywhere?  Just copy that down & type it into your profile.  I have a file with the key in my home directory, so that if I need to enter it anywhere else I don't have to type it in.  smile  If, for example I pop in a live CD, I can just copy and paste the key and surf away.  Typing in that key over and over is a major PITA.

Edit:  maybe I'm wrong and it doesn't need to be hex.  *shrug*  I know hex works.

Last edited by tigrmesh (2008-04-01 03:58:46)

Offline

#4 2008-04-01 11:16:21

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: [SOLVED]netcfg2 detects WEP key as command??

Ok, that was it. For anyone with the same problem, it's possible to translate the key by introducing it through iwconfig wlan0 key s:... and then checking it with iwconfig wlan0, iwconfig shows it as HEX

Thank you
Bye!

Offline

#5 2008-04-02 21:51:28

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: [SOLVED]netcfg2 detects WEP key as command??

Ok, I have been connected for the last 3 or 4 hours, but, as I expected, the rt73 driver is not stable enough and I lost the connection 15 minutes ago. Now, trying to reconnect, always I did netcfg2 <profile> I got a "casa is already connected" message (casa is my profile). I have tried bringing the interface down and up again and modprobing  the module again and I still get the same message, even though iwconfig says that it's not associated with any access point. What do I have to do to make netcfg2 know that I'm not connected?

Thank you
Bye!

Offline

#6 2008-04-03 14:51:45

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED]netcfg2 detects WEP key as command??

Surgat_ wrote:

What do I have to do to make netcfg2 know that I'm not connected?

/etc/rc.d/net-profiles stop

Offline

#7 2008-04-06 17:43:57

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: [SOLVED]netcfg2 detects WEP key as command??

tigrmesh wrote:
Surgat_ wrote:

What do I have to do to make netcfg2 know that I'm not connected?

/etc/rc.d/net-profiles stop

Thank you smile

Offline

Board footer

Powered by FluxBB