aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_madwifi.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license notification in files initially contributed by SamJouni Malinen2012-06-301-8/+2
| | | | | | | | This updates these files to use the license notification that uses only the BSD license. The changes were acknowledged by email (Sam Leffler <sam@errno.com>, Sat, 30 Jun 2012 07:57:53 -0700). Signed-hostap: Jouni Malinen <j@w1.fi>
* WEXT: Use linux/wireless.h instead of wireless_copy.hJouni Malinen2011-11-151-1/+1
| | | | | | | | WEXT is not really changing anymore and more or less all Linux distros come with linux/wireless.h that is recent enough to allow the driver wrappers to be build. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove station functionality from hostap and madwifi driver wrappersJouni Malinen2011-11-131-558/+0
| | | | | | | | | This has been obsoleted by the more generic Linux WEXT (driver_wext.c) support. The hostap and madwifi driver wrappers can now be used only with hostapd. The old station interface remains available in releases up to 1.x. Signed-hostap: Jouni Malinen <j@w1.fi>
* madwifi: Implement set_freq for hostapd, adjust hostapd.confPavel Roskin2011-07-291-0/+19
| | | | Signed-off-by: Pavel Roskin <proski@gnu.org>
* P2P: Filter Probe Request frames based on DA and BSSID in Listen stateJouni Malinen2011-07-151-0/+2
| | | | | | Only accept Probe Request frames that have a Wildcard BSSID and a destination address that matches with our P2P Device Address or is the broadcast address per P2P specification 3.1.2.1.1.
* nl80211: Send EAPOL frames as QoS data frames for QoS aware clientsFelix Fietkau2011-04-021-1/+1
| | | | | | | | | | | This should fix EAPOL reauthentication and rekeying timeout issues with Intel clients when using WMM (e.g., with IEEE 802.11n). These stations do not seem to be able to handle EAPOL data frames as non-QoS Data frames after the initial setup. This adds STA flags to hapd_send_eapol() driver op to allow driver_nl80211.c to mark the EAPOL frames as QoS Data frame when injecting it through the monitor interface.
* Indicate assoc vs. reassoc in association eventShan Palanisamy2011-03-061-1/+1
| | | | | | This allows driver wrappers to indicate whether the association was done using Association Request/Response or with Reassociation Request/Response frames.
* Use set_key addr to distinguish default and multicast keysJouni Malinen2011-01-091-1/+1
| | | | | | | | Previously, both NULL and ff:ff:ff:ff:ff:ff addr were used in various places to indicate default/broadcast keys. Make this more consistent and useful by defining NULL to mean default key (i.e., used both for unicast and broadcast) and ff:ff:ff:ff:ff:ff to indicate broadcast key (i.e., used only with broadcast).
* Use more consistent set_key seq value when nothing is being setJouni Malinen2011-01-091-2/+3
| | | | | | Use NULL instead of (u8 *) "" as the seq value and make sure the driver wrapper implementations can handle NULL value. This was previously already done in number of places, but not everywhere.
* driver_madwifi: fix a compile error on big endian systemsFelix Fietkau2010-11-091-1/+1
|
* WPS 2.0: Provide (Re)Association Response WPS IE to driverJouni Malinen2010-09-221-1/+2
| | | | | | | | | | WPS 2.0 mandates the AP to include WPS IE in (Re)Association Response if the matching (Re)Association Request included WPS IE. Provide the needed WPS IE information to the driver_ops API for drivers that process association frames internally. Note: This modifies the driver_ops API by adding a new argument to set_ap_wps_ie().
* Remove unnecessary ifname parameter from set_ap_wps_ie() driver opJouni Malinen2010-03-071-2/+1
|
* Remove unnecessary ifname parameter to sta_set_flags() driver opJouni Malinen2010-03-071-1/+1
|
* Remove unnecessary ifname parameter from hapd_get_ssid/hapd_set_ssidJouni Malinen2010-03-071-2/+2
|
* Remove unnecessary ifname parameter from set_generic_elem() driver opJouni Malinen2010-03-071-1/+1
|
* Remove unneeded ifname parameter from set_privacy() driver opJouni Malinen2010-03-071-2/+2
|
* hostapd: add ifname to the sta_set_flags callbackFelix Fietkau2010-03-061-2/+2
| | | | | This fixes multi-BSS STA operations (e.g., setting AUTHORIZED flag) with nl80211-based drivers.
* hostapd: Detect bridge interface automaticallyJouni Malinen2010-01-161-0/+8
| | | | | | | | | | | This makes the bridge parameter unnecessary for cases where the interface is already in a bridge and sysfs is mounted to /sys so that the detection code works. For nl80211, the bridge parameter can be used to request the AP interface to be added to the bridge automatically (brctl may refuse to do this before hostapd has been started to change the interface mode). If needed, the bridge interface is also created.
* Share a single Linux ioctl helper fo setting interface up/downJouni Malinen2010-01-031-36/+6
| | | | | | Number of Linux driver wrappers included this more or less identical function, so lets add a new helper file to be able to share some more code between the driver wrappers.
* Standardize on a single definition of auth_alg bitfield valuesJouni Malinen2010-01-031-3/+3
|
* Add drv_event_eapol_rx() helperJouni Malinen2010-01-031-6/+2
|
* Use generic driver event notification for AP mode assoc/disassocJouni Malinen2010-01-031-7/+5
|
* Use driver event, EVENT_EAPOL_RX, for EAPOL frame indicationJouni Malinen2010-01-031-3/+6
|
* Replace hostapd_probe_req_rx() with EVENT_RX_PROBE_REQ driver eventJouni Malinen2010-01-031-7/+7
|
* Get rid of unnecessary typedefs for enums.Jouni Malinen2009-12-261-2/+2
|
* Merge driver ops set_wps_beacon_ie and set_wps_probe_resp_ieJouni Malinen2009-12-241-14/+12
| | | | | | | set_ap_wps_ie() is not used to set WPS IE for both Beacon and Probe Response frames with a single call. In addition, struct wpabuf is used instead of separate u8* and length fields. This avoids duplicated allocation of the IEs and simplifies code in general.
* Change Linux driver wrappers to use shared netlink receive codeJouni Malinen2009-12-181-96/+18
|
* Fix netlink payload length calculationJouni Malinen2009-12-181-1/+1
| | | | nlmsghdr length needs to be removed from payload length. [Bug 341]
* Replace hostapd_michael_mic_failure() with generic driver eventJouni Malinen2009-12-131-1/+6
|
* Map STA flags into values defined in driver.hJouni Malinen2009-12-131-3/+2
| | | | | | This removes need for including hostapd/sta_flags.h into driver wrappers and removes any remaining dependencies between driver flags and internal hostapd flags.
* Add more WPA/IEEE 802.1X parameters into set_ieee8021x() driver opJouni Malinen2009-12-121-30/+25
| | | | | This gets rid of the need to touch internal hostapd data structures directly from the driver wrappers.
* Change set_ieee8021x driver op to use parameters structureJouni Malinen2009-12-121-1/+2
| | | | | This makes it easier to extent the set of parameters passed to this driver wrapper function.
* 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.
* Remove deprecated scan and set_probe_req_ie driver_opsJouni Malinen2009-11-231-3/+9
| | | | | These have been replaced with scan2 driver_ops that provides all parameters in a single call.
* Remove deprecated driver_ops handlersJouni Malinen2009-11-231-11/+9
| | | | | | 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-231-0/+5
| | | | | | | 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-231-8/+8
|
* Remove unneeded set-MTU operation from driversJouni Malinen2009-11-231-11/+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.
* Replace hostapd_wps_probe_req_rx() with more generic ProbeReq notifierJouni Malinen2009-06-121-2/+1
| | | | | | The driver wrappers should not need to include wps_hostapd.h, so let's make this easier by introducing a driver callback for reporting Probe Request frames.
* Provide own_addr buffer in hapd_init() parametersJouni Malinen2009-04-171-1/+1
| | | | | This reduces number of places in driver wrapper that would need to dereference struct hostapd_data pointer directly.
* Add own_addr as a parameter to sta_deauth() and sta_disassoc()Jouni Malinen2009-04-171-4/+8
| | | | | | This fixes deauth/disassoc frames in secondary BSSes when using multi-BSSID. In addition, it reduces need to dereference struct hostapd_data inside driver wrappers.
* Merge hostapd driver init functions into oneJouni Malinen2009-04-091-5/+5
| | | | | | | Use a parameter structure to pass in information that can be more easily extended in the future. Include some of the parameters that were previously read directly from hapd->conf in order to reduce need for including hostapd/config.h into driver wrappers.
* Merge wpa_supplicant and hostapd driver wrapper implementationsJouni Malinen2009-04-091-1/+1363
| | | | | | | | This commit merges the driver_ops structures and implementations from hostapd/driver*.[ch] into src/drivers. This is only an initial step and there is room for number of cleanups to share code between the hostapd and wpa_supplicant parts of the wrappers to avoid unnecessary source code duplication.
* Setting probe request ie with madwifi driverMasashi Honma2009-02-051-2/+28
| | | | | | The madwifi driver has interface to set probe request ie. Attached patch will enable the functionality. I could see probe request includes WSC IE with this patch.
* Moved ieee802_11_parse_elems() into common codeJouni Malinen2008-10-291-0/+6
|
* Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 releaseJouni Malinen2008-02-271-0/+565