aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ibss_rsn.c
diff options
context:
space:
mode:
authorXi Chen <Xi.Chen2@Atheros.com>2011-03-16 14:27:08 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-16 14:27:08 (GMT)
commitf385833bda47890e35f87d0d91493509910c07f3 (patch)
tree807b360dc5e6d074edc035f915bea3f7f78d9a40 /wpa_supplicant/ibss_rsn.c
parentdf4182450195541a4aecbdb1f64a623ae1387d74 (diff)
downloadhostap-f385833bda47890e35f87d0d91493509910c07f3.zip
hostap-f385833bda47890e35f87d0d91493509910c07f3.tar.gz
hostap-f385833bda47890e35f87d0d91493509910c07f3.tar.bz2
IBSS RSN: Add supp_get_state handler
Diffstat (limited to 'wpa_supplicant/ibss_rsn.c')
-rw-r--r--wpa_supplicant/ibss_rsn.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
index 4792ef6..ae3d196 100644
--- a/wpa_supplicant/ibss_rsn.c
+++ b/wpa_supplicant/ibss_rsn.c
@@ -39,6 +39,13 @@ static void supp_set_state(void *ctx, enum wpa_states state)
}
+static enum wpa_states supp_get_state(void *ctx)
+{
+ struct ibss_rsn_peer *peer = ctx;
+ return peer->supp_state;
+}
+
+
static int supp_ether_send(void *ctx, const u8 *dest, u16 proto, const u8 *buf,
size_t len)
{
@@ -171,6 +178,7 @@ int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr,
ctx->ctx = peer;
ctx->msg_ctx = peer->ibss_rsn->wpa_s;
ctx->set_state = supp_set_state;
+ ctx->get_state = supp_get_state;
ctx->ether_send = supp_ether_send;
ctx->get_beacon_ie = supp_get_beacon_ie;
ctx->alloc_eapol = supp_alloc_eapol;