aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
Commit message (Collapse)AuthorAgeFilesLines
...
* update nl80211_copy.h (INTERNAL)Arik Nemtsov2012-07-301-1/+171
| | | | | | | File taken from 18xx/mc_internal, commit bc9a7d08c5c. Kernel 3.5rc7. Signed-off-by: Arik Nemtsov <arik@wizery.com>
* nl80211: Support setting sched scan RSSI thresholdThomas Pedersen2012-07-252-2/+25
| | | | | | | | | Allow the user to configure an RSSI threshold in dBm below which the nl80211 driver won't report scan results. Currently only supported during scheduled (PNO) scans. Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com> Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* nl80211: Save VHT capabilities from the driverMahesh Palivela2012-07-041-0/+12
| | | | | | Save VHT capabilities coming through nl80211 within hostapd. Signed-hostap: Mahesh Palivela <maheshp@posedge.com>
* Sync with linux/nl80211.h from wireless-testing.gitJouni Malinen2012-07-041-0/+14
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Update license notification in driver_wired.cJouni Malinen2012-07-021-8/+2
| | | | | | | | This updates the license notification to use only the BSD license. The changes were acknowledged by email (Gunter Burchardt, tmisu@gmx.de, Mon, 02 Jul 2012 17:54:28 +0200). Signed-hostap: Jouni Malinen <j@w1.fi>
* Update license notification in roboswitch interface fileJouni Malinen2012-07-021-8/+2
| | | | | | | | This updates the license notification to use only the BSD license. The changes were acknowledged by email (Jouke Witteveen <j.witteveen@gmail.com>, Mon, 2 Jul 2012 11:38:34 +0200). Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Remove unused P2P_SCAN_SPECIFICJouni Malinen2012-06-301-5/+0
| | | | | | | This is not used anymore after the commit e6ecfc4fd3856309b2e1b9e0d23a8635752666e2. Signed-hostap: Jouni Malinen <j@w1.fi>
* Update license notification in files initially contributed by SamJouni Malinen2012-06-303-24/+6
| | | | | | | | 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>
* hostapd: Initial IEEE 802.11ac (VHT) definitionsMahesh Palivela2012-06-301-0/+10
| | | | | | Add IEEE 802.11ac definitions for config, IEEE structures, constants. Signed-hostap: Mahesh Palivela <maheshp@posedge.com>
* nl80211: Handle CH_SWITCH eventThomas Pedersen2012-06-253-1/+59
| | | | | | | Some drivers may independently decide to switch channels. Handle this by updating the hostapd and wpa_supplicant AP and GO configuration. Signed-hostap: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
* Sync with include/linux/nl80211.h from wireless-testing.gitJouni Malinen2012-06-251-55/+112
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* nl80211: Simplify cbmsg bufferJohannes Berg2012-06-231-4/+1
| | | | | | | The control message received from the kernel needs some space, but there's no need for the strange typing that breaks clang compilation. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* atheros: Remove unused variablesJouni Malinen2012-06-231-4/+0
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* atheros: Fix build when WPS and IEEE80211R are both disabledBaruch Siach2012-06-231-0/+2
| | | | Signed-hostap: Baruch Siach <baruch@tkos.co.il>
* P2P: Add driver op for requesting GO/AP channel switchJithu Jance2012-06-101-0/+12
| | | | Signed-hostap: Jithu Jance <jithu@broadcom.com>
* atheros: Set essid length field only onceBaruch Siach2012-06-081-1/+0
| | | | Signed-hostap: Baruch Siach <baruch@tkos.co.il>
* atheros: Fix build when CONFIG_WPS is disabledBaruch Siach2012-06-081-1/+1
| | | | | | | The use of ETH_P_80211_RAW does not depend on CONFIG_WPS, so make its definition independent as well. Signed-hostap: Baruch Siach <baruch@tkos.co.il>
* nl80211: Use safe list iterationJohannes Berg2012-06-041-3/+3
| | | | | | | | | | | In certain cases like PBC session overlap it appears to be possible that an interface is removed due to an event handled on it, this leads to list corruption. Use safe iteration to prevent this issue. Reported-by: Nirav Shah <nirav.j2.shah@intel.com> Reported-by: Neeraj Kumar Garg <neerajkg@broadcom.com> Signed-hostap: Johannes Berg <johannes.berg@intel.com> intended-for: hostap-1
* nl80211: Use wait_time with AP mode driver SME for offchannelJouni Malinen2012-05-111-1/+3
| | | | | | | | | | When sending an offchannel frame (mainly, P2P Invitation Request), the wait_time parameter was hardcoded to 0 for drivers that implement AP mode SME. This is not correct and can cause problems for drivers that support offloading of off-channel operations with driver/firmware based AP SME. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* nl80211: Add more debug info on NL80211_CMD_FRAME usesJouni Malinen2012-05-111-0/+3
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* P2P: Add option for Provision Discovery before GO NegotiationJouni Malinen2012-05-111-1/+1
| | | | | | | | | | This is a workaround for interoperability issues with some deployed P2P implementations that require a Provision Discovery exchange to be used before GO Negotiation. The new provdisc parameter for the p2p_connect command can be used to request this behavior without having to run a separate p2p_prov_disc command. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Validate WEP key lengths based on driver capabilitiesJouni Malinen2012-05-102-0/+2
| | | | | | | | | | The nl80211 driver interface does not allow 128-bit WEP to be used without a vendor specific cipher suite and no such suite is defined for this purpose. Do not accept WEP key length 16 for nl80211 driver interface forn ow. wext-interface can still try to use these for backwards compatibility. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* P2P: Add option to force SSID/passphrase for GO NegotiationJouni Malinen2012-04-271-1/+2
| | | | | | | | | | | | | An existing persistent group information can now be used to force GO Negotiation to use the previously used SSID/passphrase from a persistent group if we become a GO. This can be used as an alternative to inviting a new P2P peer to join the group (i.e., use GO Negotiation with GO intent 15 instead of starting an autonomous GO and using invitation), e.g., in case a GO Negotiation Request is received from a peer while we are not running as a GO. The persistent group to use for parameters is indicated with persistent=<network id> parameter to p2p_connect. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Sync with include/linux/nl80211.h from wireless-testing.gitJouni Malinen2012-04-191-7/+34
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* nl80211: Extend shared_freq to handle AP/GO mode interfacesJithu Jance2012-04-081-1/+4
| | | | Signed-hostap: Jithu Jance <jithu@broadcom.com>
* nl80211: Skip set_mode event subscription during deinitJouni Malinen2012-04-061-1/+3
| | | | | | | | There is no need to subscribe to event messages during deinit process, so skip this to avoid unnecessary operations and to keep the debug logs a bit cleaner. Signed-hostap: Jouni Malinen <j@w1.fi>
* Make bind failure messages uniqueBen Greear2012-04-062-4/+4
| | | | | | This helps someone know which part of the code is complaining. Signed-hostap: Ben Greear <greearb@candelatech.com>
* nl80211: Indicate disconnect event as deauthenticationJouni Malinen2012-04-031-3/+3
| | | | | | | | | | This was previously indicated as disassociation, but the P2P group session ending case expect a deauthentication notification. Since the cfg80211 disconnection event does not really indicate which frame was used, the easiest approach for now seems to be to just indicate these as deauthentication events. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* P2P: Add deinit_p2p_cli op to clear P2P client driver stateEliad Peller2012-04-012-0/+21
| | | | | | | | | | | | On P2P group removal, the GO is deinitialized correctly (and the vif mode is set back to sta in case of nl80211), but the P2P client mode wasn't deinitialized, and the nl80211 vif stays in P2P client mode. Add a new deinit_p2p_cli op (similar to deinit_ap), which currently only sets the interface back to station mode. Signed-hostap: Eliad Peller <eliad@wizery.com> intended-for: hostap-1
* Pass signal strength through, fix unitsJohannes Berg2012-04-012-3/+8
| | | | | | | | | | | | | | | | The signal strength is currently never used as the only driver reporting it is nl80211 which uses IEEE80211_RADIOTAP_DB_ANTSIGNAL which is never populated by the kernel. The kernel will (soon) populate IEEE80211_RADIOTAP_DBM_ANTSIGNAL instead though, so use that. Also, since it was never really populated, we can redefine the signal field to be in dBm units only. My next patch will also require knowing the signal strength of probe requests throughout the code (where available), so add it to the necessary APIs. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* nl80211: Report signal strength from nl80211Johannes Berg2012-04-011-5/+14
| | | | | | Report signal strength from nl80211 events to the higher layers. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* Allow background scan period to be configuredBala Shanmugam2012-03-302-0/+19
| | | | | | | | A network block specific background scan period can now be configured for drivers that implement internal background scan mechanism for roaming and BSS selection. Signed-hostap: Bala Shanmugam <bkamatch@qca.qualcomm.com>
* nl80211: Make use of driver's capability to detect inactive stationsVasanthakumar Thiagarajan2012-03-272-0/+17
| | | | | | | | | | | When drivers advertise their capability to free up inactive stations based on ap_max_inactivity, send the inactivity period timeout to driver in NL80211_ATTR_INACTIVITY_TIMEOUT. This introduces a WPA_DRIVER_FLAGS (WPA_DRIVER_FLAGS_INACTIVITY_TIMER) so that the inactivity period will be sent only when this capability bit is set. Signed-hostap: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
* Sync with include/linux/nl80211.h from wireless-testing.gitJouni Malinen2012-03-271-14/+54
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* nl80211: Fix deauth/disassoc for AP mode SME-in-driver caseAarthi Thiruvengadam2012-03-141-1/+11
| | | | | | | | | | | | When the driver (or firmware) implements AP mode SME, the use of raw management frame TX functions is not working properly at the moment. As an initial step, convert these AP mode operations to use NL80211_CMD_DEL_STATION and do not claim that driver provides TX status for deauth/disassoc frames. While this does not address all use cases (e.g., reason code is not specified in the command), this fixes number of issues where the station does not get disconnected properly. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* P2P: Advertise immediate availability of WPS credentialJouni Malinen2012-02-271-3/+3
| | | | | | | | | | | | | | Use Device Password ID in WSC IE of Probe Request and Probe Response frames to advertise immediate availability of WPS credentials per P2P specification sections 3.1.2.1.1 (Listen State), 3.1.2.1.2 (Scan Phase), and 3.1.2.1.3 (Find Phase). For now, the Device Password ID is set only for the case where we are active GO Negotiation with a specific peer. In practice, this means that the Probe Response frames during pending GO Negotiation (whenever in Listen state) indicate availability of the credential. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* wext: Filter unexpected interface added/up eventsJouni Malinen2012-02-181-5/+40
| | | | | | | | | | | | It looks like a RTM_NEWLINK event claiming the interface to be UP is delivered just before removing an interface after having first indicated that the interface was going down/removed. Ignore this event if the interface is not present anymore at the moment the event is processed. This fixes issues where an interface that was re-added after being removed did not get reconfigured properly. Signed-hostap: Jouni Malinen <j@w1.fi> intended-for: hostap-1
* nl80211: Filter unexpected interface added/up eventsJouni Malinen2012-02-181-2/+28
| | | | | | | | | | | | It looks like a RTM_NEWLINK event claiming the interface to be UP is delivered just before removing an interface after having first indicated that the interface was going down/removed. Ignore this event if the interface is not present anymore at the moment the event is processed. This fixes issues where an interface that was re-added after being removed did not get reconfigured properly. Signed-hostap: Jouni Malinen <j@w1.fi> intended-for: hostap-1
* nl80211: Indicate p2p_probe in debug log as scan parameterJouni Malinen2012-02-181-0/+2
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* atheros: Add new IEEE 802.11r driver_opsShan Palanisamy2012-02-161-14/+309
| | | | | | | Add support to send Action frames to the driver. Add support for TSPEC req and adding STA node to the driver. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Add mechanism for disabling radio for testing purposesJouni Malinen2012-02-161-0/+12
| | | | | | | | "wpa_cli set radio_disabled 1/0" can be used to disable/enable radio to simulate out-of-radio-range condition in a testbed device. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* atheros: Reset frame filter on deinitShan Palanisamy2012-02-161-0/+9
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* IBSS RSN: Support authorizationAntonio Quartulli2012-02-121-0/+8
| | | | | | | | In IBSS RSN cfg80211/mac80211 now waits for userspace to authorize new stations. This patch makes wpa_supplicant notify the driver when a station can be considered authorized. Signed-hostap: Antonio Quartulli <ordex@autistici.org>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-1122-176/+44
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove the GPL notification from files contributed by AtherosJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from files that were initially contributed by Atheros Communications or Qualcomm Atheros. Signed-hostap: Jouni Malinen <j@w1.fi>
* Support HT capability overridesBen Greear2012-01-292-0/+33
| | | | | | | | | | | | | | | | | | | | | | This allows HT capabilities overrides on kernels that support these features. MCS Rates can be disabled to force to slower speeds when using HT. Rates cannot be forced higher. HT can be disabled, forcing an 802.11a/b/g/n station to act like an 802.11a/b/g station. HT40 can be disabled. MAX A-MSDU can be disabled. A-MPDU Factor and A-MPDU Density can be modified. Please note that these are suggestions to the kernel. Only mac80211 drivers will work at all. The A-MPDU Factor can only be decreased and the A-MPDU Density can only be increased currently. Signed-hostap: Ben Greear <greearb@candelatech.com>
* nl80211: Sync with linux/nl80211.h in wireless-testing.gitJouni Malinen2012-01-291-1/+63
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* nl80211: Subscribe management frames for WPA_IF_AP_BSS typesYogesh Ashok Powar2012-01-291-0/+6
| | | | | | | | | | In multiple BSSes scenario for the drivers that do not use monitor interface and do not implement AP SME, RX MGMT frame subscription happens only for the default bss (first_bss). Subscribe for RX MGMT frames for such BSSes. Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
* nl80211: Derive frequency for BSSes other than the firstYogesh Ashok Powar2012-01-291-0/+1
| | | | | | | | | | | | | Commit e4fb21676972952b5434e8c2a049e239d457abe6 moved frequency storage from driver struct to bss struct and is assigned in wpa_driver_nl80211_set_freq. As this wpa_driver_nl80211_set_freq is triggered only on the first_bss, bss->freq for other BSSes is never being set to the correct value. This sends MLME frames on frequency zero (initialized value of freq) for BSSes other than the first. To fix this derive frequency value from first_bss. Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
* nl80211: Add IBSS BSSID fixing supportNicolas Cavallari2012-01-281-0/+6
| | | | | | | If a BSSID and fixed-bssid are requested, fix the BSSID, so the driver does not attempt to merge. Signed-hostap: Nicolas Cavallari <cavallar@lri.fr>