aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-03 14:46:18 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 14:46:18 (GMT)
commita70a5d6d0644c623346af907292157a03f2297ed (patch)
tree8417a924a1f46879d7b77a47748ee426f35f78c8 /src/ap
parentb38ddb0c506ec2a922229e29e583d79eedfea1b4 (diff)
downloadhostap-a70a5d6d0644c623346af907292157a03f2297ed.zip
hostap-a70a5d6d0644c623346af907292157a03f2297ed.tar.gz
hostap-a70a5d6d0644c623346af907292157a03f2297ed.tar.bz2
Replace hostapd_notif_new_sta() with new driver event, EVENT_NEW_STA
Diffstat (limited to 'src/ap')
-rw-r--r--src/ap/drv_callbacks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index ef0b225..09d4b1d 100644
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -31,7 +31,7 @@
#include "ap_config.h"
-int hostapd_notif_new_sta(struct hostapd_data *hapd, const u8 *addr)
+static int hostapd_notif_new_sta(struct hostapd_data *hapd, const u8 *addr)
{
struct sta_info *sta = ap_get_sta(hapd, addr);
if (sta)
@@ -395,6 +395,8 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
data->rx_probe_req.ie,
data->rx_probe_req.ie_len);
break;
+ case EVENT_NEW_STA:
+ hostapd_notif_new_sta(hapd, data->new_sta.addr);
default:
wpa_printf(MSG_DEBUG, "Unknown event %d", event);
break;