path: root/wpa_supplicant/wnm_sta.h
Commit message (Collapse)AuthorAgeFilesLines
* WNM: Collocated Interference ReportingJouni Malinen2018-10-301-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for negotiating WNM Collocated Interference Reporting. This allows hostapd to request associated STAs to report their collocated interference information and wpa_supplicant to process such request and reporting. The actual values (Collocated Interference Report Elements) are out of scope of hostapd and wpa_supplicant, i.e., external components are expected to generated and process these. For hostapd/AP, this mechanism is enabled by setting coloc_intf_reporting=1 in configuration. STAs are requested to perform reporting with "COLOC_INTF_REQ <addr> <Automatic Report Enabled> <Report Timeout>" control interface command. The received reports are indicated as control interface events "COLOC-INTF-REPORT <addr> <dialog token> <hexdump of report elements>". For wpa_supplicant/STA, this mechanism is enabled by setting coloc_intf_reporting=1 in configuration and setting Collocated Interference Report Elements as a hexdump with "SET coloc_intf_elems <hexdump>" control interface command. The hexdump can contain one or more Collocated Interference Report Elements (each including the information element header). For additional testing purposes, received requests are reported with "COLOC-INTF-REQ <dialog token> <automatic report enabled> <report timeout>" control interface events and unsolicited reports can be sent with "COLOC_INTF_REPORT <hexdump>". This commit adds support for reporting changes in the collocated interference (Automatic Report Enabled == 1 and partial 3), but not for periodic reports (2 and other part of 3). Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* WNM: Add option to configure candidates for BTM query candidate listAvraham Stern2017-03-111-1/+4
| | | | | | | | | | | | | Add a mechanism to configure the candidates for BTM query candidate list manually. This can be used to verify AP behavior for various candidates preferences. usage: wnm_bss_query <reason> [neighbor=<BSSID>,<BSSID information>, <operating class>,<channel number>, <PHY type>[,<hexdump of optional subelements>]] Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* MBO: Add support for transition reject reason codeKanchanapally, Vidyullatha2017-03-061-0/+4
| | | | | | | | | | Add support for rejecting a BSS transition request using MBO reject reason codes. A candidate is selected or rejected based on whether it is found acceptable by both wpa_supplicant and the driver. Also accept any candidate meeting a certain threshold if disassoc imminent is set in BTM Request frame. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* WNM: Add candidate list to BSS transition queryAvraham Stern2016-02-221-1/+1
| | | | | | | | | | Add an option to configure a candidate list to BSS transition query ("list" as the second argument to WNM_BSS_QUERY). The candidate list is built from the available scan results. If no updated scan results (< 10 sec) are available, the command fails. Signed-off-by: David Spinadel <david.spinadel@intel.com> Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* WNM: Use recent scan results on BSS transition requestJouni Malinen2014-11-221-2/+3
| | | | | | | | | If the last scans are recent (for now, less than ten seconds old), use them instead of triggering a new scan when a BSS Transition Management Request frame is received. As a fallback, allow a new scan to be triggered if no matches were found. Signed-off-by: Jouni Malinen <j@w1.fi>
* WNM: Optimize BSS transition management scansJouni Malinen2014-11-221-0/+1
| | | | | | | | When the list of preferred transition candidates is received, use the identified channels to optimize the following scan so that no time is wasted on other channels. Signed-off-by: Jouni Malinen <j@w1.fi>
* WNM: Move transition candidate list processing to normal scanJouni Malinen2014-11-221-0/+14
| | | | | | This makes it easier to optimize transition request processing. Signed-off-by: Jouni Malinen <j@w1.fi>
* WNM: Mark wnm_scan_response() staticJouni Malinen2014-11-221-3/+0
| | | | | | This function is not used outside wnm_sta.c. Signed-off-by: Jouni Malinen <j@w1.fi>
* WNM: Simplify how candidate subelements are storedJouni Malinen2014-11-221-31/+16
| | | | | | | | There is no need to use a separately allocated data structures for this. A bitfield indicating which information is present and variables within struct neighbor_report are simpler to use and more efficient. Signed-off-by: Jouni Malinen <j@w1.fi>
* WNM: Convert BSSID Info into a u32Jouni Malinen2014-11-221-1/+1
| | | | | | This is more convenient to use than u8 array. Signed-off-by: Jouni Malinen <j@w1.fi>
* WNM: Remove unnecessary present flagJouni Malinen2014-04-071-8/+0
| | | | | | | The structures are all allocated, so the pointer can be compared to NULL to determine whether the subelement was present. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* WNM: Fix neighbor report subelement formatsJouni Malinen2014-04-071-6/+6
| | | | | | Number of of subelements were using incorrect format definition. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Remove unnecessary EVENT_RX_ACTIONJouni Malinen2013-12-291-4/+1
| | | | | | | | | | | | This driver event was used separately for some Action frames, but all the driver wrappers converted to this from information that would have been enough to indicate an EVENT_RX_MGMT event. In addition, the received event was then converted back to a full IEEE 802.11 management frame for processing in most cases. This is unnecessary complexity, so get rid of the extra path and use EVENT_RX_MGMT for Action frames as well as other management frame subtypes. Signed-hostap: Jouni Malinen <j@w1.fi>
* WNM: Add sending of BSS Transition Management QueryVinayak Kamath2013-05-161-0/+2
| | | | | | | The new control interface command can be used to send a BSS Transition Management Query frame to the current AP. Signed-hostap: Vinayak Kamath <vkamat@codeaurora.org>
* WNM: Add neighbor report processing for BSS Transition ManagementVinayak Kamath2013-05-161-0/+67
| | | | | | Process the neighbor report received in BSS Management Request frames. Signed-hostap: Vinayak Kamath <vkamat@codeaurora.org>
* WNM: Add option for passing TFS request from external programsJouni Malinen2012-12-161-1/+1
| | | | | | | | The optional tfs_req=<hex dump> parameter can be added for the wnm_sleep command to specify the TFS request element to use in the WNM-Sleep Mode Request frame. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* WNM: Add ctrl_iface command for sending WNM-Sleep Mode RequestJouni Malinen2012-12-161-1/+1
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* WNM: Add WNM-Sleep Mode for station modeXi Chen2012-08-011-0/+21
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>