path: root/hostapd/hostapd.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not use country_code default (was: US)Jouni Malinen2009-02-081-5/+7
| | | | | | If country_code is not included in hostapd.conf, refuse to enable IEEE 802.11d and do not try to set the regulatory domain in kernel. (cherry picked from commit 6f4071c084be304e7f16a939eb3127de98a1ff0a)
* Replaced printf() with wpa_printf()Jouni Malinen2009-02-081-78/+93
| | | | (cherry picked from commit bb305cbdcc95c85366b93f1809e372528b3d31a8)
* Moved documentation from developer.txt into source code filesJouni Malinen2009-02-081-0/+9
| | | | | | Use Doxygen comments for functions to replace the old text file that was not up-to-date anymore. (cherry picked from commit 1c6e69ccda916960bb03dd5b71df9ca5438bdf0f)
* Preparations for 0.6.7 releaseJouni Malinen2009-01-061-2/+2
* Clear BIP keys, too, when removing broadcast keys with MFP enabledJouni Malinen2008-12-311-0/+13
* Add RADIUS server support for identity selection hint (RFC 4284)Jouni Malinen2008-12-261-0/+2
| | | | | | | | | | | Previously, only the delivery option 1 from RFC 4284 (EAP-Request/Identity from the AP) was supported. Now option 3 (subsequent EAP-Request/Identity from RADIUS server) can also be used when hostapd is used as a RADIUS server. The eap_user file will need to have a Phase 1 user entry pointing to Identity method in order for this to happen (e.g., "* Identity" in the end of the file). The identity hint is configured in the same was as for AP/Authenticator case (eap_message in hostapd.conf).
* Clear various flags on re-association to allow key_mgmt changesJouni Malinen2008-11-301-1/+2
| | | | | | If a STA reassociates and changes key_mgmt (e.g., from WPA-PSK to WPS), hostapd needs to reset some of the existing STA and WPA state machine variables to allow correct processing for the new association.
* Added option to distinguish non-HT and HT20 in set_freqJouni Malinen2008-11-261-0/+1
* nl80211: Add support for setting channel frequency and HT20 vs. HT40Jouni Malinen2008-11-251-1/+2
| | | | | | This depends on a patch to Linux nl80211/mac80211 that has not yet been merged into wireless-testing. If that change is not present, the old mechanism (WEXT) will be used instead.
* Added preliminary Wi-Fi Protected Setup (WPS) implementationJouni Malinen2008-11-231-23/+65
| | | | | | | | | | | | | This adds WPS support for both hostapd and wpa_supplicant. Both programs can be configured to act as WPS Enrollee and Registrar. Both PBC and PIN methods are supported. Currently, hostapd has more complete configuration option for WPS parameters and wpa_supplicant configuration style will likely change in the future. External Registrars are not yet supported in hostapd or wpa_supplicant. While wpa_supplicant has initial support for acting as an Registrar to configure an AP, this is still using number of hardcoded parameters which will need to be made configurable for proper operation.
* Remove experimental non-AP STA code from hostapdJouni Malinen2008-11-211-3/+0
| | | | | | | | | | This was used to allow hostapd to associate as a non-AP STA to another AP one the same channel while still acting as an AP with the Host AP driver. This was very experimental and did not work with all firmware versions. Nowadays, much better way of doing this is to use mac80211 virtual non-AP STA interface. As such, this experimental code can be removed from hostapd to reduce the code size and make MLME code easier to understand since it is now only handling AP functionality.
* Remove overly complex hostapd setup sequence with n+1 callbacksJouni Malinen2008-11-211-216/+79
| | | | | | | | This code was originally added as a mechanism to handle long waits during channel selection and/or radar detection. It is not currently really used and makes the setup sequence nearly impossible to understand. Let's get rid of the unwanted complexity. This needs to be redesigned if it is ever needed again.
* Removed forgotten register_drivers() prototypeJouni Malinen2008-11-211-9/+0
| | | | | Driver registration style was changed long time ago and this is not used anymore.
* Removed partial IEEE 802.11h implementationJouni Malinen2008-11-211-6/+5
| | | | | | This code was not finished and did not work with the current mac80211 design. In order to avoid confusing users, it is better to remove this completely for now and look at new implementation to work with mac80211.
* Added support for enforcing frequent PTK rekeyingJouni Malinen2008-11-061-0/+1
| | | | | | | | | | | | Added a new configuration option, wpa_ptk_rekey, that can be used to enforce frequent PTK rekeying, e.g., to mitigate some attacks against TKIP deficiencies. This can be set either by the Authenticator (to initiate periodic 4-way handshake to rekey PTK) or by the Supplicant (to request Authenticator to rekey PTK). With both wpa_ptk_rekey and wpa_group_rekey (in hostapd) set to 600, TKIP keys will not be used for more than 10 minutes which may make some attacks against TKIP more difficult to implement.
* Set TX queue parameters during initializationJouni Malinen2008-10-291-0/+24
| | | | | This was already called from reconfig.c, but the call from hostapd.c had been forgotten.
* EAP-FAST: Allow A-ID and A-ID-Info to be configured separatelyJouni Malinen2008-10-191-0/+2
| | | | | | | Changed EAP-FAST configuration to use separate fields for A-ID and A-ID-Info (eap_fast_a_id_info) to allow A-ID to be set to a fixed 16-octet len binary value for better interoperability with some peer implementations; eap_fast_a_id is now configured as a hex string.
* EAP-FAST: Make PAC-Key lifetime values configurableJouni Malinen2008-10-081-0/+2
| | | | | The hardcoded values in eap_fast.c were replaced with values read from hostapd.conf.
* EAP-FAST: Added support for disabling anonymous/authenticated provisioningJouni Malinen2008-10-081-0/+1
| | | | | | | | | eap_fast_prov config parameter can now be used to enable/disable different EAP-FAST provisioning modes: 0 = provisioning disabled 1 = only anonymous provisioning allowed 2 = only authenticated provisioning allowed 3 = both provisioning modes allowed
* Silenced some of the driver-related messages for driver=none caseJouni Malinen2008-10-011-11/+23
| | | | | No need to print these to confuse users that configure hostapd as a RADIUS server without any AP functionality.
* Do not store dynamic HT IEs in configuration structuresJouni Malinen2008-08-221-0/+6
| | | | | | | | The configuration data should only store the static configuration data and not dynamic data. In addition, storing HT configuration and state in IEs is not the easiest way of doing this, so use more convenient data types for storing configuration and dynamic state. The HT IEs are then generated based on the static configuration and dynamic state whenever needed.
* Fixed a NULL pointer dereference when driver initialization failsJouni Malinen2008-08-081-1/+1
* Added support for opportunistic key caching (OKC)Jouni Malinen2008-08-031-0/+22
| | | | | This allows hostapd to share the PMKSA caches internally when multiple BSSes or radios are being controlled by the same hostapd process.
* Added WLAN_STA_MFP flag for driver wrappers so that they can configure theJouni Malinen2008-06-171-1/+3
| | | | driver to enable MFP (IEEE 802.11w) processing for the STA.
* Disable functionality in hostapd_deauth_all_stas for hostap driver onlyMichael Bernhard2008-04-161-7/+8
| | | | Signed-off-by: Michael Bernhard <michael.bernhard@bfh.ch>
* TNC: Provide 'tnc' configuration option for EAP server and methodsJouni Malinen2008-03-091-0/+1
* TNC: Added preliminary TNC implementation for hostapdJouni Malinen2008-03-091-1/+18
| | | | | | | | | This adds EAP-TNC method and TNCS (IF-IMV and IF-TNCCS) functionality. There is no integration with EAP-TTLS and EAP-FAST at this point, so this version is not yet suitable for real use (i.e., EAP-TNC can only be tested outside a tunnel which is not an allowed configuration for deployment). However, the basic TNCS functionality is more or less complete and this version seems to interoperate with wpa_supplicant.
* Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 releaseJouni Malinen2008-02-281-0/+2000