Lines Matching +full:scan +full:- +full:interval +full:- +full:ms
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
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
611 * @type: Scan type
612 * @freq: Specific frequency (MHz) to scan or 0 for no restriction
617 * @include_6ghz: Include 6 GHz channels in P2P scan
618 * Returns: 0 on success, -1 on failure
620 * This callback function is used to request a P2P scan or search
622 * of scan is to be done. @P2P_SCAN_SOCIAL indicates that only the
625 * request a scan of a single channel specified by freq.
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
634 * The scan results are returned after this call by calling
635 * p2p_scan_res_handler() for each scan result that has a P2P IE and
636 * then calling p2p_scan_res_handled() to indicate that all scan
645 * send_probe_resp - Transmit a Probe Response frame
649 * Returns: 0 on success, -1 on failure
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
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
753 * dev_found - Notification of a found P2P Device
760 * found. This may happen, e.g., during Search state based on scan
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
801 * go_neg_completed - Notification of GO Negotiation results
806 * been completed. Non-zero struct p2p_go_neg_results::status indicates
820 * sd_request - Callback on Service Discovery Request
841 * sd_response - Callback on Service Discovery Response
857 * prov_disc_req - Callback on Provisiong Discovery Request
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
927 * @dev_pw_id: Device Password ID for NFC static handover or -1 if not
954 * invitation_received - Callback on Invitation Request RX
976 * invitation_result - Callback on Invitation result
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
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
1109 * p2ps_group_capability - Determine group capability
1126 * get_pref_freq_list - Get preferred frequency list for an interface
1131 * Returns: 0 on success, -1 on failure
1145 * p2p_init - Initialize P2P module
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
1203 * p2p_set_pri_dev_type - Set primary device type
1205 * Returns: 0 on success, -1 on failure
1213 * p2p_set_sec_dev_types - Set secondary device types
1215 * Returns: 0 on success, -1 on failure
1235 * p2p_find - Start P2P Find (Device Discovery)
1247 * @freq: Requested first scan frequency (in MHz) to modify type ==
1248 * P2P_FIND_START_WITH_FULL behavior. 0 = Use normal full scan.
1250 * scan will be executed.
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
1298 * p2p_stop_listen - Stop P2P Listen
1304 * p2p_connect - Start P2P group formation (GO negotiation)
1322 * Returns: 0 on success, -1 on failure
1332 * p2p_authorize - Authorize P2P group formation (GO negotiation)
1347 * Returns: 0 on success, -1 on failure
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
1376 * Returns: 0 on success, -1 on failure
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
1432 * p2p_sd_service_update - Indicate a change in local services
1449 * p2p_invite - Invite a P2P Device into a group
1462 * case or -1 if not used
1463 * Returns: 0 on success, -1 on failure
1471 * p2p_presence_req - Request GO presence
1477 * @interval1: Preferred presence interval in microseconds
1479 * @interval2: Acceptable presence interval in microseconds
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
1498 * This function can be used to enable or disable (period = interval = 0)
1500 * discoverable (go into Listen State) every @interval milliseconds for at
1504 unsigned int interval);
1509 * p2p_wps_success_cb - Report successfully completed WPS provisioning
1519 * p2p_group_formation_failed - Report failed WPS provisioning
1529 * p2p_get_provisioning_info - Get any stored provisioning info
1541 * p2p_clear_provisioning_info - Clear any stored provisioning info
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
1605 * @bssid: BSSID of the scan result
1610 * @ies: Pointer to IEs from the scan result
1612 * Returns: 0 to continue or 1 to stop scan result indication
1614 * This function is called to indicate a scan result entry with P2P IE from a
1615 * scan requested with struct p2p_config::p2p_scan(). This can be called during
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
1624 * This function will return 1 if it wants to stop scan result iteration (and
1625 * scan in general if it is still in progress). This is used to allow faster
1633 * p2p_scan_res_handled - Indicate end of scan results
1635 * @delay: Search delay for next scan in ms
1637 * This function is called to indicate that all P2P scan results from a scan
1652 * p2p_send_action_cb - Notify TX status of an Action frame
1668 * p2p_listen_cb - Indicate the start of a requested Listen state
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
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
1769 * idle_update - Notification of changes in group idle state
1777 * p2p_group_init - Initialize P2P group
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
1796 * p2p_group_notif_assoc - Notification of P2P client association with GO
1801 * Returns: 0 on success, -1 on failure
1807 * p2p_group_assoc_resp_ie - Build P2P IE for (re)association response
1818 * p2p_group_notif_disassoc - Notification of P2P client disassociation from GO
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
1845 * p2p_group_match_dev_type - Match device types in group with requested type
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
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
1887 * @ies: Information elements from scan results
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)
1909 * @ies: Information elements from scan results
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
1923 * @p2p_ie: Reassembled P2P IE data from scan results or %NULL if none
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
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
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
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
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
2149 * p2p_client_limit_reached - Check if client limit is reached
2156 * p2p_iterate_group_members - Iterate group members
2165 * p2p_group_get_client_interface_addr - Get P2P Interface Address of a client in a group
2175 * p2p_group_get_dev_addr - Get a P2P Device Address of a client in a group
2184 * p2p_group_is_client_connected - Check whether a specific client is connected
2192 * p2p_group_get_config - Get the group configuration
2199 * p2p_loop_on_all_groups - Run the given callback on all groups
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
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
2308 * @max_disc_tu: Maximum number of TUs (1.024 ms) for discoverable interval; or
2309 * -1 not to limit
2310 * Returns: 0 on success, or -1 on failure
2325 * p2p_get_state_txt - Get current P2P state for debug purposes
2396 * p2p_expire_peers - Periodic cleanup function to expire peers
2411 * p2p_group_get_common_freqs - Get the group common frequencies
2415 * Returns: 0 on success, -1 otherwise