Actually this patch has already been merged into hostapd due 11/11/2011.
But until openwrt uses hostapd-20111103, this patch is needed to let IBSS-RSN
work in wpa_supplicant

Signed-off-by: Antonio Quartulli <[email protected]>
---
 .../800-IBSS-fix-RSN-key-initialisation.patch      |   42 ++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)
 create mode 100644 
package/hostapd/patches/800-IBSS-fix-RSN-key-initialisation.patch

diff --git a/package/hostapd/patches/800-IBSS-fix-RSN-key-initialisation.patch 
b/package/hostapd/patches/800-IBSS-fix-RSN-key-initialisation.patch
new file mode 100644
index 0000000..bd819da
--- /dev/null
+++ b/package/hostapd/patches/800-IBSS-fix-RSN-key-initialisation.patch
@@ -0,0 +1,42 @@
+From 457a126e298895682b5e9a0bbec60e2fa3aa16e5 Mon Sep 17 00:00:00 2001
+From: Johannes Berg <[email protected]>
+Date: Sun, 11 Dec 2011 19:57:50 +0200
+Subject: [PATCH] IBSS: fix RSN key initialisation
+
+Antonio reported that RSN IBSS failed to work.
+We traced it down to a GTK failure, and he then
+bisected it to commit bdffdc5ddb0c838af4c90d11:
+"AP: Reorder WPA/Beacon initialization".
+
+The reason this commit broke it is that the state
+machine's GInit variable is never set to false as
+wpa_init_keys() never gets called, and thus new
+keys are generated every time the state machine
+executes.
+
+Fix this by calling wpa_init_keys() when the new
+group has been initialised.
+
+Reported-by: Antonio Quartulli <[email protected]>
+Tested-by: Antonio Quartulli <[email protected]>
+Signed-hostap: Johannes Berg <[email protected]>
+---
+ wpa_supplicant/ibss_rsn.c |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
+index 4bab906..d4fa39d 100644
+--- a/wpa_supplicant/ibss_rsn.c
++++ b/wpa_supplicant/ibss_rsn.c
+@@ -339,6 +339,8 @@ static int ibss_rsn_auth_init_group(struct ibss_rsn 
*ibss_rsn,
+               return -1;
+       }
+ 
++      wpa_init_keys(ibss_rsn->auth_group);
++
+       return 0;
+ }
+ 
+-- 
+1.7.3.4
+
-- 
1.7.3.4

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to