path: root/wpa_supplicant/p2p_supplicant.h
Commit message (Collapse)AuthorAgeFilesLines
* AOSP: freq conflictJouni Malinen2012-08-091-0/+4
* Remove the GPL notification from files contributed by AtherosJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from files that were initially contributed by Atheros Communications or Qualcomm Atheros. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Set Invitation Type to 1 for GO inviting to a persistent groupJouni Malinen2012-02-061-1/+2
| | | | | | | | | | | When a GO is operating a persistent group and invites a peer that has been a P2P client in that persistent group, the Invitation Type in the Invitation Request frame can be set to 1 to indicate that this is a reinvocation of a persistent group. Do this based on the maintained list of P2P clients that have been provided the credentials to this group. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Allow Device ID to be specified for p2p_find commandJouni Malinen2012-01-081-1/+2
| | | | | | | dev_id=<P2P Device Addr> can now be specified as an argument to p2p_find to request P2P find for a specific P2P device. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Maintain a list of P2P Clients for persistent group on GOJouni Malinen2011-12-221-0/+2
| | | | | | | | | | Add a new persistent group network block field, p2p_client_list, to maintain a list of P2P Clients that have connected to a persistent group. This allows GO of a persistent group to figure out more easily whether re-invocation of a persistent group can be used with a specific peer device. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Show persistent group info on P2P_PEER dataJouni Malinen2011-12-221-0/+2
| | | | | | | | | | | | | Add "persistent=<network id>" line to P2P_PEER ctrl_iface data if a persistent group credentials are available for this peer. This makes it easier for external programs to figure out when a persistent group could be re-invoked with this peer. For now, this information is only available on the P2P client, but similar information can be added for GO once a list of P2P clients is maintained with the persistent group data. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Fix 32-bit compiler warnings on service discovery referenceJouni Malinen2011-12-111-5/+5
| | | | | | | | | | | Convert core wpa_supplicant code to use u64 instead of void * for the P2P service discovery reference. Use uintptr_t in type casts in p2p_supplicant.c to handle the conversion without warnings. Note: This needs to be revisited for 128-bit CPU where sizeof(void *) could be larger than sizeof(u64). Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Clean up group formation on network block removalJouni Malinen2011-12-101-0/+2
| | | | | | | | | | If a P2P group network block is removed for any reason (e.g., wps_cancel command) while the interface is in group formation, remove the group formation timeout and indicate failure immediately. Previously, this type of operations could end up leaving the timeout running and result in somewhat unexpected group formation failure events later. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Add group ifname to P2P-PROV-DISC-* eventsJouni Malinen2011-12-061-1/+2
| | | | | | | | | | If Provision Discovery Request is sent for GO role (i.e., P2P Group ID attribute is included), add the group interface name to the control interface event on the GO. This makes it easier to figure out which ctrl_iface needs to be used for wps_pbc/wps_pin command to authorize the joining P2P client. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Add optional "join" argument for p2p_prov_disc commandJithu Jance2011-12-061-1/+1
| | | | | | | | This can be used to request Provision Discovery Request to be sent for the purpose of joining a running group, e.g., to request the GO to display a PIN that we can then use with p2p_connect join command. Signed-hostap: Jithu Jance <jithu@broadcom.com>
* P2P: Do not request station mode scans during P2P operationsJouni Malinen2011-09-291-0/+1
| | | | | | | | | | | | | The P2P search mechanism depends on the same scan functionality that is used for station mode scans. If these operations are being used at the same time, scan result processing is not handled properly. Avoid unexpected behavior by delaying station mode scan requests if a P2P operation is in progress. Among other things, this allows the station mode connection attempt to be continued after a P2P find or group formation has been completed if the interface is available (i.e., when the P2P group uses a separate virtual interface).
* P2P: Filter Probe Request frames based on DA and BSSID in Listen stateJouni Malinen2011-07-151-0/+1
| | | | | | Only accept Probe Request frames that have a Wildcard BSSID and a destination address that matches with our P2P Device Address or is the broadcast address per P2P specification
* P2P: Add WpsFailed signal in P2P D-BusJayant Sane2011-06-251-0/+2
| | | | | | | Signal is triggered if an error occurs during WPS provisioning phase. Signed-off-by: Jean-Michel.Bachot <jean-michelx.bachot@intel.com> Signed-off-by: Jayant Sane <jayant.sane@intel.com>
* P2P: Add option for requested device type in P2P search/scanJean-Michel Bachot2011-03-191-1/+2
| | | | | | | With this, p2p_find can be extended to find certain requested device types. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add new_device flag to dev_found callbackJohannes Berg2011-02-241-1/+2
| | | | | | | | | | | | | | The DBus code will want to have perfect matching of dev_found and the dev_lost it adds so it doesn't need to keep track internally. Enable that with a new flag in the core that tracks whether we have already notified about this -- the existing users can ignore it. The part where this is always set to 1 if the new device is discovered by a driver that has P2P in the driver is buggy -- the driver should feed the P2P peer database and then that should feed the notification here instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Embed publically visible struct in peer infoKonguraj(Raj) Kulanthaivel2011-02-241-3/+3
| | | | | | | | | | | | This embeds some information about each P2P peer that will be publically visible in a struct that is shared. The dev_found notification function is also passed the new struct, which requires some work for the driver-based P2P management. Signed-off-by: Konguraj(Raj) Kulanthaivel <konguraj.kulanthaivel@intel.com> Signed-off-by: Fabien Marotte <fabienx.marotte@linux.intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add wpas_p2p_disconnect()Johannes Berg2011-02-021-0/+1
| | | | | | | Add a new API function wpas_p2p_disconnect() to disconnect from or dissolve a group. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* P2P: Add p2p_unauthorize commandSudhakar Swaminathan2010-11-251-0/+1
| | | | | This can be used to remove authorization from a previous p2p_connect commands that has not yet resulted in completed GO Negotiation.
* P2P: Add support for automatic channel selection at GOAnil Gathala Sudha2010-11-101-0/+2
| | | | | | | | | | | | | The driver wrapper may now indicate the preferred channel (e.g., based on scan results) on both 2.4 GHz and 5 GHz bands (and an overall best frequency). When setting up a GO, this preference information is used to select the operating channel if configuration does not include hardcoded channel. Similarly, this information can be used during GO Negotiation to indicate preference for a specific channel based on current channel conditions. p2p_group_add command can now use special values (freq=2 and freq=5) to indicate that the GO is to be started on the specified band.
* P2P: Remove P2P group on driver resource becoming unavailableJouni Malinen2010-10-251-0/+1
| | | | | | | | | | | | | Add a new driver event, EVENT_INTERFACE_UNAVAILABLE, for indicating that the driver is not able to continue operating the virtual interface in its current mode anymore, e.g., due to operating channel for GO interface forced to a DFS channel by another virtual interface. When this happens for a P2P group interface, the P2P group will be terminated and P2P-GROUP-REMOVED event shows the reason for this as follows: P2P-GROUP-REMOVED wlan0 GO reason=UNAVAILABLE
* P2P: Add p2p_cancel command for cancelling ongoing group formationJouni Malinen2010-10-191-0/+1
* P2P: Skip GO Neg Conf ack failure workaround of send failuresJouni Malinen2010-10-191-1/+3
| | | | | | | | | | | | | The workaround to ignore no ctrl::ack received for GO Negotiation Confirmation frame was only supposed to be used when the frame was actually transmitted and just the ack was not received. However, due to the way the driver failure on transmitting the frame were reported, this ended up getting applied for all failures in sending the GO Negotiation Confirmation frame. Improve this by providing a mechanism to indicate whether send_action operations fail locally before the frame was actually transmitted or because of not receiving ack frame after having transmitted the frame.
* P2P: Add mechanism for updating P2P channel list based on driver eventsJouni Malinen2010-10-151-0/+1
| | | | | | This allows P2P channel list to be updated whenever the driver changes its list of allowed channels, e.g., based on country code from scan results.
* P2P: Stop connection attempt on PBC session overlapJouni Malinen2010-09-101-0/+1
| | | | | | The overlap condition cannot disappear before group formation timeout hits, so there is no point in continuing in this case and failure can be indicated immediately.
* Fix build without CONFIG_P2P=yJouni Malinen2010-09-091-0/+1
* P2P: Add Device Password ID to GO Neg Request RX eventJouni Malinen2010-09-091-1/+1
| | | | | | This event indicates the Device Password ID that the peer tried to use in GO Negotiation. For example: P2P-GO-NEG-REQUEST 02:40:61:c2:f3:b7 dev_passwd_id=4
* P2P: Add support for cross connectionJouni Malinen2010-09-091-0/+3
| | | | | | | | If enabled, cross connection allows GO to forward IPv4 packets using masquerading NAT from the P2P clients in the group to an uplink WLAN connection. This is disabled by default and can be enabled with "wpa_cli p2p_set cross_connect 1" on the P2P device interface.
* P2P: Disable periodic NoA when non-P2P STA is connectedJouni Malinen2010-09-091-0/+2
| | | | | | For now, this applies to the test command that can be used to set periodic NoA (p2p_set noa). The value are stored and periodic NoA is enabled whenever there are no non-P2P STAs connected to the GO.
* P2P: Include P2P IE in (Re)AssocReq to infra AP if it uses P2P IEJouni Malinen2010-09-091-1/+1
| | | | | | While this is not strictly speaking required by the P2P specification for a not-P2P Managed Device, this can provide useful information for the P2P manager AP and may be needed to pass certification tests.
* P2P: Add initial version of P2P ModuleJouni Malinen2010-09-091-0/+110