I've now tried both of the following sequences: 

ifconfig wlan0 up 
iwconfig wlan0 key myhexkey 

and 

ifconfig wlan0 down 
iwconfig wlan0 key myhexkey 

Both produce the same error message as before. I also tried unloading and 
reloading the iwlcore and iwlagn modules before each sequence of commands. This 
also made no difference. 


----- Original Message ----- 
From: "Guus Sliepen" <[email protected]> 
To: "S Hwang" <[email protected]>, [email protected] 
Sent: Friday, July 24, 2009 7:24:22 AM GMT -05:00 US/Canada Eastern 
Subject: Re: Bug#538217: wireless-tools: iwconfig can't set key but 
wpa_supplicant can 

On Fri, Jul 24, 2009 at 02:38:32AM -0400, S Hwang wrote: 

> I'm setting up a new install on a Medion Akoya P6611. It uses Intel 5100 AGN 
> for the wireless networking. When trying to get the wireless network 
> configured, I have found that iwconfig is unable to set the encryption key 
> and thus fails to associate with the router. I issue the command: 
> iwconfig wlan0 key myhexkey 
> and the error message is: 
> Error for wireless request "Set Encode" (8B2A) : 
> Set failed on device wlan0 ; Invalid argument. 
> I get the same error if I use iwconfig wlan0 key s:mypassphrase. I can set 
> essid and mode without errors. 

Can you try bringing the interface up first (ifconfig wlan0 up), and then 
running the iwconfig command, and see if that works? If you already tried it 
with the interface up, try it with the interface down before running the 
command. 

> Perhaps this is a driver problem, and not specifically something with 
> iwconfig, but I don't know how to tell beyond what I've already tried. 

I suspect it is a driver problem. 

-- 
Met vriendelijke groet / with kind regards, 
Guus Sliepen <[email protected]> 

Reply via email to