Lines Matching +full:on +full:- +full:the +full:- +full:go
2 * Wi-Fi Direct - P2P module
3 * Copyright (c) 2009-2010, Atheros Communications
5 * This software may be distributed under the terms of the BSD license.
23 #define P2PS_WILD_HASH_STR "org.wi-fi.wfds"
29 * P2P_MAX_PREF_CHANNELS - Maximum number of preferred channels
34 * P2P_MAX_REG_CLASSES - Maximum number of regulatory classes
39 * P2P_MAX_REG_CLASS_CHANNELS - Maximum number of channels per regulatory class
44 * struct p2p_channels - List of supported channels
48 * struct p2p_reg_class - Supported regulatory class
52 * reg_class - Regulatory class (IEEE 802.11-2007, Annex J)
57 * channel - Supported channels
62 * channels - Number of channel entries in use
68 * reg_classes - Number of reg_class entries in use
79 * struct p2p_go_neg_results - P2P Group Owner Negotiation results
83 * status - Negotiation result (Status Code)
85 * 0 (P2P_SC_SUCCESS) indicates success. Non-zero values indicate
91 * role_go - Whether local end is Group Owner
96 * freq - Frequency of the group operational channel in MHz
111 * he - Indicates if IEEE 802.11ax HE is enabled
116 * ssid - SSID of the group
121 * ssid_len - Length of SSID in octets
126 * psk - WPA pre-shared key (256 bits) (GO only)
131 * psk_set - Whether PSK field is configured (GO only)
136 * passphrase - WPA2-Personal passphrase for the group (GO only)
141 * peer_device_addr - P2P Device Address of the peer
146 * peer_interface_addr - P2P Interface Address of the peer
151 * wps_method - WPS method to be used during provisioning
158 * freq_list - Zero-terminated list of possible operational channels
163 * persistent_group - Whether the group should be made persistent
171 * peer_config_timeout - Peer configuration timeout (in 10 msec units)
178 * pd_seeker - P2PS provision discovery seeker role
183 * status - Remote returned provisioning status code
188 * adv_id - P2PS Advertisement ID
193 * session_id - P2PS Session ID
198 * method - WPS Method (to be) used to establish session
203 * conncap - Connection Capabilities negotiated between P2P peers
208 * role - Info about the roles to be used for this connection
213 * session_mac - MAC address of the peer that started the session
218 * adv_mac - MAC address of the peer advertised the service
223 * cpt_mask - Supported Coordination Protocol Transport mask
231 * cpt_priority - Coordination Protocol Transport priority list
235 * The CPT priority list is 0 terminated.
240 * force_freq - The only allowed channel frequency in MHz or 0.
245 * pref_freq - Preferred operating frequency in MHz or 0.
250 * info - Vendor defined extra Provisioning information
259 * svc_info - Pointer to (internal) Service defined information
264 * id - P2PS Advertisement ID
269 * config_methods - WPS Methods which are allowed for this service
274 * state - Current state of the service: 0 - Out Of Service, 1-255 Vendor defined
279 * auto_accept - Automatically Accept provisioning request if possible.
284 * hash - 6 octet Service Name has to match against incoming Probe Requests
289 * cpt_mask - supported Coordination Protocol Transport mask
297 * cpt_priority - Coordination Protocol Transport priority list
301 * The CPT priority list is 0 terminated.
306 * svc_name - NULL Terminated UTF-8 Service Name, and svc_info storage
324 * struct p2p_peer_info - P2P peer information
328 * p2p_device_addr - P2P Device Address of the peer
333 * pri_dev_type - Primary Device Type
338 * device_name - Device Name (0..32 octets encoded in UTF-8)
343 * manufacturer - Manufacturer (0..64 octets encoded in UTF-8)
348 * model_name - Model Name (0..32 octets encoded in UTF-8)
353 * model_number - Model Number (0..32 octets encoded in UTF-8)
358 * serial_number - Serial Number (0..32 octets encoded in UTF-8)
363 * level - Signal level
368 * config_methods - WPS Configuration Methods
373 * dev_capab - Device Capabilities
378 * group_capab - Group Capabilities
383 * wps_sec_dev_type_list - WPS secondary device type list
391 * wps_sec_dev_type_list_len - Length of secondary device type list
398 * wfd_subelems - Wi-Fi Display subelements from WFD IE(s)
403 * vendor_elems - Unrecognized vendor elements
406 * IE(s) from the frame that was used to discover the peer.
411 * p2ps_instance - P2PS Application Service Info
430 * struct p2p_config - P2P configuration
432 * This configuration is provided to the P2P module during initialization with
437 * country - Country code to use in P2P operations
442 * reg_class - Regulatory class for own listen channel
447 * channel - Own listen channel
452 * channel_forced - the listen channel was forced by configuration
463 * op_channel - Own operational channel
468 * cfg_op_channel - Whether op_channel is hardcoded in configuration
473 * channels - Own supported regulatory classes and channels
475 * List of supposerted channels per regulatory class. The regulatory
476 * classes are defined in IEEE Std 802.11-2007 Annex J and the
477 * numbering of the clases depends on the configured country code.
482 * cli_channels - Additional client channels
485 * channels during GO Negotiation or Invitation for the cases where the
486 * local end may become the client. This may allow the peer to become a
487 * GO on additional channels if it supports these options. The main use
488 * case for this is to include passive-scan channels on devices that may
496 * num_pref_chan - Number of pref_chan entries
501 * pref_chan - Preferred channels for GO Negotiation
506 * p2p_6ghz_disable - Disable 6GHz for P2P operations
511 * pri_dev_type - Primary Device Type (see WPS)
516 * P2P_SEC_DEVICE_TYPES - Maximum number of secondary device types
521 * sec_dev_type - Optional secondary device types
526 * num_sec_dev_types - Number of sec_dev_type entries
531 * dev_addr - P2P Device Address
536 * dev_name - Device Name
549 * concurrent_operations - Whether concurrent operations are supported
554 * max_peers - Maximum number of discovered peers to remember
557 * room for the new ones.
562 * p2p_intra_bss - Intra BSS communication is supported
567 * ssid_postfix - Postfix data to add to the SSID
569 * This data will be added to the end of the SSID after the
570 * DIRECT-<random two octets> prefix.
572 u8 ssid_postfix[SSID_MAX_LEN - 9];
575 * ssid_postfix_len - Length of the ssid_postfix data
580 * max_listen - Maximum listen duration in ms
585 * passphrase_len - Passphrase length (8..63)
587 * This parameter controls the length of the random passphrase that is
588 * generated at the GO.
593 * cb_ctx - Context to use with callback functions
598 * debug_print - Debug print
609 * p2p_scan - Request a P2P scan/search
618 * Returns: 0 on success, -1 on failure
622 * of scan is to be done. @P2P_SCAN_SOCIAL indicates that only the
626 * @P2P_SCAN_SOCIAL_PLUS_ONE request scan of all the social channels
629 * The full scan is used for the initial scan to find group owners from
630 * all. The other types are used during search phase scan of the social
631 * channels (with potential variation if the Listen channel of the
634 * The scan results are returned after this call by calling
645 * send_probe_resp - Transmit a Probe Response frame
647 * @buf: Probe Response frame (including the header and body)
649 * Returns: 0 on success, -1 on failure
652 * indicated with a call to p2p_probe_req_rx(). The response is to be
653 * sent on the same channel, unless otherwise specified, or to be
654 * dropped if the driver is not listening to Probe Request frames
657 * Alternatively, the responsibility for building the Probe Response
659 * case this function need to be implemented (i.e., the function
660 * pointer can be %NULL). The WPS and P2P IEs to be added for Probe
661 * Response frames in such a case are available from the
662 * start_listen() callback. It should be noted that the received Probe
670 * send_action - Transmit an Action frame
672 * @freq: Frequency in MHz for the channel on which to transmit
679 * @scheduled: Return value indicating whether the transmissions was
680 * scheduled to happen once the radio is available
681 * Returns: 0 on success, -1 on failure
683 * The Action frame may not be transmitted immediately and the status
684 * of the transmission must be reported by calling
685 * p2p_send_action_cb() once the frame has either been transmitted or
694 * send_action_done - Notify that Action frame sequence was completed
697 * This function is called when the Action frame sequence that was
699 * no need to wait for a response from the destination peer anymore.
704 * start_listen - Start Listen state
706 * @freq: Frequency of the listen channel in MHz
707 * @duration: Duration for the Listen state in milliseconds
709 * Returns: 0 on success, -1 on failure
711 * This Listen state may not start immediately since the driver may
712 * have other pending operations to complete first. Once the Listen
713 * state has started, p2p_listen_cb() must be called to notify the P2P
714 * module. Once the Listen state is stopped, p2p_listen_end() must be
715 * called to notify the P2P module that the driver is not in the Listen
718 * If the send_probe_resp() is not used for generating the response,
719 * the IEs from probe_resp_ie need to be added to the end of the Probe
720 * Response frame body. If send_probe_resp() is used, the probe_resp_ie
727 * stop_listen - Stop Listen state
736 * get_noa - Get current Notice of Absence attribute payload
738 * @interface_addr: P2P Interface Address of the GO
742 * advertized, or -1 on failure
744 * This function is used to fetch the current Notice of Absence
745 * attribute value from GO.
753 * dev_found - Notification of a found P2P Device
755 * @addr: Source address of the message triggering this notification
757 * @new_device: Inform if the peer is newly found
760 * found. This may happen, e.g., during Search state based on scan
761 * results or during Listen state based on receive Probe Request and
769 * dev_lost - Notification of a lost P2P Device
771 * @dev_addr: P2P Device Address of the lost P2P Device
778 * find_stopped - Notification of a p2p_find operation stopping
784 * go_neg_req_rx - Notification of a receive GO Negotiation Request
786 * @src: Source address of the message triggering this notification
788 * @go_intent: Peer's GO Intent
791 * group owner negotiation with us, but we do not have all the
792 * necessary information to start GO Negotiation. This indicates that
793 * the local user has not authorized the connection yet by providing a
801 * go_neg_completed - Notification of GO Negotiation results
803 * @res: GO Negotiation results
806 * been completed. Non-zero struct p2p_go_neg_results::status indicates
808 * for creating a new group interface (or using the existing interface
809 * depending on driver features), setting up the group interface in
810 * proper mode based on struct p2p_go_neg_results::role_go and
811 * initializing WPS provisioning either as a Registrar (if GO) or as an
813 * p2p_wps_success_cb(). The callee is responsible for timing out group
820 * sd_request - Callback on Service Discovery Request
822 * @freq: Frequency (in MHz) of the channel
823 * @sa: Source address of the request
825 * @update_indic: Service Update Indicator from the source of request
830 * request. Response to the query must be indicated by calling
831 * p2p_sd_response() with the context information from the arguments to
841 * sd_response - Callback on Service Discovery Response
843 * @sa: Source address of the request
844 * @update_indic: Service Update Indicator from the source of response
850 * discovery requests are used. The information provided with this call
851 * is replies to the queries scheduled with p2p_sd_request().
857 * prov_disc_req - Callback on Provisiong Discovery Request
859 * @peer: Source address of the request
861 * @dev_addr: P2P Device Address of the found P2P Device
871 * Request frame that the P2P module accepted.
880 * prov_disc_resp - Callback on Provisiong Discovery Response
882 * @peer: Source address of the response
883 * @config_methods: Value from p2p_prov_disc_req() or 0 on failure
893 * prov_disc_fail - Callback on Provision Discovery failure
895 * @peer: Source address of the response
897 * @adv_id: If non-zero, then the adv_id of the PD Request
898 * @adv_mac: P2P Device Address of the advertizer
913 * invitation_process - Optional callback for processing Invitations
915 * @sa: Source address of the Invitation Request
916 * @bssid: P2P Group BSSID from the request or %NULL if not included
917 * @go_dev_addr: GO Device Address from P2P Group ID
920 * @go: Variable for returning whether the local end is GO in the group
921 * @group_bssid: Buffer for returning P2P Group BSSID (if local end GO)
922 * @force_freq: Variable for returning forced frequency for the group
926 * @channels: Available operating channels for the group
927 * @dev_pw_id: Device Password ID for NFC static handover or -1 if not
934 * the received Invitation Request frames are replied with
935 * %P2P_SC_REQ_RECEIVED status and indicated to upper layer with the
938 * If the requested parameters are acceptable and the group is known,
939 * %P2P_SC_SUCCESS may be returned. If the requested group is unknown,
942 * response, i.e., if some sort of user interaction is needed. The
948 size_t ssid_len, int *go, u8 *group_bssid,
954 * invitation_received - Callback on Invitation Request RX
956 * @sa: Source address of the Invitation Request
958 * @ssid: SSID of the group
960 * @go_dev_addr: GO Device Address
962 * @op_freq: Operational frequency for the group
965 * for a received Invitation Request. If status == 0 (success), the
966 * upper layer code is responsible for starting the group. status == 1
967 * indicates need to get user authorization for the group. Other status
968 * values indicate that the invitation request was rejected.
976 * invitation_result - Callback on Invitation result
980 * @channels: Available operating channels for the group
983 * @peer_oper_freq: Operating frequency (in MHz) advertized by the peer
987 * started with a call to p2p_invite(). The indicated status code is
988 * the value received from the peer in Invitation Response with 0
989 * (P2P_SC_SUCCESS) indicating success or -1 to indicate a timeout or a
990 * local failure in transmitting the Invitation Request.
997 * go_connected - Check whether we are connected to a GO
999 * @dev_addr: P2P Device Address of a GO
1000 * Returns: 1 if we are connected as a P2P client to the specified GO
1006 * presence_resp - Callback on Presence Response
1008 * @src: Source address (GO's P2P Interface Address)
1009 * @status: Result of the request (P2P_SC_*)
1011 * @noa_len: Length of the NoA buffer in octets
1017 * is_concurrent_session_active - Check whether concurrent session is
1018 * active on other virtual interfaces
1020 * Returns: 1 if concurrent session is active on other virtual interface
1026 * is_p2p_in_progress - Check whether P2P operation is in progress
1040 * @go_dev_addr: Buffer for returning GO P2P Device Address
1052 * Get information about a possible local GO role
1054 * @intended_addr: Buffer for returning intended GO interface address
1059 * @freq: Variable for returning the current operating frequency of a
1060 * currently running P2P GO.
1061 * Returns: 1 if GO info found, 0 otherwise
1065 * result in our being an autonomous GO.
1072 * remove_stale_groups - Remove stale P2PS groups
1078 int (*remove_stale_groups)(void *ctx, const u8 *peer, const u8 *go,
1082 * p2ps_prov_complete - P2PS provisioning complete
1085 * transmit all of the results to the upper layers.
1099 * prov_disc_resp_cb - Callback for indicating completion of PD Response
1109 * p2ps_group_capability - Determine group capability
1113 * @force_freq: Variable for returning forced frequency for the group.
1114 * @pref_freq: Variable for returning preferred frequency for the group.
1118 * frequencies based on information from P2PS PD exchange and the
1126 * get_pref_freq_list - Get preferred frequency list for an interface
1128 * @go: Whether the use if for GO role
1130 * @freq_list: Buffer for returning the preferred frequencies (MHz)
1131 * Returns: 0 on success, -1 on failure
1133 * This function can be used to query the preferred frequency list from
1134 * the driver specific to a particular interface type.
1136 int (*get_pref_freq_list)(void *ctx, int go,
1145 * p2p_init - Initialize P2P module
1147 * Returns: Pointer to private data or %NULL on failure
1150 * device). The P2P module will keep a copy of the configuration data, so the
1151 * caller does not need to maintain this structure. However, the callback
1152 * functions and the context parameters to them must be kept available until
1153 * the P2P module is deinitialized with p2p_deinit().
1158 * p2p_deinit - Deinitialize P2P module
1164 * p2p_flush - Flush P2P module state
1167 * This command removes the P2P module state like peer device entries.
1172 * p2p_unauthorize - Unauthorize the specified peer device
1175 * Returns: 0 on success, -1 on failure
1177 * This command removes any connection authorization from the specified P2P
1180 * GO Negotiation.
1185 * p2p_set_dev_name - Set device name
1187 * Returns: 0 on success, -1 on failure
1189 * This function can be used to update the P2P module configuration with
1190 * information that was not available at the time of the p2p_init() call.
1203 * p2p_set_pri_dev_type - Set primary device type
1205 * Returns: 0 on success, -1 on failure
1207 * This function can be used to update the P2P module configuration with
1208 * information that was not available at the time of the p2p_init() call.
1213 * p2p_set_sec_dev_types - Set secondary device types
1215 * Returns: 0 on success, -1 on failure
1217 * This function can be used to update the P2P module configuration with
1218 * information that was not available at the time of the p2p_init() call.
1235 * p2p_find - Start P2P Find (Device Discovery)
1245 * @seek_count: Number of ASP Service Strings in the seek_string array
1252 * Returns: 0 on success, -1 on failure
1262 * p2p_notify_scan_trigger_status - Indicate scan trigger status
1264 * @status: 0 on success, -1 on failure
1269 * p2p_stop_find - Stop P2P Find (Device Discovery)
1275 * p2p_stop_find_for_freq - Stop P2P Find for next oper on specific freq
1280 * already on the same frequency.
1285 * p2p_listen - Start P2P Listen state for specified duration
1288 * Returns: 0 on success, -1 on failure
1290 * This function can be used to request the P2P module to keep the device
1291 * discoverable on the listen channel for an extended set of time. At least in
1298 * p2p_stop_listen - Stop P2P Listen
1304 * p2p_connect - Start P2P group formation (GO negotiation)
1306 * @peer_addr: MAC address of the peer P2P client
1308 * @go_intent: Local GO intent value (1..15)
1309 * @own_interface_addr: Intended interface address to use with the group
1310 * @force_freq: The only allowed channel frequency in MHz or 0
1314 * @force_ssid: Forced SSID for the group if we become GO or %NULL to generate
1317 * @pd_before_go_neg: Whether to send Provision Discovery prior to GO
1322 * Returns: 0 on success, -1 on failure
1332 * p2p_authorize - Authorize P2P group formation (GO negotiation)
1334 * @peer_addr: MAC address of the peer P2P client
1336 * @go_intent: Local GO intent value (1..15)
1337 * @own_interface_addr: Intended interface address to use with the group
1338 * @force_freq: The only allowed channel frequency in MHz or 0
1342 * @force_ssid: Forced SSID for the group if we become GO or %NULL to generate
1347 * Returns: 0 on success, -1 on failure
1349 * This is like p2p_connect(), but the actual group negotiation is not
1350 * initiated automatically, i.e., the other end is expected to do that.
1360 * p2p_reject - Reject peer device (explicitly block connection attempts)
1362 * @peer_addr: MAC address of the peer P2P client
1363 * Returns: 0 on success, -1 on failure
1368 * p2p_prov_disc_req - Send Provision Discovery Request
1370 * @peer_addr: MAC address of the peer P2P client
1374 * @force_freq: Forced TX frequency for the frame (mainly for the join case)
1376 * Returns: 0 on success, -1 on failure
1380 * (config_methods = WPS_CONFIG_KEYPAD). The Provision Discovery Request frame
1381 * is transmitted once immediately and if no response is received, the frame
1382 * will be sent again whenever the target device is discovered during device
1383 * dsicovery (start with a p2p_find() call). Response from the peer is
1384 * indicated with the p2p_config::prov_disc_resp() callback.
1392 * p2p_sd_request - Schedule a service discovery query
1396 * Returns: Reference to the query or %NULL on failure
1398 * Response to the query is indicated with the p2p_config::sd_response()
1410 * p2p_sd_cancel_request - Cancel a pending service discovery query
1413 * Returns: 0 if request for cancelled; -1 if not found
1418 * p2p_sd_response - Send response to a service discovery query
1425 * This function is called as a response to the request indicated with
1432 * p2p_sd_service_update - Indicate a change in local services
1436 * of the local services. This will increment the Service Update Indicator
1449 * p2p_invite - Invite a P2P Device into a group
1451 * @peer: Device Address of the peer P2P Device
1452 * @role: Local role in the group
1456 * @force_freq: The only allowed channel frequency in MHz or 0
1457 * @go_dev_addr: Forced GO Device Address or %NULL if none
1462 * case or -1 if not used
1463 * Returns: 0 on success, -1 on failure
1471 * p2p_presence_req - Request GO presence
1473 * @go_interface_addr: GO P2P Interface Address
1480 * Returns: 0 on success, -1 on failure
1482 * If both duration and interval values are zero, the parameter pair is not
1491 * p2p_ext_listen - Set Extended Listen Timing
1494 * @period: Availability period in milliseconds (1-65535; 0 to disable)
1495 * @interval: Availability interval in milliseconds (1-65535; 0 to disable)
1496 * Returns: 0 on success, -1 on failure
1499 * Extended Listen Timing. When enabled, the P2P Device will become
1500 * discoverable (go into Listen State) every @interval milliseconds for at
1509 * p2p_wps_success_cb - Report successfully completed WPS provisioning
1514 * during group formation in both GO/Registrar and client/Enrollee roles.
1519 * p2p_group_formation_failed - Report failed WPS provisioning
1524 * the provisioning phase.
1529 * p2p_get_provisioning_info - Get any stored provisioning info
1535 * This function is used to retrieve stored WPS provisioning info for the given
1541 * p2p_clear_provisioning_info - Clear any stored provisioning info
1545 * This function is used to clear stored WPS provisioning info for the given
1556 * @P2P_PREQ_MALFORMED: frame was not well-formed
1571 * p2p_probe_req_rx - Report reception of a Probe Request frame
1576 * @ie: Information elements from the Probe Request frame body
1580 * Returns: value indicating the type and status of the probe request
1588 * p2p_rx_action - Report received Action frame
1590 * @da: Destination address of the received Action frame
1591 * @sa: Source address of the received Action frame
1592 * @bssid: Address 3 of the received Action frame
1593 * @category: Category of the received Action frame
1594 * @data: Action frame body after the Category field
1595 * @len: Length of the data buffer in octets
1596 * @freq: Frequency (in MHz) on which the frame was received
1603 * p2p_scan_res_handler - Indicate a P2P scan results
1605 * @bssid: BSSID of the scan result
1606 * @freq: Frequency of the channel on which the device was found in MHz
1607 * @rx_time: Time when the result was received
1608 * @level: Signal level (signal strength of the received Beacon/Probe Response
1610 * @ies: Pointer to IEs from the scan result
1611 * @ies_len: Length of the ies buffer
1616 * the actual scan process (i.e., whenever a new device is found) or as a
1617 * sequence of calls after the full scan has been completed. The former option
1619 * driver/firmware designs. The ies buffer need to include at least the P2P IE,
1620 * but it is recommended to include all IEs received from the device. The
1621 * caller does not need to check that the IEs contain a P2P IE before calling
1626 * start of a pending operation, e.g., to start a pending GO negotiation.
1633 * p2p_scan_res_handled - Indicate end of scan results
1640 * struct p2p_config::p2p_scan() call if none of the p2p_scan_res_handler()
1652 * p2p_send_action_cb - Notify TX status of an Action frame
1658 * @result: Result of the transmission attempt
1660 * This function is used to indicate the result of an Action frame transmission
1668 * p2p_listen_cb - Indicate the start of a requested Listen state
1671 * @duration: Duration for the Listen state in milliseconds
1680 * p2p_listen_end - Indicate the end of a requested Listen state
1697 /* Per-group P2P state for GO */
1702 * struct p2p_group_config - P2P group configuration
1704 * This configuration is provided to the P2P module during initialization of
1705 * the per-group information with p2p_group_init().
1709 * persistent_group - Whether the group is persistent
1717 * interface_addr - P2P Interface Address of the group
1722 * max_clients - Maximum number of clients in the group
1727 * ssid - Group SSID
1732 * ssid_len - Length of SSID
1737 * freq - Operating channel of the group
1742 * ip_addr_alloc - Whether IP address allocation within 4-way handshake
1748 * cb_ctx - Context to use with callback functions
1753 * ie_update - Notification of IE update
1758 * P2P module uses this callback function to notify whenever the P2P IE
1759 * in Beacon or Probe Response frames should be updated based on group
1762 * The callee is responsible for freeing the returned buffer(s) with
1769 * idle_update - Notification of changes in group idle state
1771 * @idle: Whether the group is idle (no associated stations)
1777 * p2p_group_init - Initialize P2P group
1780 * Returns: Pointer to private data or %NULL on failure
1782 * This function is used to initialize per-group P2P module context. Currently,
1783 * this is only used to manage GO functionality and P2P clients do not need to
1784 * create an instance of this per-group information.
1790 * p2p_group_deinit - Deinitialize P2P group
1796 * p2p_group_notif_assoc - Notification of P2P client association with GO
1798 * @addr: Interface address of the P2P client
1799 * @ie: IEs from the (Re)association Request frame
1800 * @len: Length of the ie buffer in octets
1801 * Returns: 0 on success, -1 on failure
1807 * p2p_group_assoc_resp_ie - Build P2P IE for (re)association response
1810 * Returns: P2P IE for (Re)association Response or %NULL on failure
1812 * The caller is responsible for freeing the returned buffer with
1818 * p2p_group_notif_disassoc - Notification of P2P client disassociation from GO
1820 * @addr: Interface address of the P2P client
1825 * p2p_group_notif_formation_done - Notification of completed group formation
1831 * p2p_group_notif_noa - Notification of NoA change
1835 * Returns: 0 on success, -1 on failure
1837 * Notify the P2P group management about a new NoA contents. This will be
1838 * inserted into the P2P IEs in Beacon and Probe Response frames with rest of
1839 * the group information.
1845 * p2p_group_match_dev_type - Match device types in group with requested type
1848 * Returns: 1 on match, 0 on mismatch
1850 * This function can be used to match the Requested Device Type attribute in
1851 * WPS IE with the device types of a group member for deciding whether a GO
1852 * should reply to a Probe Request frame. Match will be reported if the WPS IE
1858 * p2p_group_match_dev_id - Match P2P Device Address in group with requested device id
1863 * p2p_group_go_discover - Send GO Discoverability Request to a group client
1865 * Returns: 0 on success (frame scheduled); -1 if client was not found
1874 * p2p_ie_text - Build text format description of P2P IE
1877 * @end: Pointer to the end of the buf area
1878 * Returns: Number of octets written to the buffer or -1 on failure
1886 * p2p_scan_result_text - Build text format description of P2P IE
1890 * @end: Pointer to the end of the buf area
1891 * Returns: Number of octets written to the buffer or -1 on failure
1899 * p2p_parse_dev_addr_in_p2p_ie - Parse P2P Device Address from a concatenated
1903 * Returns: 0 on success or -1 if P2P Device Address could not be parsed
1908 * p2p_parse_dev_addr - Parse P2P Device Address from P2P IE(s)
1912 * Returns: 0 on success or -1 if P2P Device Address could not be parsed
1917 * p2p_assoc_req_ie - Build P2P IE for (Re)Association Request frame
1920 * @buf: Buffer for writing the P2P IE
1922 * @p2p_group: Whether this is for association with a P2P GO
1924 * Returns: Number of octets written into buf or -1 on failure
1930 * p2p_scan_ie - Build P2P IE for Probe Request
1934 * @bands: Frequency bands used in the scan (enum wpa_radio_work_band bitmap)
1940 * p2p_scan_ie_buf_len - Get maximum buffer length needed for p2p_scan_ie
1942 * Returns: Number of octets that p2p_scan_ie() may add to the buffer
1947 * p2p_go_params - Generate random P2P group parameters
1950 * Returns: 0 on success, -1 on failure
1955 * p2p_get_group_capab - Get Group Capability from P2P IE data
1962 * p2p_get_cross_connect_disallowed - Does WLAN AP disallows cross connection
1969 * p2p_get_go_dev_addr - Get P2P Device Address from P2P IE data
1976 * p2p_get_peer_info - Get P2P peer information
1978 * @addr: P2P Device Address of the peer or %NULL to indicate the first peer
1979 * @next: Whether to select the peer entry following the one indicated by addr
1986 * p2p_get_peer_info_txt - Get internal P2P peer information in text format
1990 * Returns: Number of octets written to the buffer or -1 on failure
1992 * Note: This information is internal to the P2P module and subject to change.
2000 * p2p_peer_known - Check whether P2P peer is known
2002 * @addr: P2P Device Address of the peer
2003 * Returns: 1 if the specified device is in the P2P peer table or 0 if not
2008 * p2p_set_client_discoverability - Set client discoverability capability
2012 * This function can be used to disable (and re-enable) client discoverability.
2019 * p2p_set_managed_oper - Set managed P2P Device operations capability
2026 * p2p_config_get_random_social - Return a random social channel
2032 * Returns: 0 on success, -1 on failure
2036 * returned on success.
2058 * p2p_set_cross_connect - Set cross connection capability
2067 * p2p_set_intra_bss_dist - Set intra BSS distribution
2080 * p2p_supported_freq - Check whether channel is supported for P2P
2088 * p2p_supported_freq_go - Check whether channel is supported for P2P GO operation
2096 * p2p_supported_freq_cli - Check whether channel is supported for P2P client operation
2104 * p2p_get_pref_freq - Get channel from preferred channel list
2119 * p2p_set_best_channels - Update best channel information
2129 * p2p_set_own_freq_preference - Set own preference for channel
2131 * @freq: Frequency (MHz) of the preferred channel or 0 if no preference
2133 * This function can be used to set a preference on the operating channel based
2134 * on frequencies used on the other virtual interfaces that share the same
2135 * radio. If non-zero, this is used to try to avoid multi-channel concurrency.
2142 * p2p_get_group_num_members - Get number of members in group
2144 * Returns: Number of members in the group
2149 * p2p_client_limit_reached - Check if client limit is reached
2156 * p2p_iterate_group_members - Iterate group members
2159 * on the first call and not modified later
2165 * p2p_group_get_client_interface_addr - Get P2P Interface Address of a client in a group
2167 * @dev_addr: P2P Device Address of the client
2168 * Returns: P2P Interface Address of the client if found or %NULL if no match
2175 * p2p_group_get_dev_addr - Get a P2P Device Address of a client in a group
2177 * @addr: P2P Interface Address of the client
2178 * Returns: P2P Device Address of the client if found or %NULL if no match
2184 * p2p_group_is_client_connected - Check whether a specific client is connected
2186 * @addr: P2P Device Address of the client
2192 * p2p_group_get_config - Get the group configuration
2194 * Returns: The group configuration pointer
2199 * p2p_loop_on_all_groups - Run the given callback on all groups
2201 * @group_callback: The callback function pointer
2204 * The group_callback function can stop the iteration by returning 0.
2212 * p2p_get_peer_found - Get P2P peer info structure of a found peer
2214 * @addr: P2P Device Address of the peer or %NULL to indicate the first peer
2215 * @next: Whether to select the peer entry following the one indicated by addr
2216 * Returns: The first P2P peer info available or %NULL if no such peer exists
2222 * p2p_remove_wps_vendor_extensions - Remove WPS vendor extensions
2228 * p2p_add_wps_vendor_extension - Add a WPS vendor extension
2230 * @vendor_ext: The vendor extensions to add
2231 * Returns: 0 on success, -1 on failure
2233 * The wpabuf structures in the array are owned by the P2P
2240 * p2p_set_oper_channel - Set the P2P operating channel
2245 * Returns: 0 on success, -1 on failure
2251 * p2p_set_pref_chan - Set P2P preferred channel list
2255 * Returns: 0 on success, -1 on failure
2261 * p2p_set_no_go_freq - Set no GO channel ranges
2264 * Returns: 0 on success, -1 on failure
2270 * p2p_in_progress - Check whether a P2P operation is progress
2280 * p2p_set_config_timeout - Set local config timeouts
2282 * @go_timeout: Time in 10 ms units it takes to start the GO mode
2283 * @client_timeout: Time in 10 ms units it takes to start the client mode
2304 * p2p_set_disc_int - Set min/max discoverable interval for p2p_find
2309 * -1 not to limit
2310 * Returns: 0 on success, or -1 on failure
2313 * maxDiscoverableInterval parameters for the Listen state during device
2317 * max_disc_tu can be used to further limit the discoverable duration. However,
2319 * would not be compliant with the P2P specification.
2325 * p2p_get_state_txt - Get current P2P state for debug purposes
2327 * Returns: Name of the current P2P module state
2329 * It should be noted that the P2P module state names are internal information
2344 bool p2p_pref_freq_allowed(const struct weighted_pcl *freq_list, bool go);
2396 * p2p_expire_peers - Periodic cleanup function to expire peers
2399 * This is a cleanup function that the entity calling p2p_init() is
2411 * p2p_group_get_common_freqs - Get the group common frequencies
2413 * @common_freqs: On return will hold the group common frequencies
2414 * @num: On return will hold the number of group common frequencies
2415 * Returns: 0 on success, -1 otherwise