aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add rules for building src/crypto as a libraryJouni Malinen2009-12-054-11/+69
| | | | | For now, this is hardcoded to support only the internal crypto implementation.
* Add build rules for building a library from src/utils filesJouni Malinen2009-12-053-4/+36
| | | | | This is an initial step on providing an alternative build system that uses libraries from src subdirectories.
* Move Milenage test code into the new tests directoryJouni Malinen2009-12-052-817/+8
|
* Move milenage.[ch] into src/cryptoJouni Malinen2009-12-055-6/+4
|
* Move base64 test code into a new tests subdirectoryJouni Malinen2009-12-051-35/+0
|
* nl80211: Add extra IEs into IBSS join requestJouni Malinen2009-12-041-0/+8
| | | | | This allows RSN IE to be added into Beacon and Probe Response frames when using RSN IBSS.
* nl80211: Add support for IBSS networksJouni Malinen2009-12-041-1/+119
|
* Add more Doxygen documentation for RADIUS server implementationJouni Malinen2009-12-022-4/+362
|
* nl80211: Clear BSS state mismatches with deauth as a workaroundJouni Malinen2009-12-021-1/+19
| | | | | | | | | | There seem to be some cases in which wpa_supplicant and cfg80211/mac80211 seem to have different understanding on authentication/association state. Since cfg80211/mac80211 is very strict on when it accepts new authentication/association/scan commands, try our best at clearing such state mismatches by explicitly deauthenticating from BSSes with which the driver claims we are associated with if we do not have local information about such association.
* nl80211: Add debug prints for BSS status in scan resultsJouni Malinen2009-12-022-0/+69
| | | | | | | | | | | | | Print what the kernel believes the current BSS status (authenticated or associated) is in scan results. In addition, check whether this matches with the state that wpa_supplicant believes the driver to be in. This does not change the actual behavior, but will provide information that will help in debugging potential issues where cfg80211/mac80211 seems to get into a different state from wpa_supplicant. In addition, this provides an easy location for a workaround that could be added to clear cfg80211/mac80211 state for unknown BSSes.
* Move internal EAPOL authenticator defines into their own fileJouni Malinen2009-11-294-173/+193
| | | | | | | | This is an initial step in further cleaning up the EAPOL authenticator use to avoid requiring direct accesses to the internal data structures. For now, number of external files are still including the internal definitions from eapol_auth_sm_i.h, but eventually, these direct references should be removed.
* Remove src/crypto from default include pathJouni Malinen2009-11-2960-155/+142
| | | | | | 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.
* Add Makefile for the new src/eapol_auth directoryJouni Malinen2009-11-292-1/+10
|
* Make HOSTAPD_DUMP_STATE configurable with CONFIG_NO_DUMP_STATEJouni Malinen2009-11-292-214/+230
| | | | | | This removes the hardcoded definition from Makefile and cleans up source code by moving the mail HOSTAPD_DUMP_STATE blocks into separate files to avoid conditional compilation within files.
* Move EAPOL authenticator state machine into src/eapol_authJouni Malinen2009-11-292-0/+1603
| | | | | This is now completely independent from hostapd-specific code, so it can be moved to be under the src tree.
* Replace eap_type_text() with EAP server methods functionJouni Malinen2009-11-292-4/+25
| | | | | | While this may not include knowledge of all EAP methods since this depends on build configuration, it is better to not have to include ieee802_1x.h into eapol_sm.c.
* Add driver wrapper callback for WPS push button pressedJouni Malinen2009-11-292-3/+2
| | | | | This avoids the need to include ../hostapd/wps_hostapd.h into the driver wrappers.
* driver_prism54: Use hostapd_notif_disassoc() instead of private copyJouni Malinen2009-11-291-13/+1
|
* Remove some unneeded header file inclusionsJouni Malinen2009-11-292-4/+3
|
* Include sta_flags.h explicitly, not via sta_info.hJouni Malinen2009-11-291-0/+1
|
* Remove src/common from default header file pathJouni Malinen2009-11-2932-35/+34
| | | | | | | | | | 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.
* Split scan processing for RSN preauthentication into partsJouni Malinen2009-11-292-44/+49
| | | | | | This avoids passing the raw scan results into the RSN code and by doing so, removes the only dependency on src/drivers from the src/rsn_supp code (or from any src subdirectory for that matter).
* Move uuid_gen_mac_addr() from uuid.c into src/wpsJouni Malinen2009-11-294-32/+31
| | | | This removes the only src/crypto dependency from src/utils files.
* nl80211: Remove unneeded header file: ieee802_11_common.hJouni Malinen2009-11-291-4/+0
| | | | driver_nl80211.c does not use anything from this header file.
* HT: Remove unneeded struct ht_cap_ie wrapperJouni Malinen2009-11-293-12/+3
| | | | | It is simpler to just use the HT Capabilities IE payload structure as-is.
* Remove unused/unneeded IEEE 802.11n definitionsJouni Malinen2009-11-291-120/+17
|
* Fix AP mode HT Capabilities IE to use A-MPDU Parameters from the driverJouni Malinen2009-11-292-0/+13
| | | | | | Instead of using hardcoded maximum A-MPDU length of 64 kB and no restrictions on minimum MPDU Start Spacing, use the correct values reported by the driver.
* Rename HT Capabilities IE fields to match with IEEE Std 802.11n-2009Jouni Malinen2009-11-291-8/+8
|
* Complete Doxygen documentation for RADIUS clientJouni Malinen2009-11-292-12/+115
| | | | | No more warnings from Doxygen about missing documentation from radius_client.[ch].
* Remove unused RADIUS client reconfig functionJouni Malinen2009-11-282-66/+0
| | | | | | | | | | | | | This is not actually used at all and it looks like the rules for maintaining the old/new RADIUS configuration are not very clear in the case the RADIUS client configuration did not change. Consequently, it is better to just remove this for now and if similar functionality is ever needed, redesign it to be easier to use without causing hard to find issues with using freed memory. Simpler approach to reconfiguring the RADIUS client would involve just deinitializing the old context unconditionally and initializing a new one whenever the configuration could have changed.
* Move acct_interim_interval away from RADIUS client configurationJouni Malinen2009-11-281-7/+0
| | | | | This is not used at all inside RADIUS client and as such, it belongs into hostapd configuration.
* Improved Doxygen documentation for RADIUS client codeJouni Malinen2009-11-282-49/+363
|
* Fix doxygen file level commentsJouni Malinen2009-11-283-3/+3
|
* Fix doxygen file level commentsJouni Malinen2009-11-284-3/+17
|
* WPS: Update couple of missed Primary Device Type usesJouni Malinen2009-11-261-4/+5
|
* WPS: Clean up Primary Device Type handlingJouni Malinen2009-11-266-37/+61
| | | | | | Use shared functions for converting Primary Device Type between binary and string formats. In addition, use array of eight octets instead of a specific structure with multiple fields to reduce code complexity.
* Resolve some sparse warningsJouni Malinen2009-11-2510-2/+10
| | | | | | Mainly, this is including header files to get definitions for functions which is good to verify that the parameters match. None of these are issues that would have shown as incorrect behavior of the program.
* Remove obsoleted get_scan_results() driver_opsJouni Malinen2009-11-234-147/+61
| | | | | This has now been replaced with get_scan_results2() in every in-tree driver.
* Remove deprecated scan and set_probe_req_ie driver_opsJouni Malinen2009-11-2316-93/+80
| | | | | These have been replaced with scan2 driver_ops that provides all parameters in a single call.
* Remove deprecated driver_ops handlersJouni Malinen2009-11-2315-198/+90
| | | | | | This gets rid of previously deprecated driver_ops handlers set_wpa, set_drop_unencrypted, set_auth_alg, set_mode. The same functionality can be achieved by using the init/deinit/associate handlers.
* Add cleared deprecation notes on iwl,ndiswrapper,madwifi(sta) wrappersJouni Malinen2009-11-232-1/+10
| | | | | | | These driver wrappers should not be used anymore; WEXT should be used instead. However, there may still be users stuck on older kernel versions that may require driver specific wrappers, so the source code still remains in the repository.
* Merge set_key and hapd_set_key driver_ops into a single functionJouni Malinen2009-11-2317-110/+74
|
* Move HOSTAPD_MTU definition into driver_hostap.cJouni Malinen2009-11-231-0/+5
| | | | | | This moves the MTU definition into driver_hostap.c since it was really meant to be specific to this driver. Since this was the last remaining definition in hostapd_defs.h, remove that header file as unnecessary.
* Remove unneeded set-MTU operation from driversJouni Malinen2009-11-233-33/+0
| | | | | | This code was copied from driver_hostap.c where it is used with the special wlan#ap interface. It was not supposed to be used to change the MTU for a normal data interface.
* Move definitions away from hostapd_defs.hJouni Malinen2009-11-236-14/+51
| | | | | Clean up definitions to reduce need to include header files from the hostapd directory into files under the src subdirectories.
* nl80211: Build some client functionality unconditionallyJouni Malinen2009-11-231-23/+11
| | | | | Even though this makes the hostapd version a bit larger, the code will be easier to maintain with the reduced number of complex ifdef blacks.
* nl80211: Remove last remaining WEXT codeJouni Malinen2009-11-231-37/+0
| | | | | | Clean up driver_nl80211.c by gettign rid of the last remaining WEXT use. This requires that a recent mac80211 version is used to get full protection in station mode via the authorized flag (IEEE 802.1X PAE).
* Merge set_beacon driver_ops into a single oneJouni Malinen2009-11-233-86/+13
| | | | | | Clean up driver interface by merging hostapd and wpa_supplicant specific set_beacon driver_ops into a single one. In addition, merge set_beacon_int into to the same operation.
* WPS: Do not try to send byebye advertisements if socket is not validJouni Malinen2009-11-211-1/+1
| | | | | | If initialization fails, we could potentially try to sendto() on -1 socket which would fail. No point in doing that, so just return early from the function.
* Fix a typo in a commentJouni Malinen2009-11-211-1/+1
|