aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/main.c
Commit message (Collapse)AuthorAgeFilesLines
* hostapd: Allow 'none' driver to be started without ifnameJouni Malinen2012-02-161-1/+3
| | | | | | | | | Commit 0dcc4dc4b31d48ed32940b9adb0b9fcdcab32dc3 made driver initialization conditional on interface name being configured. This can break hostapd-as-RADIUS-server use case where this parameter does not really make any sense. Fix this with a special case for the none driver. Signed-hostap: Jouni Malinen <j@w1.fi>
* Move hostapd_for_each_interface() and hapd_interfaces into src/apJouni Malinen2012-02-161-23/+0
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Do not call driver_init if hostapd interface is not yet configuredShan Palanisamy2012-02-161-4/+6
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Do not call hapd_deinit if driver was not initializedShan Palanisamy2012-02-161-1/+1
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* Update copyright notices to include year 2012Jouni Malinen2012-01-011-1/+1
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Maintain internal copy of Probe Response offload capabilitiesArik Nemtsov2011-12-101-1/+3
| | | | | Signed-hostap: Arik Nemtsov <arik@wizery.com> Signed-off-by: Arik Nemtsov <arik@wizery.com>
* Postpone global_init() call until first driver instance is initializedJouni Malinen2011-10-231-13/+15
| | | | | | | This avoids allocating global driver state for driver wrappers that are built in but not used. This can save some resources and avoids failures with driver_nl80211.c that is now initializing netlink connections for nl80211 in global_init().
* hostapd: Call global_init/global_deinit driver_opsJouni Malinen2011-10-221-0/+50
| | | | | Now both wpa_supplicant and hostapd allow the driver wrappers to use the global context similarly.
* random: Add support for maintaining internal entropy store over restartsJouni Malinen2011-05-311-5/+11
| | | | | | | This can be used to avoid rejection of first two 4-way handshakes every time hostapd (or wpa_supplicant in AP/IBSS mode) is restarted. A new command line parameter, -e, can now be used to specify an entropy file that will be used to maintain the needed state.
* hostapd: Fix interfaces.iface initializationGuy Eilam2011-04-151-2/+2
| | | | | | | | | | Set all the interfaces.iface pointers to NULL after the allocation of that memory block for cases those pointers are accessed during each of the interfaces initialization process (hostapd_interface_init()). One example for such case is during WPS initialization when the code tries to fetch the uuid from each of the interfaces. Signed-off-by: Guy Eilam <guy@wizery.com>
* Add driver capa flag for EAPOL TX status and store capa in hostapdJouni Malinen2011-03-291-0/+5
|
* random: Read /dev/random in the background with eloop read socketJouni Malinen2011-03-221-0/+5
| | | | | | This makes it more likely to be able to fetch the 20 octet seed from /dev/random in cases where other programs may also be competing for this.
* Update copyright notices to include the new yearJouni Malinen2011-02-271-2/+2
|
* hostapd: Add iface-name wpa_msg() callback registrationBen Greear2011-02-061-0/+11
| | | | | | | This allows the interface name to be automatically added to log file lines by the core logging logic. Signed-off-by: Ben Greear <greearb@candelatech.com>
* hostapd: Allow logging to fileBen Greear2011-02-061-1/+14
| | | | | | Also supports 'relog' CLI command to re-open the log file. Signed-off-by: Ben Greear <greearb@candelatech.com>
* AP: Add wpa_msg() events for EAP server state machineGregory Detal2010-04-071-0/+1
|
* Preparations for v0.7.1 releaseJouni Malinen2010-01-161-2/+2
|
* hostapd: Fix deinit on initialization failureJouni Malinen2010-01-031-0/+2
|
* Split hostapd_interface_deinit() into deinit and free partsJouni Malinen2009-12-271-17/+16
| | | | | | | This allows the driver interface to be deinitialized before struct hostapd_data instance gets freed. This needs to be done so that the driver wrapper does not maintain a context pointer to freed memory.
* Rename some src/ap files to avoid duplicate file namesJouni Malinen2009-12-261-4/+4
| | | | | | Doxygen and some build tools may get a bit confused about same file name being used in different directories. Clean this up a bit by renaming some of the duplicated file names in src/ap.
* Get rid of direct hostapd_for_each_interface() callsJouni Malinen2009-12-251-3/+4
| | | | | | src/ap/*.c must not call functions in hostapd or wpa_supplicant directories directly, so avoid this by using a callback function pointer.
* Move rest of the generic AP mode functionality into src/apJouni Malinen2009-12-251-0/+3
|
* Move driver deinitialization away from hostapd.cJouni Malinen2009-12-251-2/+16
| | | | | This matches with the earlier change of moving driver initialization and allows more control on how the driver context is managed.
* Clean up some of the hostapd.h function prototype definitionsJouni Malinen2009-12-251-0/+13
| | | | | Not all prototypes in hostapd.h really belong there. This is an initial step in cleaning that up.
* Move authentication server setup into separate fileJouni Malinen2009-12-251-6/+0
|
* Move hostapd driver initialization away from hostapd.cJouni Malinen2009-12-251-1/+53
| | | | | This makes it easier to customize AP mode initialization for wpa_supplicant.
* Move wps_hostapd.c into src/apJouni Malinen2009-12-251-0/+1
|
* Move generic AP functionality implementation into src/apJouni Malinen2009-12-251-2/+2
| | | | | | | | | | This code can be shared by both hostapd and wpa_supplicant and this is an initial step in getting the generic code moved to be under the src directories. Couple of generic files still remain under the hostapd directory due to direct dependencies to files there. Once the dependencies have been removed, they will also be moved to the src/ap directory to allow wpa_supplicant to be built without requiring anything from the hostapd directory.
* Move hostapd configuration parser into separate fileJouni Malinen2009-12-241-0/+2
| | | | | | config.c includes now only the generic helper functions that are needed both for hostapd and the AP mode operations in wpa_supplicant. hostapd/config_file.c is only needed for hostapd.
* hostapd: Call os_program_{init,deinit}()Jouni Malinen2009-12-191-0/+5
|
* eloop: Remove global user data pointerJouni Malinen2009-12-191-9/+9
| | | | | This is not really needed since all signal handlers can use a context pointer provided during signal handler registration.
* Make hostapd_for_each_interface() take context pointer as argumentJouni Malinen2009-12-191-7/+12
| | | | This removes need for using eloop_get_user_data().
* Remove src/crypto from default include pathJouni Malinen2009-11-291-3/+3
| | | | | | In addition, start ordering header file includes to be in more consistent order: system header files, src/utils, src/*, same directory as the *.c file.
* Conver hostapd specific files to include common.hJouni Malinen2009-11-291-1/+2
| | | | | | Instead of getting this via hostapd.h, include it as the first non-system header file in all source code files in the same way as used in all other files.
* Remove src/common from default header file pathJouni Malinen2009-11-291-1/+1
| | | | | | | | | | This makes it clearer which files are including header from src/common. Some of these cases should probably be cleaned up in the future not to do that. In addition, src/common/nl80211_copy.h and wireless_copy.h were moved into src/drivers since they are only used by driver wrappers and do not need to live in src/common.
* Fix use-after-free issue with pid_file in hostapd terminationJouni Malinen2009-11-101-1/+1
|
* Figure out absolute path for the pid file before daemonizingJouni Malinen2009-08-151-2/+4
| | | | | This allows relative path to be used in the same way as was already supported by wpa_supplicant.
* Move hostapd_init() into main.cJouni Malinen2009-03-261-0/+64
|
* Move main() and configuration file related functions into main.cJouni Malinen2009-03-261-0/+406
This makes it easier to share hostapd.c with wpa_supplicant