path: root/wpa_supplicant/mbo.c
Commit message (Collapse)AuthorAgeFilesLines
* OCE: Add OCE capability attribute only when associating to an OCE APBeni Lev2018-09-021-2/+16
| | | | Signed-off-by: Beni Lev <beni.lev@intel.com>
* STA: Add OCE capability indication attributeAshwini Patil2017-07-141-3/+20
| | | | | | | Add OCE capability indication attribute in Probe Request and (Re)Association Request frames. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* nl80211/MBO: Set temporary disallowed BSSID list to driverAshwini Patil2017-06-301-0/+3
| | | | | | | | | Set temporary disallowed BSSID list to the driver so that the driver doesn't try to connect to any of the blacklisted BSSIDs during driver-based roaming operation. This commit includes support only for the nl80211 driver interface using a QCA vendor command for this. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* MBO: Parse MBO ANQP-element on STAJouni Malinen2017-03-101-0/+28
| | | | | | | | | | | | | This extends the GAS/ANQP parser in wpa_supplicant to process MBO ANQP-elements and indicate received Cellular Data Connection Preference values over the control interface. When a valid MBO ANQP-element is received, the following control interface message is sent: RX-MBO-ANQP <BSSID> cell_conn_pref=<value> Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* MBO: Add option to add MBO query list to ANQP queryAvraham Stern2017-03-101-3/+12
| | | | | | | | | | | | | | | | | MBO techspec v0.0_r27 changed the MBO ANQP-element format. The MBO element in ANQP query should now include an MBO Query List element that contains a list of MBO elements to query. Add API to add the MBO Query List to an ANQP query. Format: ANQP_GET <addr> <info_id>[,<info_id>]...[,mbo:<subtype>...] Example for querying neighbor report with MBO cellular data connection preference: ANQP_GET <bssid> 272,mbo:2 Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* MBO: Add support for transition reject reason codeKanchanapally, Vidyullatha2017-03-061-4/+5
| | | | | | | | | | 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>
* MBO: Fix minimum length check on non_pref_chan configurationAshwini Patil2017-02-261-4/+3
| | | | | | | | | | | | | | The reason detail field in non_pref_chan attribute was removed from MBO draft v0.0_r25. Also oper_class can be 1 character for few country codes (e.g., country code-UK, channel number-1). So the shortest channel configuration is 7 characters. This was missed in the earlier commit 4a83d4b6861f6627b6b256b8c126547a19409a70 ('MBO: Do not add reason_detail in non_pref_chan attr (STA)') that took care of other changes related to removal of the reason detail. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Remove MBO dependency from Supported Operating Classes elementvamsi krishna2016-12-111-294/+0
| | | | | | | | Supported Operating Classes element and its use is define in the IEEE 802.11 standard and can be sent even when MBO is disabled in the build. As such, move this functionality out from the CONFIG_MBO=y only mbo.c. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* MBO: Add support to send ANQP request to get cellular preferencevamsi krishna2016-09-301-0/+29
| | | | | | | | | | | This extends ANQP_GET command to support querying MBO cellular preference also. The cellular preference can be requested along with neigbor report by appending mbo:1 to the command arguments. For example: ANQP_GET <bssid> 272,mbo:1 Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* MBO: Do not add reason_detail in non_pref_chan attr (STA)vamsi krishna2016-09-251-17/+9
| | | | | | | | The reason detail field in non_pref_chan attribute was removed from MBO draft v0.0_r25, so the STA should not include this field to be compliant with the latest draft. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* Set default scan IEs to the driver (QCA vendor extension)vamsi krishna2016-08-021-0/+2
| | | | | | | | | | This makes wpa_supplicant set default scan IEs to the driver (if the vendor command is supported). The driver can use these IEs in the scan requests initiated by the driver itself. Also the driver can merge these IEs into further scan requests that it receives, in case if the scan request doesn't carry any of the IEs sent in this command. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* MBO: Remove unused assignmentJouni Malinen2016-07-181-1/+0
| | | | | | | | | | The local found variable is not used in this case. Commit 653d227e9f40cad1114c1c96654061446fd8b131 ('MBO: Improve supported operating class generation') introduced this variable and unnecessarily set it here. Remove the write-only assignment to silence static analyzers. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* MBO: Improve supported operating class generationJouni Malinen2016-06-301-13/+56
| | | | | | | | | | | | | | | | Previously, 2.4 GHz operating class 81 was not added for US due to not all of the channels (1-13 in this operating class) being supported. Still, this operating class is the main operating class in the global table for 2.4 GHz and it is the only option for indicating support for the 2.4 GHz band channels in US. Change the supported operating class building rules to include all operating classes for which at least one channel is enabled. In addition, fix the 80, 80+80, and 160 MHz channel checks (checking the center frequency channel was failing since it is not a valid 20 MHz channel). Signed-off-by: Jouni Malinen <j@w1.fi>
* MBO: Mark verify_channel() staticJouni Malinen2016-06-231-2/+2
| | | | | | This function is not used outside mbo.c. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* MBO: Send WNM-Notification when cellular capabilities changeAvraham Stern2016-02-221-4/+43
| | | | | | | Send a WNM-Notification to the associated AP to indicate changes in cellular data capabilities. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* MBO: Add MBO IE to BSS Transition Management Response frameAvraham Stern2016-02-221-0/+14
| | | | | | | | | When rejecting a BSS Transition Management Request frame, add MBO IE to the BSS Transition Management Response frame to specify the transition rejection reason. Signed-off-by: David Spinadel <david.spinadel@intel.com> Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* MBO: Parse MBO IE in BSS Transition Management Request framesAvraham Stern2016-02-221-0/+96
| | | | | | | | | | | | | Add parsing of MBO IE in BSS Transition Management Request frames. If the MBO IE includes the association retry delay attribute, do not try to reconnect to the current BSS until the delay time is over. If the MBO IE includes the cellular data connection preference attribute or the transition rejection reason attribute, send a message to upper layers with the data. Signed-off-by: David Spinadel <david.spinadel@intel.com> Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* MBO: Add Supported Operating Classes element to Association RequestAvraham Stern2016-02-221-0/+252
| | | | Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* MBO: Prevent association to APs that explicitly disallow thisDavid Spinadel2016-02-221-0/+18
| | | | | | | Prevent association to MBO APs that have association disallowed attribute in MBO IE in Beacon or Probe Response frames. Signed-off-by: David Spinadel <david.spinadel@intel.com>
* MBO: Add cellular capability to MBO IEDavid Spinadel2016-02-221-2/+22
| | | | | | | | Add cellular capability attribute to MBO IE and add MBO IE with cellular capabilities to Probe Request frames. By default, cellular capability value is set to Not Cellular capable (3). Signed-off-by: David Spinadel <david.spinadel@intel.com>
* MBO: Send MBO WNM-Notification Request frames to notify changesDavid Spinadel2016-02-221-5/+75
| | | | | | | | Send a WNM-Notification Request frame with Non-preferred Channel Report subelement if the non-preferred channels list changes during an association. Signed-off-by: David Spinadel <david.spinadel@intel.com>
* MBO: Implement MBO non-preferred channel report in Association RequestDavid Spinadel2016-02-221-0/+262
Add MBO IE with non-preferred channels to (Re)Association Request frames. Signed-off-by: David Spinadel <david.spinadel@intel.com>