aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_priv.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-03 09:50:26 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 09:50:26 (GMT)
commit245519e0cd6d4e0c4bcc1810e8a08743c446e8e6 (patch)
tree2da7bd88f686c56774cbdd4b2242ef664b771181 /wpa_supplicant/wpa_priv.c
parent7d7d57b2dcd864122fb1a958cbb7b0f4a337b159 (diff)
downloadhostap-245519e0cd6d4e0c4bcc1810e8a08743c446e8e6.zip
hostap-245519e0cd6d4e0c4bcc1810e8a08743c446e8e6.tar.gz
hostap-245519e0cd6d4e0c4bcc1810e8a08743c446e8e6.tar.bz2
Replace wpa_supplicant_sta_rx() call with driver event
Get rid of wpa_supplicant_sta_rx() and add a new driver event that is marked to be used only with driver_test.c. In addition, remove this functionality from privsep wrapper. This is only use for client mode MLME testing with driver_test.c.
Diffstat (limited to 'wpa_supplicant/wpa_priv.c')
-rw-r--r--wpa_supplicant/wpa_priv.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/wpa_supplicant/wpa_priv.c b/wpa_supplicant/wpa_priv.c
index b7825ed..d2a991b 100644
--- a/wpa_supplicant/wpa_priv.c
+++ b/wpa_supplicant/wpa_priv.c
@@ -915,35 +915,6 @@ void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr,
}
-#ifdef CONFIG_CLIENT_MLME
-void wpa_supplicant_sta_rx(void *ctx, const u8 *buf, size_t len,
- struct ieee80211_rx_status *rx_status)
-{
- struct wpa_priv_interface *iface = ctx;
- struct msghdr msg;
- struct iovec io[3];
- int event = PRIVSEP_EVENT_STA_RX;
-
- wpa_printf(MSG_DEBUG, "STA RX from driver");
- io[0].iov_base = &event;
- io[0].iov_len = sizeof(event);
- io[1].iov_base = (u8 *) rx_status;
- io[1].iov_len = sizeof(*rx_status);
- io[2].iov_base = (u8 *) buf;
- io[2].iov_len = len;
-
- os_memset(&msg, 0, sizeof(msg));
- msg.msg_iov = io;
- msg.msg_iovlen = 3;
- msg.msg_name = &iface->drv_addr;
- msg.msg_namelen = sizeof(iface->drv_addr);
-
- if (sendmsg(iface->fd, &msg, 0) < 0)
- perror("sendmsg(wpas_socket)");
-}
-#endif /* CONFIG_CLIENT_MLME */
-
-
static void wpa_priv_terminate(int sig, void *eloop_ctx, void *signal_ctx)
{
wpa_printf(MSG_DEBUG, "wpa_priv termination requested");