Red Hat Bugzilla – Bug 182571
WPA-PSK CCMP keychange do not work with wpa_supplicant script
Last modified: 2008-08-02 19:40:34 EDT
Description of problem:
I have configure wpa_supplicant to connect to an accesspoint with
WPA-PSK and CCMP (WPA-PSK and AES on accesspoint config).
If I start wpa_supplicant the connection is active after some time.
This connection goes down if it is time for the keychange. You can
only start wpa_supplicant new anh hope, that the connection comes up.
Debugging this: start wpa_supplicant on commandline
# wpa_supplicant -Dmadwifi -iath0 -c /etc/wpa_supplicant/wpa_supplicant.conf -d
With this command the keychange does not work.
# wpa_supplicant -w -Dmadwifi -iath0 -c /etc/wpa_supplicant/wpa_supplicant.conf -d
Now the keychange work correct.
I take the -w option in the /etc/rc.d/init.d/wpa_supplicant script. The
connection established and is activ. But if it time for the keychange the
connection goes down.
The script use "daemon wpa_supplicant -B ...".
There is no logfile and so there is no posibility for debugging.
Also: missing wpa_passphrase binary in RPM. You need it for generate the WPA-PSK
key for wpa_supplicant.conf.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. configure wpa_supplicant with WPA-PSK and CCMP
2. service wpa_supplicant start
3. wait for keychange (time is configure at accesspoint)
4. see the end of connection
only work from commandline without -B and with -w options
should work as service
wpa_passphrase binary in RPM
Created attachment 125399 [details]
better wpa_supplicant for /etc/sysconfig
Created attachment 125401 [details]
initscript for new wpa_supplicant.sysconfig
Created attachment 125402 [details]
- new spec file
- add /usr/sbin/wpa_passphrase
- add OPTIONS and MULTIPLE in /etc/sysconfig/wpa_supplicant
- add OPTIONS and MULTIPLE in /etc/rc.d/init.d/wpa_supplicant
- set OPTIONS="-B -w"
What is the use of MULTIPLE? Can you give an example where another variable is
required and OPTIONS and INTERFACES cannot be used?
In /etc/rc.d/init.d/wpa_supplicant there is only set -B for start the
wpa_supplicant daemon. -w is very helpfull for me (look at manual what -w means)
but there is no way to set it in the system. OPTIONS allow it.
If you have more than on card in the system and that are also different cards
then you can use -N (look at manual and README) to use them. I do this with
help of variable MULTIPLE.
Is there a better solution available during boot the system?
I was allso going back to wpa_supplicant-0.4.8 like FC5 since Comment#2.
Fedora Core 5 and Fedora Core 6 are, as we're sure you've noticed, no longer
test releases. We're cleaning up the bug database and making sure important bug
reports filed against these test releases don't get lost. It would be helpful if
you could test this issue with a released version of Fedora or with the latest
development / test release. Thanks for your help and for your patience.
[This is a bulk message for all open FC5/FC6 test release bugs. I'm adding
myself to the CC list for each bug, so I'll see any comments you make after this
and do my best to make sure every issue gets proper attention.]
There was no problem since wpa_supplicant-0.4.8-10.1.fc6 for me, if I use my
changes in /etc/sysconfig/wpa_supplicant and /etc/rc.d/init.d/wpa_supplicant.
I use this rpm version also in RHEL4. RHEL5 has also this rpm version. The
RHEL4.5 beta channel contains wpa_supplicant-0.4.9-1.1.el4. All this versions
work for me without the problem that was reported in this issue.
If an OPTIONS variable would be in /etc/sysconfig/wpa_supplicant and
/etc/rc.d/init.d/wpa_supplicant the rpm would be more flexible for all users. If
the daemon works for you without options you don't set any options in
/etc/sysconfig/wpa_supplicant. All other users can do it if they need options.
At this time Red Hat do not allow this and updates will overwrite your own
There are some issues in Red Hat's issue tracker for RHEL4.5 beta and RHEL5 from me.
Ah, I see they backed the version out before FC5 release. So this is fixed as of