15 #ifndef HOSTAPD_SERVICE_H
16 #define HOSTAPD_SERVICE_H
19 #include <sys/types.h>
21 #include "../radius/radius_server.h"
22 #include "../supervisor/supervisor_config.h"
23 #include "../utils/allocs.h"
24 #include "../utils/iface.h"
25 #include "../utils/os.h"
28 #define ATTACH_AP_COMMAND "ATTACH"
30 #define STA_AP_COMMAND \
33 #define GENERIC_AP_COMMAND_OK_REPLY "OK"
34 #define GENERIC_AP_COMMAND_FAIL_REPLY \
37 #define PING_AP_COMMAND "PING"
38 #define PING_AP_COMMAND_REPLY "PONG"
40 #define DENYACL_ADD_COMMAND \
42 #define DENYACL_DEL_COMMAND \
File containing the definition of AP config structures.
AP_CONNECTION_STATUS
The AP conection status.
Definition: ap_config.h:41
int denyacl_add_ap_command(struct apconf *hconf, const char *mac_addr)
Deny ACL ADD AP command.
Definition: ap_service.c:94
int disconnect_ap_command(struct apconf *hconf, const char *mac_addr)
Disconnect and reconnect a MAC device from the AP.
Definition: ap_service.c:102
int ping_ap_command(struct apconf *hconf)
Pings the hostapd daemon.
Definition: ap_service.c:34
void(* ap_service_fn)(struct supervisor_context *context, uint8_t mac_addr[], enum AP_CONNECTION_STATUS status)
Definition: ap_service.h:46
bool close_ap(struct supervisor_context *context)
Closes (terminates) AP process.
Definition: ap_service.c:316
int run_ap(struct supervisor_context *context, bool exec_ap, bool generate_ssid, struct run_ap_callback_fn_struct *ap_callback_fn)
Runs the AP service.
Definition: ap_service.c:275
int check_sta_ap_command(struct apconf *hconf, const char *mac_addr)
Check if a station is registered on the AP.
Definition: ap_service.c:116
int denyacl_del_ap_command(struct apconf *hconf, const char *mac_addr)
Deny ACL DEL AP command.
Definition: ap_service.c:98
The hostapd configuration structure.
Definition: ap_config.h:51
Definition: ap_service.h:51
ap_service_fn ap_service_fn
Definition: ap_service.h:53
Supervisor structure definition.
Definition: supervisor_config.h:45