Package: wpasupplicant Followup-For: Bug #296291
The patch to fix bug #294909 (madwifi doesn't associate with open aps) breaks assocation with WEP enabled accesspoints. The patch turns off WPA/WEP completely when assocating with either WEP or open accesspoints and never re-enables it. Here is a patch that works better. Basically the madwifi kernel driver doesn't automatically enable/disable encryption when keys are set or removed using the madwifi ioctls. This is controlled separately by the PRIVACY flag which was only set by wpa_supplicant when madwifi was initialized. The following patch moves the setting/clearing of the PRIVACY flag to the function that is called during assocation to allow/disallow reception of unencrypted packets, which seems to match closely the cases where crypto is enabled and disabled. Jan #! /bin/sh /usr/share/dpatch/dpatch-run ## 11_madwifi_open_aps.dpatch by <[EMAIL PROTECTED]> ## ## DP: Bug#294909: wpasupplicant wont associate with open aps using -Dmadwifi ## DP: From: Jan Harkes <[EMAIL PROTECTED]> @DPATCH@ --- wpasupplicant-0.3.8/driver_madwifi.c.orig 2005-02-23 11:52:17.640937760 -0500 +++ wpasupplicant-0.3.8/driver_madwifi.c 2005-02-23 11:55:04.228612584 -0500 @@ -144,8 +144,6 @@ ret = -1; if (set80211param(drv, IEEE80211_PARAM_ROAMING, enabled ? 2 : 0, 1) < 0) ret = -1; - if (set80211param(drv, IEEE80211_PARAM_PRIVACY, enabled, 1) < 0) - ret = -1; if (set80211param(drv, IEEE80211_PARAM_WPA, enabled ? 3 : 0, 1) < 0) ret = -1; @@ -245,6 +243,8 @@ { struct wpa_driver_madwifi_data *drv = priv; wpa_printf(MSG_DEBUG, "%s: enabled=%d", __FUNCTION__, enabled); + if (set80211param(drv, IEEE80211_PARAM_PRIVACY, enabled, 1) < 0) + return -1; return set80211param(drv, IEEE80211_PARAM_DROPUNENCRYPTED, enabled, 1); } -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.10-rc3 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]