-
Notifications
You must be signed in to change notification settings - Fork 1
/
mlme.h
19 lines (19 loc) · 1.35 KB
/
mlme.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
int ap_get_seq_ctrl(struct ap_conf *ap);
void ap_free(struct ap_conf *ap);
int ieee80211_mgmt_build(u_char *pkt, int length, int subtype,
int channel, unsigned char *essid,
u_int16_t capability, u_char *rates_supp,
u_char *rates_supp_ext);
int ieee80211_framectrl_build(u_char *pkt, int len,
u_char *addr1, u_char *addr2, u_char *addr3,
u_int16_t sc, u_int16_t fc, u_int16_t duration);
void handle_probe_request(struct monitor_fn_t *mfn, const u_char *pkt, int len, int rssi);
void handle_auth_frame(struct monitor_fn_t *mfn, const u_char *pkt, int len, int rssi);
void handle_deauth_frame(struct monitor_fn_t *mfn, const u_char *pkt, int len, int rssi);
void handle_assoc_request(struct monitor_fn_t *mfn, const u_char *pkt, int len, int rate, int rssi);
void handle_disassoc_request(struct monitor_fn_t *mfn, const u_char *pkt, int len, int rssi);
void handle_reassoc_request(struct monitor_fn_t *mfn, const u_char *pkt, int len, int rate, int rssi);
void handle_data_frame(struct monitor_fn_t *mfn, const u_char *pkt, int len, int rate, int rssi);
struct sta_info* ap_search_client(struct ap_conf *ap, MACADDR_TYPE(mac_address));
int ap_delete_client(struct ap_conf *ap, MACADDR_TYPE(mac_address));
int ap_auth_client(struct ap_conf *ap, MACADDR_TYPE(mac_address), MACADDR_TYPE(bssid));