2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* hostapd / Station table
|
2008-12-26 10:46:21 +01:00
|
|
|
* Copyright (c) 2002-2008, Jouni Malinen <j@w1.fi>
|
2008-02-28 02:34:43 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef STA_INFO_H
|
|
|
|
#define STA_INFO_H
|
|
|
|
|
|
|
|
int ap_for_each_sta(struct hostapd_data *hapd,
|
|
|
|
int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
|
void *ctx),
|
|
|
|
void *ctx);
|
|
|
|
struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta);
|
|
|
|
void ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta);
|
|
|
|
void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
|
|
|
|
void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
|
|
|
|
void hostapd_free_stas(struct hostapd_data *hapd);
|
|
|
|
void ap_handle_timer(void *eloop_ctx, void *timeout_ctx);
|
|
|
|
void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
|
u32 session_timeout);
|
|
|
|
void ap_sta_no_session_timeout(struct hostapd_data *hapd,
|
|
|
|
struct sta_info *sta);
|
|
|
|
struct sta_info * ap_sta_add(struct hostapd_data *hapd, const u8 *addr);
|
|
|
|
void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
|
u16 reason);
|
|
|
|
void ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
|
u16 reason);
|
|
|
|
int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
|
int old_vlanid);
|
2008-12-26 10:46:21 +01:00
|
|
|
void ap_sta_start_sa_query(struct hostapd_data *hapd, struct sta_info *sta);
|
|
|
|
void ap_sta_stop_sa_query(struct hostapd_data *hapd, struct sta_info *sta);
|
2008-12-26 11:30:34 +01:00
|
|
|
int ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta);
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
#endif /* STA_INFO_H */
|