path: root/src/ap
Commit message (Collapse)AuthorAgeFilesLines
* FT: Force key configuration after association in FT-over-DSJouni Malinen2010-04-043-1/+3
| | | | | | This seems to be needed at least with mac80211 when a STA is using FT-over-DS to reassociate back to the AP when the AP still has the previous association state.
* Add AP-STA-DISCONNECT event for driver-based MLMEJouni Malinen2010-04-041-0/+3
* Allow hostapd_notif_assoc() to be called with all IEsJouni Malinen2010-04-041-0/+22
| | | | | | | This makes the call simpler for driver wrappers since there is no need to parse the IEs anymore before indicating association. In addition, this allows association processing to be extended to use other IEs in the future.
* Fix Windows compilation issues with AP mode codeJouni Malinen2010-04-044-9/+3
* MFP: Fix IGTK PN in group rekeyingJouni Malinen2010-03-301-1/+2
| | | | | | | IGTK get_seqnum needs to be skipped in the same way as GTK one when rekeying group keys. Previously, the old PN value (the one from the previous key) was indicated and that resulted in MMIE replay detection at the station.
* MFP: Add SA Query Request processing in AP modeJouni Malinen2010-03-291-0/+45
* Fix ctrl_iface get-STA-MIB for WPS disabled caseJouni Malinen2010-03-291-0/+2
| | | | | The previous version would crash here on NULL pointer dereference if WPS was disabled.
* Fix wpa_auth_iface_iter() to skip BSSes without AuthenticatorJouni Malinen2010-03-271-1/+2
| | | | | This could cause NULL pointer deference if multi-BSS configuration was used with OKC in some cases.
* FT: Fix Authorized flag setting for FT protocolJouni Malinen2010-03-132-5/+11
| | | | | | 4-way handshake or EAPOL is not used in this case, so we must force Authorized flag to be set at the conclusion of successful FT protocol run.
* FT: Fix PTK configuration in authenticatorJouni Malinen2010-03-133-4/+15
| | | | | | Must update sm->pairwise when fetching PMK-R1 SA. Add a workaround for drivers that cannot set keys before association (e.g., cfg80211/mac80211): retry PTK configuration after association.
* FT: Include pairwise cipher suite in PMK-R0 SA and PMK-R1 SAJouni Malinen2010-03-072-20/+45
| | | | | | | This is needed to fix PTK derivation to use correct length. Previously, 64-octet PTK may have been derived if the authenticator did not already have a STA entry. Now, the correct pairwise cipher suite is learned when then PMK-R1 SA is received.
* Remove unnecessary ifname parameter from set_ap_wps_ie() driver opJouni Malinen2010-03-071-2/+1
* Remove unnecessary ifname parameter from set_ht_params() driver opJouni Malinen2010-03-072-7/+6
* Remove unnecessary ifname parameter to sta_set_flags() driver opJouni Malinen2010-03-071-1/+1
* Remove unnecessary ifname parameter from sta_add() driver opJouni Malinen2010-03-073-6/+6
* Remove unnecessary ifname parameter from hapd_get_ssid/hapd_set_ssidJouni Malinen2010-03-071-4/+2
* Remove unnecessary ifname parameter from set_generic_elem() driver opJouni Malinen2010-03-071-2/+1
* Remove unneeded ifname parameter from set_privacy() driver opJouni Malinen2010-03-071-2/+1
* Avoid crash after driver init failureJouni Malinen2010-03-071-1/+1
| | | | | hostapd_flush_old_stations() needs to check whether the driver initialization was successful since it gets called on an error path.
* Remove unneeded iface parameter from if_add() driver opJouni Malinen2010-03-071-2/+2
* Remove unnecessary ifname parameter from set_beacon()Jouni Malinen2010-03-063-5/+4
| | | | The new per-BSS driver context makes this unnecessary.
* hostapd: allow stations to move between different bss interfacesFelix Fietkau2010-03-061-14/+14
| | | | | | | | With this patch, a client gets kicked out of the last BSS it was attached to, when it is associating to a different one. While mac80211 does allow a station to be present on multiple bss interfaces, this does seem to cause problems both for the stack and for hostapd.
* hostapd: Fix interface selection for the nl80211 driverFelix Fietkau2010-03-063-5/+8
| | | | | | | | | | | This patch allows the nl80211 driver to create its own per-bss context and pass it to the drv_priv pointer of the hostapd bss state. With this and the following patch, stations can associate to and switch between multiple BSS interfaces of a single wiphy. This obsoletes a few instances of passing ifname to a callback, those can be removed in a separate patch. It might also be useful to move more fields from the driver data to the per-bss data structure in the future.
* hostapd: fix bogus nl80211 interface remove messages for STA WDSFelix Fietkau2010-03-061-1/+2
* hostapd: add ifname to the sta_set_flags callbackFelix Fietkau2010-03-061-1/+1
| | | | | This fixes multi-BSS STA operations (e.g., setting AUTHORIZED flag) with nl80211-based drivers.
* Make EAPOL Authenticator buildable with Microsoft compilerJouni Malinen2010-02-191-1/+9
* ap: Reorder authsrv_init() to fix IEEE 802.1X initializationChristian Lamparter2010-01-171-3/+3
| | | | | | | | This patch moves the authentication server setup before IEEE 802.1X initialization. It's because 802.1X already needs to have a valid SSL context. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
* IBSS RSN: Check explicitly that WPA auth sm assoc call succeededJouni Malinen2010-01-102-15/+14
| | | | | | Verify that association processing did not end up freeing the state machine. This should not really happen in practice, but better verify it anyway.
* Avoid a theoretical use-after-free in WPA auth sm initJouni Malinen2010-01-101-5/+8
| | | | | | | wpa_sm_step() could theoretically free the statemachine, but it does not do it in this particular case. Anyway, the code can be cleaned to verify whether the state machine data is still available after the wpa_sm_step() call.
* Fix memory leak on RSN preauth init error pathJouni Malinen2010-01-061-0/+1
* Fix WMM default parametersLennert Buytenhek2010-01-061-3/+3
| | | | | | | | | wmm_ac_??_cw{min,max} parameters are in log form When the wme_ac_??_cw{min,max} parameters aren't specified in hostapd.conf, hostapd uses an incorrect set of default values, as the defaults are in 2^x-1 form instead of in log form. This patch changes them over to the expected log form.
* Share the same enum for MFP configurationJouni Malinen2010-01-033-12/+8
| | | | | | | The three existing enums were already depending on using the same values in couple of places and it is just simpler to standardize on one of these to avoid need for mapping between different enums for the exact same thing.
* Remove src/drivers/scan_helpers.cJouni Malinen2010-01-031-0/+14
| | | | | | | Most of this file was already moved into wpa_supplicant/scan.c and we can remove the file completely by having couple of small helper functions copied to the remaining users outside core wpa_supplicant code.
* Use generic driver event notification for AP mode assoc/disassocJouni Malinen2010-01-032-0/+18
* Use driver event, EVENT_EAPOL_RX, for EAPOL frame indicationJouni Malinen2010-01-031-45/+45
* Replace hostapd_notif_new_sta() with new driver event, EVENT_NEW_STAJouni Malinen2010-01-031-1/+3
* Remove unnecessary wpa_event_type typedefJouni Malinen2010-01-031-1/+1
* Move struct hostapd_frame_info definition away from driver APIJouni Malinen2010-01-032-8/+18
| | | | | This is internal data structure for hostapd/AP functionality and does not need to be defined in driver.h.
* Remove struct ieee80211_hdr dependency from EVENT_RX_FROM_UNKNOWNJouni Malinen2010-01-031-3/+3
| | | | It is simpler to just pass in u8* to the beginning of the header.
* Replace hostapd_probe_req_rx() with EVENT_RX_PROBE_REQ driver eventJouni Malinen2010-01-031-17/+22
* WPS: Add Enrollee-seen event message and wpa_gui-qt4 Peers entryJouni Malinen2009-12-281-0/+24
| | | | | This can be used to show active Enrollees in AP mode to make it easier to provision a new device.
* Allow Probe Request callbacks to terminate iterationJouni Malinen2009-12-285-17/+26
* Allocate Probe Response and Beacon buffers based on WPS IE lengthJouni Malinen2009-12-281-2/+13
| | | | | | This IE is of variable length and it is better to allocate the frame buffer taking this length into account to prepare for future additions.
* Split hostapd_interface_deinit() into deinit and free partsJouni Malinen2009-12-272-0/+7
| | | | | | | 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.
* Get rid of unnecessary typedefs for enums.Jouni Malinen2009-12-267-11/+11
* Include header files explicitly in *.c, not via header filesJouni Malinen2009-12-2513-3/+18
* Replace src/ap/driver_i.h with non-inlined functions in ap_drv_ops.cJouni Malinen2009-12-257-211/+232
* Remove ap_config.h dependency from driver_i.hJouni Malinen2009-12-256-63/+76
| | | | | This adds explicit #include line for ap_config.h into the src/ap/*.c files that actually use the definitions from there.
* Rename some src/ap files to avoid duplicate file namesJouni Malinen2009-12-2534-159/+160
| | | | | | 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-253-9/+11
| | | | | | src/ap/*.c must not call functions in hostapd or wpa_supplicant directories directly, so avoid this by using a callback function pointer.