[pkg-wpa-devel] r900 - in /wpasupplicant/trunk: debian/changelog src/drivers/driver.h wpa_supplicant/events.c wpa_supplicant/wpa_supplicant.c

kelmo-guest at users.alioth.debian.org kelmo-guest at users.alioth.debian.org
Mon Nov 19 10:59:02 UTC 2007


Author: kelmo-guest
Date: Mon Nov 19 10:59:02 2007
New Revision: 900

URL: http://svn.debian.org/wsvn/pkg-wpa/?sc=1&rev=900
Log:
import current git

Modified:
    wpasupplicant/trunk/debian/changelog
    wpasupplicant/trunk/src/drivers/driver.h
    wpasupplicant/trunk/wpa_supplicant/events.c
    wpasupplicant/trunk/wpa_supplicant/wpa_supplicant.c

Modified: wpasupplicant/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/debian/changelog?rev=900&op=diff
==============================================================================
--- wpasupplicant/trunk/debian/changelog (original)
+++ wpasupplicant/trunk/debian/changelog Mon Nov 19 10:59:02 2007
@@ -1,4 +1,4 @@
-wpasupplicant (0.6.1~git20071118-1) UNRELEASED; urgency=low
+wpasupplicant (0.6.1~git20071119-1) UNRELEASED; urgency=low
 
   * New upstream git snapshot.
     - support for dbus >= 1.1.1 dbus_watch_get_unix_fd() api
@@ -32,7 +32,7 @@
     has ensued. If the interface is not recorded in ifupdown's state file
     attempt reassociation. (Closes: #428304).
 
- -- Kel Modderman <kel at otaku42.de>  Sun, 18 Nov 2007 16:55:20 +1000
+ -- Kel Modderman <kel at otaku42.de>  Mon, 19 Nov 2007 20:57:16 +1000
 
 wpasupplicant (0.6.0-4) unstable; urgency=low
 

Modified: wpasupplicant/trunk/src/drivers/driver.h
URL: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/src/drivers/driver.h?rev=900&op=diff
==============================================================================
--- wpasupplicant/trunk/src/drivers/driver.h (original)
+++ wpasupplicant/trunk/src/drivers/driver.h Mon Nov 19 10:59:02 2007
@@ -202,9 +202,22 @@
 	 * passphrase - RSN passphrase for PSK
 	 *
 	 * This value is made available only for WPA/WPA2-Personal (PSK) and
-	 * only for drivers that set WPA_DRIVER_FLAGS_4WAY_HANDSHAKE.
+	 * only for drivers that set WPA_DRIVER_FLAGS_4WAY_HANDSHAKE. This is
+	 * the 8..63 character ASCII passphrase, if available. Please note that
+	 * this can be %NULL if passphrase was not used to generate the PSK. In
+	 * that case, the psk field must be used to fetch the PSK.
 	 */
 	const char *passphrase;
+
+	/**
+	 * psk - RSN PSK (alternative for passphrase for PSK)
+	 *
+	 * This value is made available only for WPA/WPA2-Personal (PSK) and
+	 * only for drivers that set WPA_DRIVER_FLAGS_4WAY_HANDSHAKE. This is
+	 * the 32-octet (256-bit) PSK, if available. The driver wrapper should
+	 * be prepared to handle %NULL value as an error.
+	 */
+	const u8 *psk;
 };
 
 /**

Modified: wpasupplicant/trunk/wpa_supplicant/events.c
URL: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/wpa_supplicant/events.c?rev=900&op=diff
==============================================================================
--- wpasupplicant/trunk/wpa_supplicant/events.c (original)
+++ wpasupplicant/trunk/wpa_supplicant/events.c Mon Nov 19 10:59:02 2007
@@ -470,8 +470,8 @@
 			}
 
 			if ((ssid->key_mgmt & 
-			     (WPA_KEY_MGMT_IEEE8021X | WPA_KEY_MGMT_PSK)) ||
-			    bss->wpa_ie_len != 0 || bss->rsn_ie_len != 0) {
+			     (WPA_KEY_MGMT_IEEE8021X | WPA_KEY_MGMT_PSK)) &&
+			    (bss->wpa_ie_len != 0 || bss->rsn_ie_len != 0)) {
 				wpa_printf(MSG_DEBUG, "   skip - "
 					   "WPA network");
 				continue;

Modified: wpasupplicant/trunk/wpa_supplicant/wpa_supplicant.c
URL: http://svn.debian.org/wsvn/pkg-wpa/wpasupplicant/trunk/wpa_supplicant/wpa_supplicant.c?rev=900&op=diff
==============================================================================
--- wpasupplicant/trunk/wpa_supplicant/wpa_supplicant.c (original)
+++ wpasupplicant/trunk/wpa_supplicant/wpa_supplicant.c Mon Nov 19 10:59:02 2007
@@ -1514,8 +1514,11 @@
 
 	if (wpa_s->driver_4way_handshake &&
 	    (params.key_mgmt_suite == KEY_MGMT_PSK ||
-	     params.key_mgmt_suite == KEY_MGMT_FT_PSK))
+	     params.key_mgmt_suite == KEY_MGMT_FT_PSK)) {
 		params.passphrase = ssid->passphrase;
+		if (ssid->psk_set)
+			params.psk = ssid->psk;
+	}
 
 #ifdef CONFIG_IEEE80211W
 	switch (ssid->ieee80211w) {




More information about the Pkg-wpa-devel mailing list