Bug 459399

Summary: wpa_supplicant-0.6.3-wext-handle-mac80211-mode-switches.patch clears wep keys
Product: [Fedora] Fedora Reporter: Fabrice Bellet <fabrice>
Component: wpa_supplicantAssignee: Dan Williams <dcbw>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: fabrice
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-19 14:48:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Fabrice Bellet 2008-08-18 14:13:48 UTC
The bug occurs with kernel-2.6.25.11-97.fc9.i686, using driver iwl3945. When setting adhoc-mode, the patch wpa_supplicant-0.6.3-wext-handle-mac80211-mode-switches.patch brings the interface down before setting the mode, and up just after. The problem is that this patch causes the wep keys, previously set by wpa_supplicant_set_wep_keys(), to be cleared at the driver level.

A possible workaround is to add WPA_DRIVER_FLAGS_SET_KEYS_AFTER_ASSOC to capa.flags, so the wep keys are set again a bit later after wpa_drv_associate() has been called, in function wpa_supplicant_associate(), around line 1104.

This bug causes a problem when sharing a wifi connection in ad-hoc mode with the NetworkManager, with wep enabled. The first attempt to setup the connection creates an ad-hoc network with encryption disabled (confirmed by iwlist scan from another box, and by the output of iwconfig wlan0), the second attempt to setup the same connection works, but for a reason that I could not identify, the peers that try to connect fail to obtain a dhcp lease, although the dhcp server receives queries, and correctly sends replies to these queries.

Comment 1 Dan Williams 2008-08-29 16:49:06 UTC
Ugh.  Need upstream guidance on this.

Comment 2 Fedora Update System 2008-09-02 20:47:29 UTC
wpa_supplicant-0.5.10-6.fc8 has been submitted as an update for Fedora 8.
http://admin.fedoraproject.org/updates/wpa_supplicant-0.5.10-6.fc8

Comment 3 Dan Williams 2008-09-02 20:48:19 UTC
Posted two candidate patches upstream for 0.6.x, will see what Jouni says.  Once I get some confirmation from him I'll post updates for F9 and F10.

Comment 4 Fedora Update System 2008-09-10 06:40:58 UTC
wpa_supplicant-0.5.10-6.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update wpa_supplicant'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-7513

Comment 5 Fedora Update System 2008-10-13 16:18:44 UTC
wpa_supplicant-0.6.4-2.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/wpa_supplicant-0.6.4-2.fc9

Comment 6 Fabrice Bellet 2008-10-13 16:39:52 UTC
ack, wpa_supplicant-0.6.4-2.fc9 works for me!

Comment 7 Fedora Update System 2008-10-16 02:12:41 UTC
wpa_supplicant-0.6.4-2.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update wpa_supplicant'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-8892

Comment 8 Fedora Update System 2008-11-19 14:48:12 UTC
wpa_supplicant-0.6.4-2.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.