aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/rx_mgmt.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-06 20:57:49 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-07 21:29:01 (GMT)
commit53650bcab4fd0fc8283072fcef3634c6ecbf8f50 (patch)
tree9a932b19d60002d7a267697f1ee2fbd341477e4c /wlantest/rx_mgmt.c
parent32234bba52d5ad370b91bb2cbd6b2c24b03c2512 (diff)
downloadhostap-53650bcab4fd0fc8283072fcef3634c6ecbf8f50.zip
hostap-53650bcab4fd0fc8283072fcef3634c6ecbf8f50.tar.gz
hostap-53650bcab4fd0fc8283072fcef3634c6ecbf8f50.tar.bz2
wlantest: Add PTK derivation based on passphrases
Allow pre-configuration of passphrases (-p<passphrase>) to provide enough information for wlantest to be able to derive PMK for each BSS and PTK for each STA going through 4-Way Handshake (at least message 2 and 3 needs to be received).
Diffstat (limited to 'wlantest/rx_mgmt.c')
-rw-r--r--wlantest/rx_mgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wlantest/rx_mgmt.c b/wlantest/rx_mgmt.c
index 2100a8a..5b630c6 100644
--- a/wlantest/rx_mgmt.c
+++ b/wlantest/rx_mgmt.c
@@ -76,7 +76,7 @@ static void rx_mgmt_beacon(struct wlantest *wt, const u8 *data, size_t len)
return;
}
- bss_update(bss, &elems);
+ bss_update(wt, bss, &elems);
}
@@ -103,7 +103,7 @@ static void rx_mgmt_probe_resp(struct wlantest *wt, const u8 *data, size_t len)
return;
}
- bss_update(bss, &elems);
+ bss_update(wt, bss, &elems);
}