#538217 wireless-tools: iwconfig can't set key but wpa_supplicant can

Package:
wireless-tools
Source:
wireless-tools
Description:
Tools for manipulating Linux Wireless Extensions
Submitter:
S Hwang
Date:
2021-10-12 00:27:03 UTC
Severity:
important
#538217#5
Date:
2009-07-24 06:38:32 UTC
From:
To:
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.

But, wpa_supplicant (with an appropriate configuration file that contains the passphrase) can succesfully set the key and associate with the router. If I then type iwconfig wlan0, it reports that the encryption key has been set. I can then successfully ifup wlan0 (though it still complains about setting the key).

I'm using the iwlagn module with the firmware downloaded by firmware-iwlwifi (which the kernel complains is out of date - see bug 532207).  I also tried the newest firmware downloaded from the link provided in that bug report.  This did not help.

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.

#538217#10
Date:
2009-07-24 11:24:22 UTC
From:
To:
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.

I suspect it is a driver problem.

#538217#15
Date:
2009-07-24 19:34:26 UTC
From:
To:
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 ----- 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. I suspect it is a driver problem.
#538217#20
Date:
2009-11-24 19:13:11 UTC
From:
To:
Guus Sliepen wrote :

	It's a bit more complex.
	You are trying to set a passphrase. This tells me that you are
not using plain WEP, but WPA. The Wireless Tools can not do WPA, you
absolutely need wpa_supplicant.
	To set WPA, wpa_supplicant uses a different API than the plain
WEP API that iwconfig uses. That's why wpa_supplicant works and
iwconfig does not.
	Now, why is the driver not accepting a plain WEP key ? It
could be a driver bug, but I suspect that it's just that the key is
not the right size. Make sure you have the proper number of bytes for
plain WEP (see iwlist).

	Good luck...

	Jean

#538217#25
Date:
2017-02-04 15:01:59 UTC
From:
To:
Dear Customer,

We can not deliver your parcel arrived at January 31.

Review the document that is attached to this e-mail!

Thank you for making business with us,
Milton Stevens,
UPS Station Manager.

#538217#30
Date:
2017-03-12 23:29:30 UTC
From:
To:
Dear Customer,

Please review your parcel delivery label in the attachment!

FedEx
-----BEGIN PGP PUBLIC KEY BLOCK----- Oyb1X2jP7nds0pBY6q9N/nJhT3xDs6kYDonPIfVUj1waqYcJq7G+zmMwTb9xUbo5M5vYKML6vwKY ctQA+VzbbURR4gTIH15evSAGqYW5FC75v6F42s8tpA40rT9YdHrp+QoAvJ3H5084rOJuXzE6dW2n 5WuMm+0Rysn5iY3xhnwUHxYUHgqdatQIk9UW4IaV/5NHYTkHyDJiijzgQXirmJXnF236DlLlM/TU 3qBH4zYPCKogVdWGFcJ//35ib7NGAnlXX6GCGtqmCxZ5yW1dEyfihlCOdFNgIHy/qXLD0bXhc6mo xVD5qCMFQkmYAiz0rnkFr2NeOjV63rlMIK6Ea4k3pSv2UIIvQmCvr4fYsrPQLXlRhdypw81tGUuH JqoeoAoruBbpEbxppfqv8msfuZDStlvn5NxmRC9AOLwGNA9YQ8BQk6EqAi8S8HECI1Jrr/2BQQHy A88/IunH2HHb6olVzz443+LT1S9qy4m1IiJnu6hlksjxBWTDkDpfmB0GPwv8ypOnddSZndXYr3A5 34E58mne9EW+XRQA917uwlGggXwzvR2znvjKFF8kCJFLl8mt1bLz8MLGpO/X3C0StWpRh6M1BD/S 5RpLS1n22LHptBVZ4aa9edM3P8LwaEZHyu7gzDKspi7Py0oIwW5/aI3Ybfvt/8+YKLwaVOKjMJMe j0697vnAkpbzGHiLKwZAsYgFBxHC+SR6uQ+yHoUlCSXb6Xfr5t8QsZpdnS/TQDnrnEndyItUdI2u 0lOcLbOntsm3bJIriVru0V08pwwmKOrluY1YInNlKhP6rZoRcanLpdoRXgL1/c+Z258U+MAz6/lc WZ5cqAXMukCgaiCrS93b4WTZv0VI7y1ZCgFWnsJC3ATvxlfEcFif8NpQzv6YGekQnNkKqOwkcYUJ e6zUu37HNDEb4dDlhpochrRHPzt2Fif/rsVF1VdElZDoxC6NLqK7WZwf6e8p4hK/W/j4j3lSCCpM ml+pt/c3XAlUXbxU2GFsWbVmZxzX3Y+G4PLbPpRbZxN8s8WkL1KLvPG1rJqrpti+6LwMWWUWYh6I AXcfKrTd80FA6AGqT5GRieaN1eBkx4bjynsDjxY66AaG+Eg9oQ9dsWkxk0o8UGhH1LzwBZLF0Zwk UN/8vU1laWlCPSGuJdzeMwu+ZTss9vu3BUE0SpModzD/+d3eUevJv2Rz7X+4A59/UL8mH3oifsSf +sKTR6hwBUrUpY+ATgXt45s8gDjNgEGHuvYdpHKbFancxeToOWrjJ7PT+Tp6/DQASOy/pcw6zuaP EKsUjG+S8JrdkEhr6feYIroJ7mKRsrmZAv8Emo9PyA==
-----END PGP PUBLIC KEY BLOCK-----
#538217#35
Date:
2021-10-12 00:14:56 UTC
From:
To:
Prezado Cliente,
Por motivos de segurança precisamos efetuar uma identificação para confirmar
autenticidade de utilização da nossa plataforma do Webmail.
caso não seja efetuado, está verificação seu acesso poderá ser bloqueado ou até
mesmo ocasionar a perda de suas informações e todos os serviços, agradecemos
pela sua colaboração para que possamos sempre melhorar a nossa segurança.

Confirmar https://cutt.ly/9E7Cyzm