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).
This commit is contained in:
Jouni Malinen 2009-01-16 01:11:50 +02:00
parent e2d492dd08
commit d0fc6e1211

View file

@ -240,13 +240,16 @@ static int ibss_rsn_auth_init(struct ibss_rsn *ibss_rsn,
return -1; return -1;
} }
#if 0 /* TODO: get peer RSN IE with Probe Request */ /* TODO: get peer RSN IE with Probe Request */
if (wpa_validate_wpa_ie(ibss_rsn->auth_group, peer->auth, PEER_IE, if (wpa_validate_wpa_ie(ibss_rsn->auth_group, peer->auth,
PEER_IE_LEN, NULL, 0) != WPA_IE_OK) { (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"); wpa_printf(MSG_DEBUG, "AUTH: wpa_validate_wpa_ie() failed");
return -1; return -1;
} }
#endif
wpa_auth_sm_event(peer->auth, WPA_ASSOC); wpa_auth_sm_event(peer->auth, WPA_ASSOC);