aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ibss_rsn.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-15 23:11:50 (GMT)
committerJouni Malinen <j@w1.fi>2009-01-15 23:11:50 (GMT)
commitd0fc6e1211bd3b543aaa5759b076421aef04f212 (patch)
tree93b0ceac549c581c60fe94b534b317bf7d15ce43 /wpa_supplicant/ibss_rsn.c
parente2d492dd08a7b3b56f0d5663676b76ca7b0b063d (diff)
downloadhostap-d0fc6e1211bd3b543aaa5759b076421aef04f212.zip
hostap-d0fc6e1211bd3b543aaa5759b076421aef04f212.tar.gz
hostap-d0fc6e1211bd3b543aaa5759b076421aef04f212.tar.bz2
Use a hardcoded RSN IE for testing to start Authenticator
This needs to be replaced with proper RSN IE from the peer STA (e.g., from Probe Response).
Diffstat (limited to 'wpa_supplicant/ibss_rsn.c')
-rw-r--r--wpa_supplicant/ibss_rsn.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
index 6fc1871..f9b069d 100644
--- a/wpa_supplicant/ibss_rsn.c
+++ b/wpa_supplicant/ibss_rsn.c
@@ -240,13 +240,16 @@ static int ibss_rsn_auth_init(struct ibss_rsn *ibss_rsn,
return -1;
}
-#if 0 /* TODO: get peer RSN IE with Probe Request */
- if (wpa_validate_wpa_ie(ibss_rsn->auth_group, peer->auth, PEER_IE,
- PEER_IE_LEN, NULL, 0) != WPA_IE_OK) {
+ /* TODO: get peer RSN IE with Probe Request */
+ if (wpa_validate_wpa_ie(ibss_rsn->auth_group, peer->auth,
+ (u8 *) "\x30\x12\x01\x00"
+ "\x00\x0f\xac\x04"
+ "\x01\x00\x00\x0f\xac\x04"
+ "\x01\x00\x00\x0f\xac\x02", 20, NULL, 0) !=
+ WPA_IE_OK) {
wpa_printf(MSG_DEBUG, "AUTH: wpa_validate_wpa_ie() failed");
return -1;
}
-#endif
wpa_auth_sm_event(peer->auth, WPA_ASSOC);