Lines Matching +full:function +full:- +full:group
2 * Wi-Fi Direct - P2P module
3 * Copyright (c) 2009-2010, Atheros Communications
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
165 * 1 = persistent group without persistent reconnect
166 * 2 = persistent group with persistent reconnect
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
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
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
411 * p2ps_instance - P2PS Application Service Info
430 * struct p2p_config - P2P configuration
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
476 * classes are defined in IEEE Std 802.11-2007 Annex J and the
482 * cli_channels - Additional client channels
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
562 * p2p_intra_bss - Intra BSS communication is supported
567 * ssid_postfix - Postfix data to add to the SSID
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)
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
620 * This callback function is used to request a P2P scan or search
629 * The full scan is used for the initial scan to find group owners from
645 * send_probe_resp - Transmit a Probe Response frame
649 * Returns: 0 on success, -1 on failure
651 * This function is used to reply to Probe Request frames that were
659 * case this function need to be implemented (i.e., the function
670 * send_action - Transmit an Action frame
681 * Returns: 0 on success, -1 on failure
694 * send_action_done - Notify that Action frame sequence was completed
697 * This function is called when the Action frame sequence that was
704 * start_listen - Start Listen state
709 * Returns: 0 on success, -1 on failure
727 * stop_listen - Stop Listen state
736 * get_noa - Get current Notice of Absence attribute payload
742 * advertized, or -1 on failure
744 * This function is used to fetch the current Notice of Absence
753 * dev_found - Notification of a found P2P Device
762 * Group Owner Negotiation Request.
769 * dev_lost - Notification of a 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
791 * group owner negotiation with us, but we do not have all the
801 * go_neg_completed - Notification of GO Negotiation results
805 * This callback is used to notify that Group Owner Negotiation has
806 * been completed. Non-zero struct p2p_go_neg_results::status indicates
807 * failed negotiation. In case of success, this function is responsible
808 * for creating a new group interface (or using the existing interface
809 * depending on driver features), setting up the group interface in
813 * p2p_wps_success_cb(). The callee is responsible for timing out group
820 * sd_request - Callback on Service Discovery Request
832 * this callback function.
841 * sd_response - Callback on Service Discovery Response
857 * prov_disc_req - Callback on Provisiong Discovery Request
866 * @group_capab: Group Capabilities
867 * @group_id: P2P Group ID (or %NULL if not included)
868 * @group_id_len: Length of P2P Group ID
880 * prov_disc_resp - Callback on Provisiong Discovery Response
893 * prov_disc_fail - Callback on Provision Discovery failure
897 * @adv_id: If non-zero, then the adv_id of the PD Request
913 * invitation_process - Optional callback for processing Invitations
916 * @bssid: P2P Group BSSID from the request or %NULL if not included
917 * @go_dev_addr: GO Device Address from P2P Group ID
918 * @ssid: SSID 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
924 * persistent group (instead of invitation to join an active
925 * group)
926 * @channels: Available operating channels for the group
927 * @dev_pw_id: Device Password ID for NFC static handover or -1 if not
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,
954 * invitation_received - Callback on Invitation Request RX
957 * @bssid: P2P Group BSSID or %NULL if not received
958 * @ssid: SSID of the group
962 * @op_freq: Operational frequency for the group
966 * upper layer code is responsible for starting the group. status == 1
967 * indicates need to get user authorization for the group. Other status
976 * invitation_result - Callback on Invitation result
979 * @bssid: P2P Group BSSID or %NULL if not received
980 * @channels: Available operating channels for the group
989 * (P2P_SC_SUCCESS) indicating success or -1 to indicate a timeout or a
997 * go_connected - Check whether we are connected to a GO
1006 * presence_resp - Callback on Presence Response
1017 * is_concurrent_session_active - Check whether concurrent session is
1026 * is_p2p_in_progress - Check whether P2P operation is in progress
1028 * Returns: 1 if P2P operation (e.g., group formation) is in progress
1034 * Determine if we have a persistent group we share with remote peer
1035 * and allocate interface for this group if needed
1038 * @ssid: Persistent group SSID or %NULL if any
1041 * @ret_ssid: Buffer for returning group SSID
1044 * Returns: 1 if a matching persistent group was found, 0 otherwise
1055 * @ssid: Buffer for returning group SSID
1057 * @group_iface: Buffer for returning whether a separate group interface
1063 * This is used to compose New Group settings (SSID, and intended
1072 * remove_stale_groups - Remove stale P2PS groups
1082 * p2ps_prov_complete - P2PS provisioning complete
1099 * prov_disc_resp_cb - Callback for indicating completion of PD Response
1104 * provisioning. It is mainly used for P2PS pending group creation.
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.
1115 * Returns: P2PS_SETUP_* bitmap of group capability result.
1117 * This function can be used to determine group capability and
1126 * get_pref_freq_list - Get preferred frequency list for an interface
1131 * Returns: 0 on success, -1 on failure
1133 * This function can be used to query the preferred frequency list from
1145 * p2p_init - Initialize P2P module
1149 * This function is used to initialize global P2P module context (one per
1158 * p2p_deinit - Deinitialize P2P module
1164 * p2p_flush - Flush P2P module state
1172 * p2p_unauthorize - Unauthorize the specified peer device
1175 * Returns: 0 on success, -1 on failure
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
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
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
1235 * p2p_find - Start P2P Find (Device Discovery)
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
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
1298 * p2p_stop_listen - Stop P2P Listen
1304 * p2p_connect - Start P2P group formation (GO negotiation)
1309 * @own_interface_addr: Intended interface address to use with the group
1311 * @persistent_group: Whether to create a persistent group (0 = no, 1 =
1312 * persistent group without persistent reconnect, 2 = persistent group with
1314 * @force_ssid: Forced SSID for the group if we become GO or %NULL to generate
1318 * Negotiation as an interoperability workaround when initiating group
1322 * Returns: 0 on success, -1 on failure
1332 * p2p_authorize - Authorize P2P group formation (GO negotiation)
1337 * @own_interface_addr: Intended interface address to use with the group
1339 * @persistent_group: Whether to create a persistent group (0 = no, 1 =
1340 * persistent group without persistent reconnect, 2 = persistent group with
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
1360 * p2p_reject - Reject peer device (explicitly block connection attempts)
1363 * Returns: 0 on success, -1 on failure
1368 * p2p_prov_disc_req - Send Provision Discovery Request
1373 * @join: Whether this is used by a client joining an active group
1376 * Returns: 0 on success, -1 on failure
1378 * This function can be used to request a discovered P2P peer to display a PIN
1392 * p2p_sd_request - Schedule a service discovery query
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
1435 * This function needs to be called whenever there is a change in availability
1449 * p2p_invite - Invite a P2P Device into a group
1452 * @role: Local role in the group
1453 * @bssid: Group BSSID or %NULL if not known
1454 * @ssid: Group SSID
1458 * @persistent_group: Whether this is to reinvoke a persistent group
1462 * case or -1 if not used
1463 * Returns: 0 on success, -1 on failure
1471 * p2p_presence_req - Request GO presence
1474 * @own_interface_addr: Own P2P Interface Address for this group
1475 * @freq: Group operating frequence (in MHz)
1480 * Returns: 0 on success, -1 on failure
1491 * p2p_ext_listen - Set Extended Listen Timing
1493 * @freq: Group operating frequence (in MHz)
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
1498 * This function can be used to enable or disable (period = interval = 0)
1509 * p2p_wps_success_cb - Report successfully completed WPS provisioning
1513 * This function is used to 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
1522 * This function is used to report failed group formation. This can happen
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
1588 * p2p_rx_action - Report received Action frame
1603 * p2p_scan_res_handler - Indicate a P2P scan results
1614 * This function is called to indicate a scan result entry with P2P IE from a
1622 * this function since frames will be filtered internally if needed.
1624 * This function will return 1 if it wants to stop scan result iteration (and
1633 * p2p_scan_res_handled - Indicate end of scan results
1637 * This function is called to indicate that all P2P scan results from a scan
1639 * function must be called as a response to successful
1652 * p2p_send_action_cb - Notify TX status of an Action frame
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
1673 * This function is used to indicate that a Listen state requested with
1680 * p2p_listen_end - Indicate the end of a requested Listen state
1685 * This function is used to indicate that a Listen state requested with
1697 /* Per-group P2P state for GO */
1702 * struct p2p_group_config - P2P group configuration
1705 * the per-group information with p2p_group_init().
1709 * persistent_group - Whether the group is persistent
1710 * 0 = not a persistent group
1711 * 1 = persistent group without persistent reconnect
1712 * 2 = persistent group with persistent reconnect
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
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
1779 * @config: P2P group configuration (will be freed by p2p_group_deinit())
1782 * This function is used to initialize per-group P2P module context. Currently,
1784 * create an instance of this per-group information.
1790 * p2p_group_deinit - Deinitialize P2P group
1791 * @group: P2P group context from p2p_group_init()
1793 void p2p_group_deinit(struct p2p_group *group);
1796 * p2p_group_notif_assoc - Notification of P2P client association with GO
1797 * @group: P2P group context from p2p_group_init()
1801 * Returns: 0 on success, -1 on failure
1803 int p2p_group_notif_assoc(struct p2p_group *group, const u8 *addr,
1807 * p2p_group_assoc_resp_ie - Build P2P IE for (re)association response
1808 * @group: P2P group context from p2p_group_init()
1815 struct wpabuf * p2p_group_assoc_resp_ie(struct p2p_group *group, u8 status);
1818 * p2p_group_notif_disassoc - Notification of P2P client disassociation from GO
1819 * @group: P2P group context from p2p_group_init()
1822 void p2p_group_notif_disassoc(struct p2p_group *group, const u8 *addr);
1825 * p2p_group_notif_formation_done - Notification of completed group formation
1826 * @group: P2P group context from p2p_group_init()
1828 void p2p_group_notif_formation_done(struct p2p_group *group);
1831 * p2p_group_notif_noa - Notification of NoA change
1832 * @group: P2P group context from p2p_group_init()
1835 * Returns: 0 on success, -1 on failure
1837 * Notify the P2P group management about a new NoA contents. This will be
1839 * the group information.
1841 int p2p_group_notif_noa(struct p2p_group *group, const u8 *noa,
1845 * p2p_group_match_dev_type - Match device types in group with requested type
1846 * @group: P2P group context from p2p_group_init()
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
1855 int p2p_group_match_dev_type(struct p2p_group *group, struct wpabuf *wps);
1858 * p2p_group_match_dev_id - Match P2P Device Address in group with requested device id
1860 int p2p_group_match_dev_id(struct p2p_group *group, struct wpabuf *p2p);
1863 * p2p_group_go_discover - Send GO Discoverability Request to a group client
1864 * @group: P2P group context from p2p_group_init()
1865 * Returns: 0 on success (frame scheduled); -1 if client was not found
1867 int p2p_group_go_discover(struct p2p_group *group, const u8 *dev_id,
1874 * p2p_ie_text - Build text format description of P2P IE
1878 * Returns: Number of octets written to the buffer or -1 on failure
1880 * This function can be used to parse P2P IE contents into text format
1886 * p2p_scan_result_text - Build text format description of P2P IE
1891 * Returns: Number of octets written to the buffer or -1 on failure
1893 * This function can be used to parse P2P IE contents into text format
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
1924 * Returns: Number of octets written into buf or -1 on failure
1930 * p2p_scan_ie - Build P2P IE for Probe Request
1940 * p2p_scan_ie_buf_len - Get maximum buffer length needed for p2p_scan_ie
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
1957 * Returns: Group Capability
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
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
2000 * p2p_peer_known - Check whether P2P peer is known
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
2034 * This function is used before p2p_init is called. A random social channel
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
2133 * This function can be used to set a preference on the operating channel based
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
2143 * @group: P2P group context from p2p_group_init()
2144 * Returns: Number of members in the group
2146 unsigned int p2p_get_group_num_members(struct p2p_group *group);
2149 * p2p_client_limit_reached - Check if client limit is reached
2150 * @group: P2P group context from p2p_group_init()
2153 int p2p_client_limit_reached(struct p2p_group *group);
2156 * p2p_iterate_group_members - Iterate group members
2157 * @group: P2P group context from p2p_group_init()
2162 const u8 * p2p_iterate_group_members(struct p2p_group *group, void **next);
2165 * p2p_group_get_client_interface_addr - Get P2P Interface Address of a client in a group
2166 * @group: P2P group context from p2p_group_init()
2171 const u8 * p2p_group_get_client_interface_addr(struct p2p_group *group,
2175 * p2p_group_get_dev_addr - Get a P2P Device Address of a client in a group
2176 * @group: P2P group context from p2p_group_init()
2181 const u8 * p2p_group_get_dev_addr(struct p2p_group *group, const u8 *addr);
2184 * p2p_group_is_client_connected - Check whether a specific client is connected
2185 * @group: P2P group context from p2p_group_init()
2189 int p2p_group_is_client_connected(struct p2p_group *group, const u8 *dev_addr);
2192 * p2p_group_get_config - Get the group configuration
2193 * @group: P2P group context from p2p_group_init()
2194 * Returns: The group configuration pointer
2196 const struct p2p_group_config * p2p_group_get_config(struct p2p_group *group);
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.
2207 int (*group_callback)(struct p2p_group *group,
2212 * p2p_get_peer_found - Get P2P peer info structure of a found peer
2222 * p2p_remove_wps_vendor_extensions - Remove WPS vendor extensions
2228 * p2p_add_wps_vendor_extension - Add a WPS vendor extension
2231 * Returns: 0 on success, -1 on failure
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
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
2312 * This function can be used to configure minDiscoverableInterval and
2325 * p2p_get_state_txt - Get current P2P state for debug purposes
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
2412 * @group: P2P group context from p2p_group_init()
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
2417 int p2p_group_get_common_freqs(struct p2p_group *group, int *common_freqs,