Parcourir la source

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).
Jouni Malinen il y a 16 ans
Parent
commit
d0fc6e1211
1 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. 7 4
      wpa_supplicant/ibss_rsn.c

+ 7 - 4
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);