aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-01-08 14:33:00 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 09:32:37 (GMT)
commit866e388c56f741c95d83bcffed7e518667946205 (patch)
tree8d37aa00f509b701beae92f52d67afd3869d4897 /hostapd/hostapd.c
parent72f24de82c1673afe1ab0fae2113a66ed5194db3 (diff)
downloadhostap-06-866e388c56f741c95d83bcffed7e518667946205.zip
hostap-06-866e388c56f741c95d83bcffed7e518667946205.tar.gz
hostap-06-866e388c56f741c95d83bcffed7e518667946205.tar.bz2
Moved documentation from developer.txt into source code files
Use Doxygen comments for functions to replace the old text file that was not up-to-date anymore. (cherry picked from commit 1c6e69ccda916960bb03dd5b71df9ca5438bdf0f)
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index 8f2ec4c..c94dbd7 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -281,6 +281,9 @@ static void hostapd_sim_db_cb(void *ctx, void *session_ctx)
#endif /* EAP_SERVER */
+/**
+ * handle_term - SIGINT and SIGTERM handler to terminate hostapd process
+ */
static void handle_term(int sig, void *eloop_ctx, void *signal_ctx)
{
printf("Signal %d received - terminating\n", sig);
@@ -384,6 +387,9 @@ int hostapd_reload_config(struct hostapd_iface *iface)
#ifndef CONFIG_NATIVE_WINDOWS
+/**
+ * handle_reload - SIGHUP handler to reload configuration
+ */
static void handle_reload(int sig, void *eloop_ctx, void *signal_ctx)
{
struct hapd_interfaces *hapds = (struct hapd_interfaces *) eloop_ctx;
@@ -402,6 +408,9 @@ static void handle_reload(int sig, void *eloop_ctx, void *signal_ctx)
#ifdef HOSTAPD_DUMP_STATE
+/**
+ * hostapd_dump_state - SIGUSR1 handler to dump hostapd state to a text file
+ */
static void hostapd_dump_state(struct hostapd_data *hapd)
{
FILE *f;