aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
Commit message (Collapse)AuthorAgeFilesLines
* WPS NFC: Add AP mode connection handover reportJouni Malinen2014-01-271-8/+65
| | | | | | | | The new NFC connection handover design requires the AP/Registrar to process the connection handover request message received from the Enrollee. Add control interface commands for handling this. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Android: Remove hostapd dump_file functionalityDmitry Shmidt2014-01-141-1/+0
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* hostapd: Skip full AP configuration validation on SET commandJouni Malinen2014-01-071-2/+2
| | | | | | | | | | | It is possible for the configuration to be temporarily invalid when adding a new AP through SET commands followed by ENABLE. Avoid this issue by using less strict validation on SET commands and perform full configuration validation only on ENABLE. Use cases with configuration file maintain their previous behavior, i.e., full validation after the file has been read. Signed-hostap: Jouni Malinen <j@w1.fi>
* nl80211: Document how to configure for libnl 2.0 and 3.2Ben Greear2014-01-071-0/+13
| | | | | | Reported-by: Xose Vazquez Perez <xose.vazquez@gmail.com> Signed-hostap: Ben Greear <greearb@candelatech.com>
* Update copyright notices for the new year 2014Jouni Malinen2014-01-073-3/+3
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Add DRIVER-STATUS command for hostapdJouni Malinen2014-01-072-2/+6
| | | | | | | | This is just like the same command in wpa_supplicant, i.e., "hostapd_cli status driver" can be used to fetch information about the driver status and capabilities. Signed-hostap: Jouni Malinen <j@w1.fi>
* Fix EAP-GPSK server compilation for SHA256 cipher suiteJouni Malinen2014-01-072-2/+2
| | | | | | | | Need to use common EAP_GPSK_SHA256 define for this instead of the server-specific EAP_SERVER_GPSK_SHA256 which was not really used anywhere. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove hostapd dump_file functionalityJouni Malinen2014-01-029-111/+11
| | | | | | | | | | This debugging mechanism has now been deprecated by the control interface commands that can be used to fetch same internal information from hostapd in a more convenient way. Leave the empty USR1 signal handler and configuration file parameter for backwards compatibility. They can be removed in future versions of hostapd. Signed-hostap: Jouni Malinen <j@w1.fi>
* Make EAPOL dump data available through ctrl_iface STA commandJouni Malinen2014-01-021-3/+6
| | | | | | | The per-STA/Supplicant state information from the EAPOL authenticator is now available through "STA <MAC Address> eapol" command. Signed-hostap: Jouni Malinen <j@w1.fi>
* Convert EAPOL authenticator dump into easier to parse formatJouni Malinen2014-01-021-4/+8
| | | | | | | Use name=value entries one per each line and rename the state entries to have unique names. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove hostapd dump_file data that is available through ctrl_ifaceJouni Malinen2014-01-021-97/+0
| | | | | | | | | There is no need to maintain two interfaces for fetching debug information about hostapd state. The control interface is more convenient for number of use cases, so prefer that over the dump_file mechanism. Signed-hostap: Jouni Malinen <j@w1.fi>
* Make RADIUS server MIB available through control interfaceJouni Malinen2014-01-022-0/+22
| | | | | | | "MIB radius_server" control interface can now be used to fetch the RADIUS server MIB data from hostapd. Signed-hostap: Jouni Malinen <j@w1.fi>
* Update EAP-FAST note regarding OpenSSL supportJouni Malinen2014-01-021-4/+3
| | | | | | This is now supported in the current OpenSSL version. Signed-hostap: Jouni Malinen <j@w1.fi>
* Declare wpa_debug_* variables in src/utils/wpa_debug.hJouni Malinen2013-12-311-5/+0
| | | | | | | | | These were somewhat more hidden to avoid direct use, but there are now numerous places where these are needed and more justification to make the extern int declarations available from wpa_debug.h. In addition, this avoids some warnings from sparse. Signed-hostap: Jouni Malinen <j@w1.fi>
* Declare wpa_drivers in src/drivers/driver.hJouni Malinen2013-12-312-5/+0
| | | | | | This avoids some warnings from sparse. Signed-hostap: Jouni Malinen <j@w1.fi>
* WNM: Move disassociation imminent sending to wnm_ap.cJouni Malinen2013-12-271-24/+7
| | | | | | | This gets all WNM BSS Transition Management frame building and sending within hostapd into the same location. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Make STA flags available through ctrl_iface STA commandJouni Malinen2013-12-271-21/+5
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove unused STA flagsJouni Malinen2013-12-271-4/+1
| | | | | | | These three flags were only displayed, but never set or used for anything else. Signed-hostap: Jouni Malinen <j@w1.fi>
* WNM: Add STA flag to indicate the current WNM-Sleep-Mode stateJouni Malinen2013-12-271-1/+5
| | | | | | | | This can be useful for displaying the current STA state and also for determining whether some operations are likely to fail or need additional delay. Signed-hostap: Jouni Malinen <j@w1.fi>
* WNM: Move ESS Disassoc Imminent sending to a helper functionJouni Malinen2013-12-271-72/+11
| | | | | | | This makes it easier to trigger the ESS Disassociation Imminent operation from different sources. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Make CONFIG_TESTING_OPTIONS=y enable all testing optionsJouni Malinen2013-12-261-4/+5
| | | | | | | This makes it easier to enable various testing parameters and functionality in build configuration. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* hostapd: Allow external management frame processing or testingJouni Malinen2013-12-261-0/+37
| | | | | | | | | | | This enables more convenient protocol testing of station side functionality in various error cases and unexpected sequences without having to implement each test scenario within hostapd. ext_mgmt_frame_handle parameter can be set to 1 to move all management frame processing into an external program through control interface events (MGMT-RX and MGMT-TX-STATUS) and command (MGMT_TX). Signed-hostap: Jouni Malinen <j@w1.fi>
* Add make lcov-html to generate code coverage reportJouni Malinen2013-12-261-2/+14
| | | | | | | | In addition, update build rules to compile object files in the same directory as the source code file if CONFIG_CODE_COVERAGE=y is set to make lcov find the source code files. Signed-hostap: Jouni Malinen <j@w1.fi>
* Add CONFIG_CODE_COVERAGE=y option for gcovJouni Malinen2013-11-241-1/+9
| | | | | | This can be used to measure code coverage from test scripts. Signed-hostap: Jouni Malinen <j@w1.fi>
* Use monotonic clock for relative time for eloop if availableJohannes Berg2013-11-201-0/+8
| | | | | | | | | | | | | | | Relative time shouldn't be calculated based on gettimeofday because that clock can jump (e.g., when the time is adjusted by the system administrator.) On systems where that is available, use CLOCK_BOOTTIME (on fairly recent Linux systems, this clock takes into account the time spend suspended) or CLOCK_MONOTONIC (on Linux and some POSIX systems, this clock is just freely running with no adjustments.) Reported-by: Holger Schurig <holgerschurig@gmail.com> Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* Add chan_switch to ctrl interface of wpa_supplicant and hostapdAndrei Otcheretianski2013-11-172-0/+59
| | | | | | | Add chan_switch to the control interface of wpa_supplicant and hostapd, and also to wpa_cli and hostapd_cli. Signed-hostap: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* Android: Sync Android.mk with MakefileJouni Malinen2013-11-081-0/+4
| | | | | | | This brings in commit 0648c3b8f5c38bc2206758738278e074f6f5b11b changes to add Linux tracing option for hostapd. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Android: Sync Android.mk with MakefileJouni Malinen2013-11-081-4/+0
| | | | | | | This brings in commit fd2f2d0489635d590930bc0945fbc438ba1387e2 changes to remove optional gnutls-extra dependency. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Android: Set proper path to keystore include dirDmitry Shmidt2013-11-081-4/+1
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Add CONFIG_ACS option to makefileDmitry Shmidt2013-11-081-0/+6
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Add liblogYing Wang2013-11-081-2/+2
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Restore OpenSSL ENGINE supportKenny Root2013-11-081-3/+0
| | | | | | We now use an OpenSSL ENGINE to support keystore functionality. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Remove obsolete WPA_UNICODE_SSID defineDmitry Shmidt2013-11-071-3/+0
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* hostapd: Allow hostapd_cli to work on AndroidJeff Johnson2013-11-072-1/+10
| | | | | | | | Add definitions of the Android specific directories used for control interface sockets so that hostapd_cli can connect to the Android hostapd. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* hostapd: Add option to send OBSS scan paramsPaul Stewart2013-11-072-0/+9
| | | | | | | | | | Add a parameter to send the overlapping BSS scan parameter information element. This will require clients to perform background scans to check for neigbors overlapping this HT40 BSS. Since the implementation is incomplete it should only be used for testing. Signed-hostap: Paul Stewart <pstew@chromium.org>
* Android: Add ANDROID_P2P define under BOARD_WLAN_DEVICEDmitry Shmidt2013-11-071-0/+12
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Fix CFLAGS -> L_CFLAGSDmitry Shmidt2013-11-071-1/+1
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* hostapd: Fix DETACH command debug prints to avoid use of freed memoryJouni Malinen2013-11-051-4/+4
| | | | | | | | | | | | | In case a control interface socket is detached because of sendmsg() failing for the socket, function call to detach the socket uses a pointer to the socket information in the structure to be freed. Reorder code to print socket info before freeing the data to avoid use of freed memory in case debug prints are enabled. This is similar to the earlier wpa_supplicant fix in commit a235aca316a8a4729735fecb00f7d7775b38d993. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* hostapd: Do not terminate process on dynamic interface add failureJouni Malinen2013-11-051-0/+1
| | | | | | | | | | Limit the calls to eloop_terminate() to happen only for the initialization failure from the interfaces that we specified on the command line. This allows hostapd process to continue operating even if a dynamically added interface fails to start up. This allows the upper layer software to fix a configuration error and retry. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Document AP mode startup functionsJouni Malinen2013-11-031-1/+20
| | | | | | | This provides some more details on how interfaces and BSSes are initialized during hostapd startup. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Fix multi-BSS configuration file parsing regressionJouni Malinen2013-11-031-3/+5
| | | | | | | | | | Commit ebd79f07c47b02b71c0ac7744a6a94a2bae92fcf broke parsing of configuration files that use the bss parameter to specify another BSS entry. This resulted in crashing the process with NULL pointer dereference since the new hostapd_config::bss design requires this function to allocate a new hostapd_bss_config structure. Signed-hostap: Jouni Malinen <j@w1.fi>
* Fix AP mode QoS Map configuration to be per-BSSJouni Malinen2013-11-031-9/+0
| | | | | | | | This is a per-BSS configuration parameter and as such, needs to be configured to the driver from hostapd_setup_bss() instead of hostapd_driver_init(). Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Add ctrl_iface STATUS commandJouni Malinen2013-11-032-1/+11
| | | | | | This can be used to fetch runtime information about hostapd interfaces. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Remove hostapd_interface_init2()Jouni Malinen2013-11-031-11/+2
| | | | | | | | This was an unnecessary wrapper functions for calling two functions from a single place in the code. It is cleaner to just call those two functions directly. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Simplify interface initializationJouni Malinen2013-11-031-12/+0
| | | | | | | | | | Use hostapd_interface_init2() for all interfaces instead of the previously used different paths for per-interface-config and per-BSS-config cases. This moves the calls to hostapd_driver_init() and hostapd_setup_interface() to happen after all configuration files have been read. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Add control interface test commands for radar detectionJouni Malinen2013-11-031-0/+66
| | | | | | | | If hostapd is build with CONFIG_TESTING_OPTIONS=y, the RADAR control interface command can be used to test hostapd behavior on arbitrary driver radar events. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Accept RELOG from global control interfaceJouni Malinen2013-11-021-1/+5
| | | | | | | This makes it easier to recycle log file (-f) when no active interface is in use. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Use wpa_printf() for hostapd_logger() to stdoutJouni Malinen2013-11-021-1/+1
| | | | | | | This allows log-to-file (-f command line option) to be used to redirect these messages to the same file with all the other stdout debug. Signed-hostap: Jouni Malinen <j@w1.fi>
* hostapd: Make hostapd_interface_init_bss() available externallyKyeyoon Park2013-10-311-97/+0
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* hostapd: Make hostapd_init() available externallyKyeyoon Park2013-10-311-62/+2
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>