aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
Commit message (Collapse)AuthorAgeFilesLines
* WFD: Add support for sending Wi-Fi Display service discovery requestsJouni Malinen2012-12-141-0/+1
| | | | | | | | | | | | | | | | | wpa_cli p2p_serv_disc_req command can now be used to request WSD request to be sent to specified or all peers who support WSD. format: wifi-display <list of roles> <list of subelements> examples: p2p_serv_disc_req 00:00:00:00:00:00 wifi-display [source] 2,3,4,5 p2p_serv_disc_req 02:01:02:03:04:05 wifi-display [pri-sink] 3 p2p_serv_disc_req 00:00:00:00:00:00 wifi-display [sec-source] 2 p2p_serv_disc_req 00:00:00:00:00:00 wifi-display [source+sink] 2,3,4,5 p2p_serv_disc_req 00:00:00:00:00:00 wifi-display [source][pri-sink] 2,3,4,5 Change-Id: I14f8a92aa9a2161d7db97f5670d2dfe3b63ef1e3 Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* WFD: Add wfd_subelems hexdump in BSS ctrl_iface command outputJouni Malinen2012-12-141-0/+1
| | | | | | | | This makes it easier to parse the WFD subelements from scan results. Change-Id: I1ce349bb33b56470888b47a37a96e56f1e0d6342 Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* WFD: Add Wi-Fi Display supportJouni Malinen2012-12-143-0/+23
| | | | | | | | | | | | | | | | | | | | This commit adds control interface commands and internal storage of Wi-Fi Display related configuration. In addition, WFD IE is now added to various P2P frames, Probe Request/Response, and (Re)Association Request/Response frames. WFD subelements from peers are stored in the P2P peer table. Following control interface commands are now available: SET wifi_display <0/1> GET wifi_display WFD_SUBELEM_SET <subelem> [hexdump of length+body] WFD_SUBELEM_GET <subelem> Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> [vishalm@ti.com: Backported it to curent tree] Signed-off-by: Vishal Mahaveer <vishalm@ti.com> Change-Id: Ief0cd61903facd9209927d9dc84c8f093f3b6bac
* P2P: Resolve frequency conflicts between STA and P2P (BRCM)Eyal Shapira2012-08-021-0/+4
| | | | | | | | | | | | | | Upon association check whether there's a a frequency conflict given that no support for multi channel. In case there's a freq conflict with an existing P2P_GO or P2P_CLI decide how to resolve it (which one to disable or disconnect) according to the priority configuration. Effectively on Android JB, STA is always prioritized over P2P so in case of a conflict P2P will be disconnected so that STA can associate on a different channel. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* P2P: enable to set in the conf file the wmm paramsYoni Divinsky2012-07-302-0/+79
| | | | | | | | | | In case of P2P GO, the wpa_supplicant uses the default hostapd parameters. In the default parameters the ACM bit for video and voice are set to 1, meaning, P2P devices and stations which are connected to the GO cannot pass voice or video data packets. Signed-hostap: Yoni Divinsky <yoni.divinsky@ti.com>
* hostapd: Initial IEEE 802.11ac (VHT) definitionsMahesh Palivela2012-06-301-0/+49
| | | | | | Add IEEE 802.11ac definitions for config, IEEE structures, constants. Signed-hostap: Mahesh Palivela <maheshp@posedge.com>
* WNM: Add advertisement of BSS max idle periodJouni Malinen2012-05-273-1/+14
| | | | | | | | | | | If WNM is enabled for the build (CONFIG_WNM=y), add BSS max idle period information to the (Re)Association Response frame from the AP and parse this information on the station. For SME-in-wpa_supplicant case, add a timer to handle periodic transmission of the keep-alive frame. The actual request for the driver to transmit a frame is not yet implemented. Signed-hostap: Jouni Malinen <j@w1.fi>
* HS 2.0: Indicate Hotspot 2.0 in BSS table and statusJouni Malinen2012-05-081-0/+1
| | | | | | | If the AP indicates support for Hotspot 2.0, show this in the ctrl_iface commands for BSS table and status. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* HS 2.0: Parse Hotspot 2.0 IE from IE listJouni Malinen2012-05-082-0/+7
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* HS 2.0: Define Hotspot 2.0 OUI types and subtype valuesJay Katabathuni2012-05-081-0/+10
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* WNM: Define IEEE 802.11v WNM-Sleep elementsXi Chen2012-05-031-0/+38
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Define 20/40 BSS Coexistence elementsRajkumar Manoharan2012-05-031-0/+21
| | | | | | | | | This patch defines 20/40 BSS Intolerant Channel Report element (IEEE 802.11-2012 8.4.2.60) and 20/40 BSS Coexistence element (IEEE 802.11-2012 8.4.2.62). Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* P2P: Add provision discovery failure eventDeepthi Gowri2012-04-171-0/+2
| | | | | | | | Add provisional discovery failure ctrl_iface event (P2P-PROV-DISC-FAILURE) to indicate to the application layer in case of PD failure. Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>
* Add MASK=0xH option for the ctrl_iface BSS commandDmitry Shmidt2012-04-071-0/+21
| | | | | | | | This optional parameter to the BSS command can be used to select which fields are included in the output to avoid having to parse through unneeded information and to reduce the buffer size. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-1110-80/+20
| | | | | | | 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-112-16/+4
| | | | | | | 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-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | 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>
* P2P: Notify upper framework on stopping the p2p_find(SEARCH)Jithu Jance2012-01-221-0/+1
| | | | | | | | | This patch notifies the upper framework that an on-going discovery has been stopped. This is useful in cases where a p2p_find with a timeout value initiated by the upper framework has been finished or when the framework initiated "p2p_find" is stopped by a "p2p_connect". Signed-hostap: Jithu Jance <jithu@broadcom.com>
* AP: Pass station's WMM configuration to driver wrappersJason Young2011-12-171-0/+4
| | | | | | | This updates a previous patch did more or less the same thing by providing the qosinfo as a single variable to the driver wrappers. Signed-hostap: Jason Young <jason.young@dspg.com>
* Use wpa_key_mgmt_*() helpersJouni Malinen2011-11-241-0/+5
| | | | | | | This cleans up the source code and makes it less likely that new AKM addition misses some needed changes in the future. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove incorrect le16 type castJouni Malinen2011-11-181-1/+1
| | | | | | | HT_INFO_OPERATION_MODE_OP_MODE_MASK is used with variables in host byte order, so it should not be claimed as le16. Signed-hostap: Jouni Malinen <j@w1.fi>
* Use a single define for maximum number of EAP methodsJouni Malinen2011-11-171-0/+3
| | | | | | | | This cleans up the code a bit by not having to deal with theoretical possibility of maximum number of EAP methods to be different between various components in hostapd. Signed-hostap: Jouni Malinen <j@w1.fi>
* Update version number to 2.0-develJouni Malinen2011-11-031-1/+1
| | | | | | | hostap.git is now a development branch for 2.0 with 1.x releases having been forked to hostap-1.git. Signed-hostap: Jouni Malinen <j@w1.fi>
* Add wpa_supplicant_ctrl_req_from_string()Dan Williams2011-10-301-0/+1
| | | | | | | | Converts from a string to a control request enum when input from a control interface is received. Will be used by a subsequent patch. Signed-off-by: Dan Williams <dcbw@redhat.com>
* Use an enum for EAP SM requestsDan Williams2011-10-301-0/+13
| | | | | | | | | | | Control requests will be extended for non-EAP uses later, so it makes sense to have them be generic. Furthermore, having them defined as an enum is easier for processing internally, and more generic for control interfaces that may not use field names. The public ctrl_req_type / field_name conversion function will be used later by the D-Bus control interface too. Signed-off-by: Dan Williams <dcbw@redhat.com>
* P2P: Notify device expiry via P2P-DEVICE-LOST eventJithu Jance2011-10-281-0/+4
| | | | | This patch will notify applications listening over control socket about the device expiry [from p2p peer list].
* TDLS: Process discovery requests and send discovery responsesArik Nemtsov2011-10-231-0/+1
| | | | | | | | | When a discovery request is received, add the peer to the TDLS peer cache and send a response containing minimal data. Mandatory IEs in the discovery response frame will be filled out by the driver. Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
* Interworking: Add Interworking element to IE parserJouni Malinen2011-10-212-0/+6
|
* Move get_hdr_bssid() to make it easier to share for other usesJohannes Berg2011-10-202-0/+42
|
* Android: Add wpa_ctrl_cleanup()Dmitry Shmidt2011-10-182-0/+62
| | | | | | | This function can be used to clean up local UNIX domain socket files that may be left over from clients that were previously connected to wpa_supplicant. At least for now, this is only available for Android builds.
* Add support for Time AdvertisementJouni Malinen2011-10-181-0/+2
| | | | | This adds preliminary support for IEEE 802.11v Time Advertisement mechanism with UTC TSF offset.
* Interworking: Add support for configuring Roaming Consortium ListJouni Malinen2011-10-171-0/+1
|
* Interworking: Parse NAI Realms and match against home realmJouni Malinen2011-10-161-0/+30
|
* Interworking: Add commands for network selectionJouni Malinen2011-10-161-0/+3
| | | | | | | This adds the basic mechanism for running through network selection: scan, ANQP fetch, network selection, and connection. Actual rules for network selection and the creation of the network block are still missing, but will be added in separate commits.
* GAS: Export gas_build_initial_resp()Jouni Malinen2011-10-162-1/+3
| | | | | This is needed for some GAS error response messages where the ANQP Advertisement Protocol element is not used.
* Define new IEEE 802.11u status codesJouni Malinen2011-10-161-0/+10
|
* WNM: Add BSS Transition Management Request for ESS Disassoc ImminentJouni Malinen2011-10-161-0/+54
| | | | | | | "hostapd_cli ess_disassoc (STA addr) (URL)" can now be used to send an ESS Dissassociation Imminent notification to the STA. This event is shown in wpa_supplicant ctrl_iface monitors (e.g., wpa_cli): "WNM: ESS Disassociation Imminent - session_info_url=http://example.com/session/"
* IEEE 802.11u: Allow Interworking and HESSID to be configuredJouni Malinen2011-10-161-0/+9
| | | | | | The new wpa_supplicant.conf file global parameters interworking and hessid can be used to configure wpa_supplicant to include Interworking element in Probe Request frames.
* IEEE 802.11u: Add configuration and advertisement for InterworkingJouni Malinen2011-10-161-0/+8
|
* Move GAS/ANQP build routines to a separate file from P2PJouni Malinen2011-09-292-0/+319
| | | | | | GAS/ANQP is a generic protocol and in no way specific to P2P, so move routines used to build GAS/ANQP frames to a separate file that can be shared for other uses than just P2P service discovery.
* Rename and fix ANQP definitions to match IEEE Std 802.11u-2011Jouni Malinen2011-09-261-18/+20
|
* Fix typos found by codespellPavel Roskin2011-09-221-1/+1
| | | | Signed-off-by: Pavel Roskin <proski@gnu.org>
* FT: Share IE parser implementation for Authenticator and SupplicantJouni Malinen2011-07-162-0/+171
| | | | | These are almost identical, so there is no point in using separate implementations.
* Fix wpa_key_mgmt_*() helper functions to handle multiple bitsJouni Malinen2011-04-081-10/+10
| | | | | | These can be used in some cases with a bitfield having multiple AKMs enabled (e.g., WPA-PSK and WPA-PSK-SHA256). Address those cases by checking whether any of the matching AKM are included.
* hostapd: Add testing mode for RSN element extensionsJouni Malinen2011-03-211-0/+6
| | | | | | | | CFLAGS += -DCONFIG_RSN_TESTING in .config and rsn_testing=1 in hostapd.conf can now be used to enable a testing mode that adds extensions to RSN element. This can be used to check whether station implementations are incompatible with future extensions to the RSN element.
* Check select() return value in wpa_ctrl_request()Dmitry Shmidt2011-03-151-0/+2
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* TDLS: Add initial support for TDLS (IEEE Std 802.11z-2010)Ganesh Prasadh2011-03-062-0/+10
|
* Allow client control socket location to be overriddenJouni Malinen2011-02-271-1/+11
| | | | | | | | Build options can now be used to replace the location of client sockets for UNIX domain socket control interface: CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/tmp\" CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_PREFIX=\"wpa_ctrl_\"
* Use Android reserved namespace for control interfaceDmitry Shmidt2011-02-271-0/+30
| | | | | On Android, use a special reserved namespace for the UNIX domain socket.
* Use longer timeout in wpa_ctrl_request()Dmitry Shmidt2011-02-271-1/+1
| | | | | Wait longer for control interface response from wpa_supplicant to avoid issues with some drivers that have long blocking operations.