aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/driver.h
blob: ec3994e4727513bc1bb5627a81bdd2678550547f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef DRIVER_H
#define DRIVER_H

struct hostap_sta_driver_data {
	unsigned long rx_packets, tx_packets, rx_bytes, tx_bytes;
};


int hostapd_set_iface_flags(hostapd *hapd, int dev_up);
int hostapd_ioctl(hostapd *hapd, struct prism2_hostapd_param *param, int len);
int hostap_ioctl_prism2param(hostapd *hapd, int param, int value);
int hostap_ioctl_setiwessid(hostapd *hapd, char *buf, int len);
int hostapd_set_encryption(hostapd *hapd, const char *alg, u8 *addr,
			   int idx, u8 *key, size_t key_len);
int hostapd_get_seqnum(struct hostapd_data *hapd, u8 *addr, int idx, u8 *seq);
void remove_sta(hostapd *hapd, struct sta_info *sta);
int hostapd_flush(hostapd *hapd);
int hostapd_read_sta_driver_data(hostapd *hapd,
				 struct hostap_sta_driver_data *data,
				 u8 *addr);
int hostapd_set_generic_elem(struct hostapd_data *hapd,
			     const char *elem, size_t elem_len);
int hostapd_wireless_event_init(struct hostapd_data *hapd);
void hostapd_wireless_event_deinit(struct hostapd_data *hapd);

#endif /* DRIVER_H */