1 /*
2  * Control interface for shared AP commands
3  * Copyright (c) 2004-2013, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef CTRL_IFACE_AP_H
10 #define CTRL_IFACE_AP_H
11 
12 int hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd,
13                                          char *buf, size_t buflen);
14 int hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr,
15                                  char *buf, size_t buflen);
16 int hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr,
17                                         char *buf, size_t buflen);
18 int hostapd_ctrl_iface_deauthenticate(struct hostapd_data *hapd,
19                                               const char *txtaddr);
20 int hostapd_ctrl_iface_disassociate(struct hostapd_data *hapd,
21                                             const char *txtaddr);
22 int hostapd_ctrl_iface_signature(struct hostapd_data *hapd,
23                                          const char *txtaddr,
24                                          char *buf, size_t buflen);
25 int hostapd_ctrl_iface_poll_sta(struct hostapd_data *hapd,
26                                         const char *txtaddr);
27 int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
28                                     size_t buflen);
29 int hostapd_parse_csa_settings(const char *pos,
30                                      struct csa_settings *settings);
31 int hostapd_ctrl_iface_stop_ap(struct hostapd_data *hapd);
32 int hostapd_ctrl_iface_pmksa_list(struct hostapd_data *hapd, char *buf,
33                                           size_t len);
34 void hostapd_ctrl_iface_pmksa_flush(struct hostapd_data *hapd);
35 int hostapd_ctrl_iface_pmksa_add(struct hostapd_data *hapd, char *cmd);
36 int hostapd_ctrl_iface_pmksa_list_mesh(struct hostapd_data *hapd,
37                                                const u8 *addr, char *buf, size_t len);
38 void * hostapd_ctrl_iface_pmksa_create_entry(const u8 *aa, char *cmd);
39 
40 int hostapd_ctrl_iface_disassoc_imminent(struct hostapd_data *hapd,
41                                                    const char *cmd);
42 int hostapd_ctrl_iface_ess_disassoc(struct hostapd_data *hapd,
43                                             const char *cmd);
44 int hostapd_ctrl_iface_bss_tm_req(struct hostapd_data *hapd,
45                                           const char *cmd);
46 int hostapd_ctrl_iface_acl_add_mac(struct mac_acl_entry **acl, int *num,
47                                            const char *cmd);
48 int hostapd_ctrl_iface_acl_del_mac(struct mac_acl_entry **acl, int *num,
49                                            const char *txtaddr);
50 void hostapd_ctrl_iface_acl_clear_list(struct mac_acl_entry **acl,
51                                                int *num);
52 int hostapd_ctrl_iface_acl_show_mac(struct mac_acl_entry *acl, int num,
53                                             char *buf, size_t buflen);
54 int hostapd_disassoc_accept_mac(struct hostapd_data *hapd);
55 int hostapd_disassoc_deny_mac(struct hostapd_data *hapd);
56 
57 #endif /* CTRL_IFACE_AP_H */
58