aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/tests/test_wpa.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-17 15:54:40 (GMT)
committerJouni Malinen <j@w1.fi>2009-01-17 15:54:40 (GMT)
commit0f057fb2c705010c96175e4c5e658f076fef0701 (patch)
treeda53bd559271af93c200a86fded03155cf991014 /wpa_supplicant/tests/test_wpa.c
parentb9a2e577b431a54afc045a4dceb787ed50ab955c (diff)
downloadhostap-0f057fb2c705010c96175e4c5e658f076fef0701.zip
hostap-0f057fb2c705010c96175e4c5e658f076fef0701.tar.gz
hostap-0f057fb2c705010c96175e4c5e658f076fef0701.tar.bz2
Added a separate ctx pointer for wpa_msg() calls in WPA supp
This is needed to allow IBSS RSN to use per-peer context while maintaining support for wpa_msg() calls to get *wpa_s as the pointer.
Diffstat (limited to 'wpa_supplicant/tests/test_wpa.c')
-rw-r--r--wpa_supplicant/tests/test_wpa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/tests/test_wpa.c b/wpa_supplicant/tests/test_wpa.c
index 61b6336..4c341b6 100644
--- a/wpa_supplicant/tests/test_wpa.c
+++ b/wpa_supplicant/tests/test_wpa.c
@@ -180,6 +180,7 @@ static int supp_init(struct wpa *wpa)
return -1;
ctx->ctx = wpa;
+ ctx->msg_ctx = wpa;
ctx->set_state = supp_set_state;
ctx->get_bssid = supp_get_bssid;
ctx->ether_send = supp_ether_send;