aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-22 08:16:48 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-22 08:16:48 (GMT)
commitadd11058e2b93dc80007928e0887c33555a37d34 (patch)
tree081564c448971c06cc253bfc66b4ae33b732a1ee /wlantest
parent012112621133345c4aff3f054df0c82a023bddf7 (diff)
downloadhostap-add11058e2b93dc80007928e0887c33555a37d34.zip
hostap-add11058e2b93dc80007928e0887c33555a37d34.tar.gz
hostap-add11058e2b93dc80007928e0887c33555a37d34.tar.bz2
wlantest: Fix couple of compiler warnings
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/bss.c2
-rw-r--r--wlantest/rx_eapol.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/wlantest/bss.c b/wlantest/bss.c
index 94f2580..d554853 100644
--- a/wlantest/bss.c
+++ b/wlantest/bss.c
@@ -92,7 +92,7 @@ int bss_add_pmk_from_passphrase(struct wlantest_bss *bss,
pmk = os_zalloc(sizeof(*pmk));
if (pmk == NULL)
return -1;
- if (pbkdf2_sha1(passphrase, (char *) bss->ssid, bss->ssid_len, 4096,
+ if (pbkdf2_sha1(passphrase, bss->ssid, bss->ssid_len, 4096,
pmk->pmk, sizeof(pmk->pmk)) < 0) {
os_free(pmk);
return -1;
diff --git a/wlantest/rx_eapol.c b/wlantest/rx_eapol.c
index 7f2015d..a4e6e26 100644
--- a/wlantest/rx_eapol.c
+++ b/wlantest/rx_eapol.c
@@ -648,7 +648,6 @@ static void rx_data_eapol_key_1_of_2(struct wlantest *wt, const u8 *dst,
struct wlantest_sta *sta;
const struct ieee802_1x_hdr *eapol;
const struct wpa_eapol_key *hdr;
- const u8 *key_data;
u16 key_info, ver;
u8 *decrypted;
size_t decrypted_len = 0;
@@ -679,7 +678,6 @@ static void rx_data_eapol_key_1_of_2(struct wlantest *wt, const u8 *dst,
}
wpa_printf(MSG_DEBUG, "Valid MIC found in EAPOL-Key 1/2");
- key_data = (const u8 *) (hdr + 1);
if (sta->proto & WPA_PROTO_RSN &&
!(key_info & WPA_KEY_INFO_ENCR_KEY_DATA)) {
wpa_printf(MSG_INFO, "EAPOL-Key 1/2 without EncrKeyData bit");