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.
Ugh. Need upstream guidance on this.
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
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.
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
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
ack, wpa_supplicant-0.6.4-2.fc9 works for me!
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
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.