aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-03 16:22:22 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 16:22:22 (GMT)
commit1d041bec843d55cd6be7be61ba83ddf96c5e2368 (patch)
tree608ecefa4b3841616c3f14edd28df707ec9c3616 /src/drivers/driver_atheros.c
parenta8e0505bf0576ec014149130544a849b3d46e23d (diff)
downloadhostap-1d041bec843d55cd6be7be61ba83ddf96c5e2368.zip
hostap-1d041bec843d55cd6be7be61ba83ddf96c5e2368.tar.gz
hostap-1d041bec843d55cd6be7be61ba83ddf96c5e2368.tar.bz2
Use generic driver event notification for AP mode assoc/disassoc
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index e3a7e7d..1e72ec5 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -732,12 +732,12 @@ madwifi_set_ap_wps_ie(const char *ifname, void *priv,
#define madwifi_set_ap_wps_ie NULL
#endif /* CONFIG_WPS */
-static int
+static void
madwifi_new_sta(struct madwifi_driver_data *drv, u8 addr[IEEE80211_ADDR_LEN])
{
struct hostapd_data *hapd = drv->hapd;
struct ieee80211req_wpaie ie;
- int ielen = 0, res;
+ int ielen = 0;
u8 *iebuf = NULL;
/*
@@ -778,15 +778,13 @@ madwifi_new_sta(struct madwifi_driver_data *drv, u8 addr[IEEE80211_ADDR_LEN])
ielen += 2;
no_ie:
- res = hostapd_notif_assoc(hapd, addr, iebuf, ielen);
+ drv_event_assoc(hapd, addr, iebuf, ielen);
if (memcmp(addr, drv->acct_mac, ETH_ALEN) == 0) {
/* Cached accounting data is not valid anymore. */
memset(drv->acct_mac, 0, ETH_ALEN);
memset(&drv->acct_data, 0, sizeof(drv->acct_data));
}
-
- return res;
}
static void
@@ -904,8 +902,8 @@ madwifi_wireless_event_wireless(struct madwifi_driver_data *drv,
switch (iwe->cmd) {
case IWEVEXPIRED:
- hostapd_notif_disassoc(drv->hapd,
- (u8 *) iwe->u.addr.sa_data);
+ drv_event_disassoc(drv->hapd,
+ (u8 *) iwe->u.addr.sa_data);
break;
case IWEVREGISTERED:
madwifi_new_sta(drv, (u8 *) iwe->u.addr.sa_data);