aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ibss_rsn.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-12-11 17:57:50 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-11 17:57:50 (GMT)
commit457a126e298895682b5e9a0bbec60e2fa3aa16e5 (patch)
treed80a6f7c4c390de5949a454dcd7387adef5d6343 /wpa_supplicant/ibss_rsn.c
parent671a50392d32d6ca4ccf1611f23aea86806aaa4f (diff)
downloadhostap-457a126e298895682b5e9a0bbec60e2fa3aa16e5.zip
hostap-457a126e298895682b5e9a0bbec60e2fa3aa16e5.tar.gz
hostap-457a126e298895682b5e9a0bbec60e2fa3aa16e5.tar.bz2
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 <ordex@autistici.org> Tested-by: Antonio Quartulli <ordex@autistici.org> Signed-hostap: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'wpa_supplicant/ibss_rsn.c')
-rw-r--r--wpa_supplicant/ibss_rsn.c2
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;
}