]> git.ipfire.org Git - thirdparty/hostap.git/log
thirdparty/hostap.git
8 years agotests: Radio measurement request - link measurement
Jouni Malinen [Sat, 7 Jan 2017 16:46:57 +0000 (18:46 +0200)] 
tests: Radio measurement request - link measurement

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agonl80211: Register for Link Measurement Report frames in AP mode
Jouni Malinen [Sat, 7 Jan 2017 16:46:10 +0000 (18:46 +0200)] 
nl80211: Register for Link Measurement Report frames in AP mode

This is needed to be able to get the response to a link measurement
request.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoRRM: Document Link Measurement Report frame construction steps
Jouni Malinen [Sat, 7 Jan 2017 16:17:59 +0000 (18:17 +0200)] 
RRM: Document Link Measurement Report frame construction steps

Add a comment to note which fields are expected to be updated by the
driver. In addition, reorder subfield writing to match the order in
which the fields are in the frame.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Radio/link measurement request for non-RRM association
Jouni Malinen [Sat, 7 Jan 2017 16:00:50 +0000 (18:00 +0200)] 
tests: Radio/link measurement request for non-RRM association

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Radio measurement request - OOM while rejecting a request
Jouni Malinen [Sat, 7 Jan 2017 15:52:51 +0000 (17:52 +0200)] 
tests: Radio measurement request - OOM while rejecting a request

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Fix rrm_beacon_req_passive_ap_channels to use passive scan
Jouni Malinen [Sat, 7 Jan 2017 15:47:12 +0000 (17:47 +0200)] 
tests: Fix rrm_beacon_req_passive_ap_channels to use passive scan

The request from the AP was encoded incorrectly for this test case and
an active scan was requested instead of the passive one that was
supposed to be used here.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Beacon request - active scan mode os_get_random failure
Jouni Malinen [Sat, 7 Jan 2017 15:46:18 +0000 (17:46 +0200)] 
tests: Beacon request - active scan mode os_get_random failure

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Check rrm capabilities with a helper function
Jouni Malinen [Sat, 7 Jan 2017 11:39:49 +0000 (13:39 +0200)] 
tests: Check rrm capabilities with a helper function

And also move couple of these checks to the beginning of the test case.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Remove write-only bssid assignments from rrm test cases
Jouni Malinen [Sat, 7 Jan 2017 11:34:19 +0000 (13:34 +0200)] 
tests: Remove write-only bssid assignments from rrm test cases

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Beacon request - passive scan mode - VHT
Jouni Malinen [Sat, 7 Jan 2017 10:50:35 +0000 (12:50 +0200)] 
tests: Beacon request - passive scan mode - VHT

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoRRM: Fix beacon report scan channels for VHT 80, 80+80, 160 MHz cases
Jouni Malinen [Sat, 7 Jan 2017 10:49:48 +0000 (12:49 +0200)] 
RRM: Fix beacon report scan channels for VHT 80, 80+80, 160 MHz cases

ieee80211_chan_to_freq() is not really meant for conversion of 20 MHz
primary channel numbers for wider VHT channels, so handle those as
special cases here for now.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoRRM: Move wpabuf_resize() call into wpas_rrm_report_elem()
Jouni Malinen [Sat, 7 Jan 2017 10:04:43 +0000 (12:04 +0200)] 
RRM: Move wpabuf_resize() call into wpas_rrm_report_elem()

wpabuf_resize() can handle the initial allocation of a wpabuf and all
the other callers of wpas_rrm_report_elem() were already using a pointer
to a pointer and a wpabuf_resize() call. Simplify this by resizing the
wpabuf (if needed) within wpas_rrm_report_elem() instead of having to
calculate the needed size in all the callers. Thsi is also fixing one of
the allocation sizes to use the correct size instead of a size of a
struct that has nothing to do with the allocation (but is larger than
the needed five octets, so does not break anything).

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Prepare rrm_beacon_req_passive_no_match_oom for code change
Jouni Malinen [Sat, 7 Jan 2017 10:12:22 +0000 (12:12 +0200)] 
tests: Prepare rrm_beacon_req_passive_no_match_oom for code change

Replace the TEST_ALLOC function wpas_beacon_rep_no_results with an
earlier function in the backtrace and wpabuf_resize() in preparation to
a code change that allows the compiler to optimize out
wpas_beacon_rep_no_results().

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoRRM: Remove unnecessary cb check
Jouni Malinen [Sat, 7 Jan 2017 09:52:18 +0000 (11:52 +0200)] 
RRM: Remove unnecessary cb check

There is only a single caller for wpas_rrm_send_neighbor_rep_request()
and it unconditionally uses a callback function, so cb cannot be NULL
here and there is no need for additional complexity and extra code size
to check for it explicitly.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoAP: Skip authentication/deauthentication phase for DMG/IEEE 802.11ad
Dedy Lansky [Mon, 26 Dec 2016 19:00:51 +0000 (21:00 +0200)] 
AP: Skip authentication/deauthentication phase for DMG/IEEE 802.11ad

Authentication and Deauthentication frames are not used in DMG/IEEE
802.11ad networks. For DMG/IEEE 802.11ad the following was implemented:
Upon receiving association request, allocate the sta object and
initialize it as if authentication took place. Upon receiving
disassociation, deallocate the sta object.
ap_sta_disassociate/ap_sta_deauthenticate/ap_sta_disconnect all use
disassociation instead of deauthentication. In driver_nl80211,
i802_sta_deauth() is routed to i802_sta_disassoc().

Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
8 years agoAP: Do not look for supported rates in DMG/IEEE 802.11ad
Dedy Lansky [Tue, 20 Dec 2016 15:04:43 +0000 (17:04 +0200)] 
AP: Do not look for supported rates in DMG/IEEE 802.11ad

Supported Rates element is not present in DMG/IEEE 802.11ad frames. Make
copy_supp_rates() immediately return with success if hardware mode is
IEEE 802.11ad.

Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
8 years agobgscan_simple: Fix short_scan_count comparison
Beni Lev [Mon, 2 Jan 2017 14:26:26 +0000 (16:26 +0200)] 
bgscan_simple: Fix short_scan_count comparison

Previously, the check was done after we reached the maximum and another
scan was already triggered.

While at it, remove an irrelevant comment that the previous change in
the logic here missed.

Signed-off-by: Beni Lev <beni.lev@intel.com>
8 years agonl80211: Zero num_modes if nl80211_get_hw_feature_data() fails
Andrei Otcheretianski [Wed, 28 Dec 2016 13:47:07 +0000 (15:47 +0200)] 
nl80211: Zero num_modes if nl80211_get_hw_feature_data() fails

It was possible that nl80211_get_hw_feature_data() function would return
NULL when num_modes is not set to zero. This might result in a later crash
when accessing hw.modes. This may be reproduced with hwsim oom tests, for
example, dbus_connect_oom.
Fix that by zeroing num_modes if NULL is returned.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
8 years agotests: P2P autonomous GO switching channels (separate group interface)
Jouni Malinen [Thu, 5 Jan 2017 14:11:31 +0000 (16:11 +0200)] 
tests: P2P autonomous GO switching channels (separate group interface)

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: Use group control interface for GO commands in autogo_chan_switch
Avraham Stern [Thu, 29 Dec 2016 09:37:58 +0000 (11:37 +0200)] 
tests: Use group control interface for GO commands in autogo_chan_switch

The channel switch command is intended for the GO interface, but
it was not sent on the group control interface. For configurations
that use a separate interface for P2P groups, this will fail the test.

Fix this by sending the channel switch command on the group control
interface and waiting for the channel switch event on the group
control interface.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
8 years agonl80211: Use correct attribute for scan flags in vendor scan
Kanchanapally, Vidyullatha [Wed, 4 Jan 2017 13:30:00 +0000 (19:00 +0530)] 
nl80211: Use correct attribute for scan flags in vendor scan

This fixes the netlink attribute identifier for the scan flags when
using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agoeap_proxy: On SIM error flush PMKSAs only for SIM/AKA/AKA' networks
Purushottam Kushwaha [Thu, 29 Dec 2016 06:51:33 +0000 (12:21 +0530)] 
eap_proxy: On SIM error flush PMKSAs only for SIM/AKA/AKA' networks

Previously, SIM state change with SIM_STATE_ERROR cleared all PMKSA
entries (including non-SIM networks). Limit this to networks which use
SIM-based authentication methods to avoid unnecessarily removal of PMKSA
entries.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: Beacon request - active scan mode and old scan result
Jouni Malinen [Tue, 3 Jan 2017 17:15:12 +0000 (19:15 +0200)] 
tests: Beacon request - active scan mode and old scan result

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: Beacon request - passive scan mode and no matching BSS
Jouni Malinen [Tue, 3 Jan 2017 17:10:20 +0000 (19:10 +0200)] 
tests: Beacon request - passive scan mode and no matching BSS

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: Beacon request - active scan mode and many BSSs
Jouni Malinen [Tue, 3 Jan 2017 16:24:24 +0000 (18:24 +0200)] 
tests: Beacon request - active scan mode and many BSSs

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: LCI report generation OOM
Jouni Malinen [Tue, 3 Jan 2017 15:46:52 +0000 (17:46 +0200)] 
tests: LCI report generation OOM

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: wpa_supplicant and concurrent NEIGHBOR_REP_REQUEST commands
Jouni Malinen [Tue, 3 Jan 2017 15:28:20 +0000 (17:28 +0200)] 
tests: wpa_supplicant and concurrent NEIGHBOR_REP_REQUEST commands

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: NEIGHBOR_REP_REQUEST for AP not supporting neighbor report
Jouni Malinen [Tue, 3 Jan 2017 15:26:02 +0000 (17:26 +0200)] 
tests: NEIGHBOR_REP_REQUEST for AP not supporting neighbor report

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: wpa_supplicant and disconnection during NEIGHBOR_REP_REQUEST
Jouni Malinen [Tue, 3 Jan 2017 15:20:16 +0000 (17:20 +0200)] 
tests: wpa_supplicant and disconnection during NEIGHBOR_REP_REQUEST

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: wpa_supplicant ctrl_iface NEIGHBOR_REP_REQUEST OOM
Jouni Malinen [Tue, 3 Jan 2017 15:17:58 +0000 (17:17 +0200)] 
tests: wpa_supplicant ctrl_iface NEIGHBOR_REP_REQUEST OOM

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agoFix OOM handling in neighbor report response handling
Jouni Malinen [Tue, 3 Jan 2017 15:31:32 +0000 (17:31 +0200)] 
Fix OOM handling in neighbor report response handling

The pending neighbor report state needs to be cleared on error path here
to avoid getting stuck with being unable to perform any additional
neighbor reports during the association.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: wpa_supplicant behavior on NEIGHBOR_REP_REQUEST response timeout
Jouni Malinen [Tue, 3 Jan 2017 15:13:55 +0000 (17:13 +0200)] 
tests: wpa_supplicant behavior on NEIGHBOR_REP_REQUEST response timeout

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: Radio measurement request - protocol testing
Jouni Malinen [Tue, 3 Jan 2017 13:07:41 +0000 (15:07 +0200)] 
tests: Radio measurement request - protocol testing

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agoAllow LCI request with no subelements
Jouni Malinen [Tue, 3 Jan 2017 12:58:14 +0000 (14:58 +0200)] 
Allow LCI request with no subelements

Allow shorter request since the subelements are optional to include.
Also print the hexdump of the subelements into debug log.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
8 years agotests: RRM beacon report with active and passive scan
Jouni Malinen [Mon, 2 Jan 2017 21:03:49 +0000 (23:03 +0200)] 
tests: RRM beacon report with active and passive scan

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoRRM: Enable beacon report with active/passive scan for all drivers
Jouni Malinen [Mon, 2 Jan 2017 21:04:02 +0000 (23:04 +0200)] 
RRM: Enable beacon report with active/passive scan for all drivers

The requested behavior can be approximated for most use cases even if
the driver does not support reporting exact TSF values for frames.
Enable this capability for all drivers to make beacon report processing
more useful for a common use case.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Beacon request - beacon table mode
Jouni Malinen [Sun, 1 Jan 2017 22:42:25 +0000 (00:42 +0200)] 
tests: Beacon request - beacon table mode

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoReport received beacon report with BEACON-RESP-RX event
Jouni Malinen [Sun, 1 Jan 2017 23:08:01 +0000 (01:08 +0200)] 
Report received beacon report with BEACON-RESP-RX event

The new hostapd control interface event "BEACON-RESP-RX <STA address>
<dialog token> <report mode> <beacon report>" is now used to report
received beacon reports as a reponse to the REQ_BEACON operation.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoReport beacon request TX status as control interface event
Jouni Malinen [Sun, 1 Jan 2017 22:54:44 +0000 (00:54 +0200)] 
Report beacon request TX status as control interface event

The new BEACON-REQ-TX-STATUS control interface event is now used to
report whether a beacon request (from REQ_BEACON command) was delivered
successfully. This event has the following parameters: <STA address>
<dialog token> <ack=0/1>.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoBeacon request through hostapd control interface
Jouni Malinen [Sun, 1 Jan 2017 22:31:11 +0000 (00:31 +0200)] 
Beacon request through hostapd control interface

The new control interface command "REQ_BEACON <STA addr>
[req_mode=<mode>] <beacon request>" can now be used to request hostapd
to transmit a measurement request to request a beacon report from an
associated STA. This command returns the assigned dialog token (1-255)
or FAIL on failure.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoAdd hostapd configuration parameter rrm_beacon_report
Jouni Malinen [Sun, 1 Jan 2017 22:29:30 +0000 (00:29 +0200)] 
Add hostapd configuration parameter rrm_beacon_report

rrm_beacon_report=1 can now be used to make hostapd advertise capability
for beacon reports (passive, active, table). Actual mechanism for
sending out beacon requests will be added in separate commits.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoEnable Beacon Report using beacon table for all drivers
Jouni Malinen [Sun, 1 Jan 2017 22:27:58 +0000 (00:27 +0200)] 
Enable Beacon Report using beacon table for all drivers

The special parameters for beacon report scan are not needed for the
beacon report when using the beacon table measurement mode. Advertise
support for this case regardless of whether the driver supports the scan
parameters.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoUpdate copyright notices for the new year 2017
Jouni Malinen [Mon, 2 Jan 2017 23:32:09 +0000 (01:32 +0200)] 
Update copyright notices for the new year 2017

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoDo not add own BSS in neighbor report with invalid op_class/channel
Jouni Malinen [Mon, 2 Jan 2017 22:21:11 +0000 (00:21 +0200)] 
Do not add own BSS in neighbor report with invalid op_class/channel

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>
8 years agoFILS: Fix FILS Realm Information ANQP-element construction
Jouni Malinen [Mon, 2 Jan 2017 22:15:59 +0000 (00:15 +0200)] 
FILS: Fix FILS Realm Information ANQP-element construction

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>
8 years agowpa_supplicant: Add support for Beacon Report Radio Measurement
Avraham Stern [Wed, 28 Dec 2016 13:06:47 +0000 (15:06 +0200)] 
wpa_supplicant: Add support for Beacon Report Radio Measurement

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>
8 years agocommon: Add helper function to convert RSSI to RCPI
Avraham Stern [Wed, 28 Dec 2016 13:06:45 +0000 (15:06 +0200)] 
common: Add helper function to convert RSSI to RCPI

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>
8 years agowpa_supplicant: Extend verify_channel() and make it global
Avraham Stern [Wed, 28 Dec 2016 13:06:44 +0000 (15:06 +0200)] 
wpa_supplicant: Extend verify_channel() and make it global

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>
8 years agocommon: Add function to get an operating class by its number and country
Avraham Stern [Wed, 28 Dec 2016 13:06:43 +0000 (15:06 +0200)] 
common: Add function to get an operating class by its number and country

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>
8 years agocommon: Add non-global to global operating classes conversion
Avraham Stern [Wed, 28 Dec 2016 13:06:42 +0000 (15:06 +0200)] 
common: Add non-global to global operating classes conversion

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>
8 years agonl80211: Add support for additional scan parameters for beacon report
Avraham Stern [Wed, 28 Dec 2016 13:06:41 +0000 (15:06 +0200)] 
nl80211: Add support for additional scan parameters for beacon report

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>
8 years agodriver: Add scan support to beacon report
Avraham Stern [Wed, 28 Dec 2016 13:06:40 +0000 (15:06 +0200)] 
driver: Add scan support to beacon report

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>
8 years agowpa_supplicant: Refactor wpas_rrm_build_lci_report()
Avraham Stern [Wed, 28 Dec 2016 13:06:39 +0000 (15:06 +0200)] 
wpa_supplicant: Refactor wpas_rrm_build_lci_report()

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>
8 years agowpa_supplicant: Send rejection for unsupported radio measurements
Avraham Stern [Wed, 28 Dec 2016 13:06:38 +0000 (15:06 +0200)] 
wpa_supplicant: Send rejection for unsupported radio measurements

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>
8 years agowpa_supplicant: Limit RRM response size to MMPDU size
Avraham Stern [Wed, 28 Dec 2016 13:06:37 +0000 (15:06 +0200)] 
wpa_supplicant: Limit RRM response size to MMPDU size

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>
8 years agowpa_supplicant: Refactor Radio Measurement Request handling
Avraham Stern [Wed, 28 Dec 2016 13:06:36 +0000 (15:06 +0200)] 
wpa_supplicant: Refactor Radio Measurement Request handling

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>
8 years agowpa_supplicant: Validate RRM request frame format
Avraham Stern [Wed, 28 Dec 2016 13:06:35 +0000 (15:06 +0200)] 
wpa_supplicant: Validate RRM request frame format

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>
8 years agowpa_supplicant: Move RRM implementation to a dedicated file
Avraham Stern [Wed, 28 Dec 2016 13:06:34 +0000 (15:06 +0200)] 
wpa_supplicant: Move RRM implementation to a dedicated file

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>
8 years agoAdd RRM definitions for beacon report measurement
Avraham Stern [Wed, 28 Dec 2016 13:06:33 +0000 (15:06 +0200)] 
Add RRM definitions for beacon report measurement

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
8 years agoFix LCI request subelement processing
Jouni Malinen [Tue, 3 Jan 2017 13:12:34 +0000 (15:12 +0200)] 
Fix LCI request subelement processing

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>
8 years agoAdd CONFIG_MESH into wpa_supplicant defconfig
Masashi Honma [Tue, 27 Dec 2016 03:49:08 +0000 (12:49 +0900)] 
Add CONFIG_MESH into wpa_supplicant defconfig

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
8 years agowpa_cli: Add commands to use PMKSA_GET/ADD
Masashi Honma [Tue, 27 Dec 2016 03:49:07 +0000 (12:49 +0900)] 
wpa_cli: Add commands to use PMKSA_GET/ADD

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
8 years agotests: P2P autonomous GO switching channels with cfg80211 P2P Device
Jouni Malinen [Fri, 30 Dec 2016 21:56:35 +0000 (23:56 +0200)] 
tests: P2P autonomous GO switching channels with cfg80211 P2P Device

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoP2P: Fix compilation warning in p2p_add_device()
Andrei Otcheretianski [Wed, 28 Dec 2016 13:47:06 +0000 (15:47 +0200)] 
P2P: Fix compilation warning in p2p_add_device()

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>
8 years agotests: WPS and pbc_in_m1
Jouni Malinen [Thu, 29 Dec 2016 22:47:19 +0000 (00:47 +0200)] 
tests: WPS and pbc_in_m1

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: AP with wowlan_triggers
Jouni Malinen [Thu, 29 Dec 2016 22:45:04 +0000 (00:45 +0200)] 
tests: AP with wowlan_triggers

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: ANQP Domain ID
Jouni Malinen [Thu, 29 Dec 2016 22:28:54 +0000 (00:28 +0200)] 
tests: ANQP Domain ID

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoGAS: Remove unnecessarily duplicate gas_frag_limit configuration
Jouni Malinen [Thu, 29 Dec 2016 22:23:10 +0000 (00:23 +0200)] 
GAS: Remove unnecessarily duplicate gas_frag_limit configuration

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>
8 years agotests: AP with U-APSD advertisement
Jouni Malinen [Thu, 29 Dec 2016 10:50:50 +0000 (12:50 +0200)] 
tests: AP with U-APSD advertisement

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: AP with long preamble
Jouni Malinen [Thu, 29 Dec 2016 10:45:55 +0000 (12:45 +0200)] 
tests: AP with long preamble

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: AP with Probe Response frame sending from hostapd disabled
Jouni Malinen [Thu, 29 Dec 2016 10:42:49 +0000 (12:42 +0200)] 
tests: AP with Probe Response frame sending from hostapd disabled

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: DTIM period configuration
Jouni Malinen [Thu, 29 Dec 2016 10:27:12 +0000 (12:27 +0200)] 
tests: DTIM period configuration

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: WPS and wps_rf_bands configuration
Jouni Malinen [Thu, 29 Dec 2016 10:17:17 +0000 (12:17 +0200)] 
tests: WPS and wps_rf_bands configuration

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Automatic channel selection using acs_survey parameter
Jouni Malinen [Thu, 29 Dec 2016 10:10:01 +0000 (12:10 +0200)] 
tests: Automatic channel selection using acs_survey parameter

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: WPA2-PSK-FT AP over DS disabled
Jouni Malinen [Wed, 28 Dec 2016 23:15:11 +0000 (01:15 +0200)] 
tests: WPA2-PSK-FT AP over DS disabled

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoFT: Drop FT Action frames if ft_over_ds=0
Jouni Malinen [Wed, 28 Dec 2016 23:13:59 +0000 (01:13 +0200)] 
FT: Drop FT Action frames if ft_over_ds=0

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>
8 years agotests: RADIUS Dynamic Authorization Extensions - Disconnect - time window
Jouni Malinen [Wed, 28 Dec 2016 23:06:11 +0000 (01:06 +0200)] 
tests: RADIUS Dynamic Authorization Extensions - Disconnect - time window

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Additional radius_auth/acct_req_attr coverage
Jouni Malinen [Wed, 28 Dec 2016 18:10:18 +0000 (20:10 +0200)] 
tests: Additional radius_auth/acct_req_attr coverage

The third attribute is needed in the list to cover full parsing code
coverage.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: IEEE 802.1X and EAPOL-Key index workaround
Jouni Malinen [Wed, 28 Dec 2016 16:11:13 +0000 (18:11 +0200)] 
tests: IEEE 802.1X and EAPOL-Key index workaround

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: WPA2-Enterprise using EAP-SIM with zero database timeout
Jouni Malinen [Wed, 28 Dec 2016 16:04:42 +0000 (18:04 +0200)] 
tests: WPA2-Enterprise using EAP-SIM with zero database timeout

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: EAP-FAST and provisioning options
Jouni Malinen [Wed, 28 Dec 2016 15:53:06 +0000 (17:53 +0200)] 
tests: EAP-FAST and provisioning options

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd eapol_version configuration
Jouni Malinen [Wed, 28 Dec 2016 13:04:53 +0000 (15:04 +0200)] 
tests: hostapd eapol_version configuration

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd configuration SET OOM and error cases
Jouni Malinen [Wed, 28 Dec 2016 11:11:12 +0000 (13:11 +0200)] 
tests: hostapd configuration SET OOM and error cases

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoRemove deprecated tx_queue_* params from hostapd.conf notes
Jouni Malinen [Wed, 28 Dec 2016 10:34:33 +0000 (12:34 +0200)] 
Remove deprecated tx_queue_* params from hostapd.conf notes

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>
8 years agotests: hostapd eap_user_file parsing
Jouni Malinen [Wed, 28 Dec 2016 10:13:07 +0000 (12:13 +0200)] 
tests: hostapd eap_user_file parsing

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agoFix memory leak on hostapd eap_user_file parsing error paths
Jouni Malinen [Wed, 28 Dec 2016 10:12:14 +0000 (12:12 +0200)] 
Fix memory leak on hostapd eap_user_file parsing error paths

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>
8 years agotests: hostapd vlan_file/mac_file parsing
Jouni Malinen [Tue, 27 Dec 2016 22:57:25 +0000 (00:57 +0200)] 
tests: hostapd vlan_file/mac_file parsing

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agohostapd: Remove unnecessary NULL check from parser functions
Jouni Malinen [Tue, 27 Dec 2016 22:58:21 +0000 (00:58 +0200)] 
hostapd: Remove unnecessary NULL check from parser functions

The fname argument cannot be NULL in these location.

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd global ctrl_iface DETACH failure
Jouni Malinen [Tue, 27 Dec 2016 22:38:51 +0000 (00:38 +0200)] 
tests: hostapd global ctrl_iface DETACH failure

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd and TEST_ALLOC_FAIL/TEST_FAIL
Jouni Malinen [Tue, 27 Dec 2016 22:30:41 +0000 (00:30 +0200)] 
tests: hostapd and TEST_ALLOC_FAIL/TEST_FAIL

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd and SET accept_mac_file ctrl_iface command (VLAN ID)
Jouni Malinen [Tue, 27 Dec 2016 22:25:46 +0000 (00:25 +0200)] 
tests: hostapd and SET accept_mac_file ctrl_iface command (VLAN ID)

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd global control interface with unknown IFNAME= prefix
Jouni Malinen [Tue, 27 Dec 2016 19:21:55 +0000 (21:21 +0200)] 
tests: hostapd global control interface with unknown IFNAME= prefix

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd DUP_NETWORK error cases
Jouni Malinen [Tue, 27 Dec 2016 19:20:57 +0000 (21:20 +0200)] 
tests: hostapd DUP_NETWORK error cases

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd global ctrl_iface INTERFACES
Jouni Malinen [Tue, 27 Dec 2016 19:14:34 +0000 (21:14 +0200)] 
tests: hostapd global ctrl_iface INTERFACES

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd and UPDATE_BEACON
Jouni Malinen [Tue, 27 Dec 2016 19:10:45 +0000 (21:10 +0200)] 
tests: hostapd and UPDATE_BEACON

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd and POLL_STA errors
Jouni Malinen [Tue, 27 Dec 2016 18:55:12 +0000 (20:55 +0200)] 
tests: hostapd and POLL_STA errors

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: Invalid hostapd STA ctrl_iface command subparameter
Jouni Malinen [Tue, 27 Dec 2016 18:52:57 +0000 (20:52 +0200)] 
tests: Invalid hostapd STA ctrl_iface command subparameter

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: sae_group in hostapd STA ctrl_iface command
Jouni Malinen [Tue, 27 Dec 2016 18:51:07 +0000 (20:51 +0200)] 
tests: sae_group in hostapd STA ctrl_iface command

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: hostapd and RELOG
Jouni Malinen [Tue, 27 Dec 2016 18:48:11 +0000 (20:48 +0200)] 
tests: hostapd and RELOG

Signed-off-by: Jouni Malinen <j@w1.fi>
8 years agotests: More SET_NEIGHBOR and REMOVE_NEIGHBOR error cases
Jouni Malinen [Tue, 27 Dec 2016 18:46:10 +0000 (20:46 +0200)] 
tests: More SET_NEIGHBOR and REMOVE_NEIGHBOR error cases

Signed-off-by: Jouni Malinen <j@w1.fi>