aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices for the new year 2017Jouni Malinen2017-01-0318-27/+27
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* Do not add own BSS in neighbor report with invalid op_class/channelJouni Malinen2017-01-031-4/+6
| | | | | | | Verify that ieee80211_freq_to_channel_ext() succeeds before adding the own BSS in the neighbor report. Signed-off-by: Jouni Malinen <j@w1.fi>
* FILS: Fix FILS Realm Information ANQP-element constructionJouni Malinen2017-01-031-0/+1
| | | | | | | | | | The loop to add hash values was supposed to be limited to at most 10000 values, but the count variable was not being decremented in the loop. Fix this by decrementing counting for each iteration. This fixes ANQP-element format in the unlikely case of there being more than 10000 configuration realms. Signed-off-by: Jouni Malinen <j@w1.fi>
* wpa_supplicant: Add support for Beacon Report Radio MeasurementAvraham Stern2017-01-037-5/+796
| | | | | | | | Beacon Report Radio Measurement is defined in IEEE Std 802.11-2016, 11.11.9.1. Beacon Report is implemented by triggering a scan on the requested channels with the requested parameters. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* common: Add helper function to convert RSSI to RCPIAvraham Stern2017-01-033-15/+23
| | | | | | | This conversion will be done several times in the code, so add a helper function that does this conversion. Signed-off-by: Avrahams Stern <avraham.stern@intel.com>
* wpa_supplicant: Extend verify_channel() and make it globalAvraham Stern2017-01-033-23/+41
| | | | | | | | | Extend verify_channel() to return whether IR is allowed on the channel or not, and make it a global function so it can be used in other files, too. This makes this function useful for checking not only if a channel is supported but also if it is allowed for active and passive scan. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* common: Add function to get an operating class by its number and countryAvraham Stern2017-01-032-0/+20
| | | | | | | Add a function to get operating class definition (including bandwidth, channel numbers, etc.) from the operating class number and country. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* common: Add non-global to global operating classes conversionAvraham Stern2017-01-032-0/+134
| | | | | | | Add helper function that converts non-global operating classes to global operating classes according to IEEE Std 802.11-2016, Annex E. Signed-off-by: Avrahams Stern <avraham.stern@intel.com>
* nl80211: Add support for additional scan parameters for beacon reportAvraham Stern2017-01-033-0/+43
| | | | | | | | | | | | Add support for: 1. Setting scan dwell time 2. Parsing scan start TSF and beacon received TSF reported by the driver 3. Setting driver capabilities for the above These capabilities are needed for Beacon Report radio measurement. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* driver: Add scan support to beacon reportAvraham Stern2017-01-032-0/+37
| | | | | | | | | | | | | | | | | | | Add the following parameters to scan request: 1. Dwell time on each channel. 2. Whether the specified dwell time is mandatory. In addition, add to scan results info the time that the scan actually started, and to each scan result the time the beacon/probe was received, both in terms of TSF of the BSS that the interface that requested the scan is connected to (if available). Add flags to indicate whether the driver supports dwell time configuration and scan information reporting. This scan configuration and information is required to support beacon report radio measurement. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* wpa_supplicant: Refactor wpas_rrm_build_lci_report()Avraham Stern2017-01-031-32/+46
| | | | | | | | | | | 1. Change the return type to reflect whether building the report succeeded or failed. 2. Change argument type to rrm_measurement_request_element instead of raw packet data to ease processing the request. 3. Use already existing function to create the measurement report and add it to the report buffer. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* wpa_supplicant: Send rejection for unsupported radio measurementsAvraham Stern2017-01-031-1/+47
| | | | | | | | | | | | | | Send measurement report with the mode field set to incapable in response to measurement requests with unsupported measurement types. In addition, measurements requests that request parallel measurements are rejected since these features are not supported. Measurement request frames with the enable bit set are ignored since these are not really requesting measurements and are not supported for now. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* wpa_supplicant: Limit RRM response size to MMPDU sizeAvraham Stern2017-01-032-22/+55
| | | | | | | | | The length of a Measurement Report frame should be limited by the maximum allowed MMPDU size (IEEE Std 802.11-2016, 9.6.2.3). Enforce this size limit, and in case the report elements are longer than the allowed size, split them between several MPDUs. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* wpa_supplicant: Refactor Radio Measurement Request handlingAvraham Stern2017-01-031-50/+76
| | | | | | | | Extract the code dealing with processing the measurement request elements to a separate function. This will be needed for beacon report requests processing. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* wpa_supplicant: Validate RRM request frame formatAvraham Stern2017-01-031-16/+38
| | | | | | | | | | | | RRM request frame should contain only information elements of type Radio Measurement Request. Go through all the frame and validate that only elements of this type are included. In addition, if a truncated element is encountered, or the element length field indicates that the element length is more than the entire frame, abort the request. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* wpa_supplicant: Move RRM implementation to a dedicated fileAvraham Stern2017-01-034-484/+502
| | | | | | | As support for new RRM measurements will be added, the RRM implementation will become quite large, so move it to a dedicated file. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* Add RRM definitions for beacon report measurementAvraham Stern2017-01-031-1/+101
| | | | Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* Fix LCI request subelement processingJouni Malinen2017-01-031-0/+1
| | | | | | | | | | | | | | | | Commit 4a742011abca8a9c185cc40d17783cfa4c9af757 ('wpa_supplicant: Handle LCI request') introduced LCI request parsing in a manner that incremented the request pointer by four within wpas_rrm_build_lci_report() without decrementing len correspondingly. This could potentially result in get_ie() reading four octets beyond the buffer if a corrupted request is received. This would be applicable only if the LCI reporting was enabled explicitly ("SET LCI ..." control interface command). Fix this by updating the len variable to match the request pointer changes. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Add CONFIG_MESH into wpa_supplicant defconfigMasashi Honma2016-12-301-0/+3
| | | | Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* wpa_cli: Add commands to use PMKSA_GET/ADDMasashi Honma2016-12-301-0/+24
| | | | Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* tests: P2P autonomous GO switching channels with cfg80211 P2P DeviceJouni Malinen2016-12-301-0/+23
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* P2P: Fix compilation warning in p2p_add_device()Andrei Otcheretianski2016-12-291-2/+2
| | | | | | | The address of msg.device_name array is obviously always true, and some compilers even warn about it. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: WPS and pbc_in_m1Jouni Malinen2016-12-291-0/+22
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: AP with wowlan_triggersJouni Malinen2016-12-291-0/+10
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: ANQP Domain IDJouni Malinen2016-12-291-0/+25
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* GAS: Remove unnecessarily duplicate gas_frag_limit configurationJouni Malinen2016-12-296-19/+15
| | | | | | | | The actual BSS configuration parameter can be updated with the SET control interface command, so there is no need to maintain a separate per-BSS parameter and a separate control interface handling for this. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: AP with U-APSD advertisementJouni Malinen2016-12-291-0/+10
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: AP with long preambleJouni Malinen2016-12-291-0/+12
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: AP with Probe Response frame sending from hostapd disabledJouni Malinen2016-12-292-3/+22
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: DTIM period configurationJouni Malinen2016-12-291-1/+29
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: WPS and wps_rf_bands configurationJouni Malinen2016-12-291-0/+30
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Automatic channel selection using acs_survey parameterJouni Malinen2016-12-291-0/+15
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: WPA2-PSK-FT AP over DS disabledJouni Malinen2016-12-281-0/+15
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* FT: Drop FT Action frames if ft_over_ds=0Jouni Malinen2016-12-281-0/+5
| | | | | | | | | | Previously, the hostapd ft_over_ds parameter was used to only advertise whether FT-over-DS is enabled in MDE and leave it to the stations to follow that advertisement. This commit extends this to explicitly reject (silently drop) FT Action frames if a station does not follow the advertised capabilities. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: RADIUS Dynamic Authorization Extensions - Disconnect - time windowJouni Malinen2016-12-281-0/+72
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Additional radius_auth/acct_req_attr coverageJouni Malinen2016-12-281-2/+4
| | | | | | | The third attribute is needed in the list to cover full parsing code coverage. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: IEEE 802.1X and EAPOL-Key index workaroundJouni Malinen2016-12-281-0/+16
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: WPA2-Enterprise using EAP-SIM with zero database timeoutJouni Malinen2016-12-281-0/+28
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: EAP-FAST and provisioning optionsJouni Malinen2016-12-281-0/+125
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd eapol_version configurationJouni Malinen2016-12-281-0/+35
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd configuration SET OOM and error casesJouni Malinen2016-12-281-1/+141
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* Remove deprecated tx_queue_* params from hostapd.conf notesJouni Malinen2016-12-281-1/+1
| | | | | | | | The after_beacon and beacon TX queue parameters has not been configurable through this mechanism for years, so do not list them in hostapd.conf notes. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd eap_user_file parsingJouni Malinen2016-12-281-1/+55
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* Fix memory leak on hostapd eap_user_file parsing error pathsJouni Malinen2016-12-283-16/+17
| | | | | | | Need to free all the pending completed EAP users if a parsing error prevents the file from being used. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd vlan_file/mac_file parsingJouni Malinen2016-12-281-2/+40
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* hostapd: Remove unnecessary NULL check from parser functionsJouni Malinen2016-12-281-6/+0
| | | | | | The fname argument cannot be NULL in these location. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd global ctrl_iface DETACH failureJouni Malinen2016-12-281-0/+3
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd and TEST_ALLOC_FAIL/TEST_FAILJouni Malinen2016-12-281-0/+10
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd and SET accept_mac_file ctrl_iface command (VLAN ID)Jouni Malinen2016-12-281-0/+13
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd global control interface with unknown IFNAME= prefixJouni Malinen2016-12-281-0/+3
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>