Lines Matching +full:on +full:- +full:module
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
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
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
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
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
645 * send_probe_resp - Transmit a Probe Response frame
649 * Returns: 0 on success, -1 on failure
653 * sent on the same channel, unless otherwise specified, or to be
670 * send_action - Transmit an Action frame
672 * @freq: Frequency in MHz for the channel on which to transmit
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
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
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
761 * results or during Listen state based on receive Probe Request and
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
809 * depending on driver features), setting up the group interface in
810 * proper mode based on struct p2p_go_neg_results::role_go and
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
871 * Request frame that the P2P module accepted.
880 * prov_disc_resp - Callback on Provisiong Discovery Response
883 * @config_methods: Value from p2p_prov_disc_req() or 0 on failure
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
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
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
1118 * frequencies based on information from P2PS PD exchange and the
1126 * get_pref_freq_list - Get preferred frequency list for an interface
1131 * Returns: 0 on success, -1 on failure
1142 /* P2P module initialization/deinitialization */
1145 * p2p_init - Initialize P2P module
1146 * @cfg: P2P module configuration
1147 * Returns: Pointer to private data or %NULL on failure
1149 * This function is used to initialize global P2P module context (one per
1150 * device). The P2P module will keep a copy of the configuration data, so the
1153 * the P2P module is deinitialized with p2p_deinit().
1158 * p2p_deinit - Deinitialize P2P module
1159 * @p2p: P2P module context from p2p_init()
1164 * p2p_flush - Flush P2P module state
1165 * @p2p: P2P module context from p2p_init()
1167 * This command removes the P2P module state like peer device entries.
1172 * p2p_unauthorize - Unauthorize the specified peer device
1173 * @p2p: P2P module context from p2p_init()
1175 * Returns: 0 on success, -1 on failure
1185 * p2p_set_dev_name - Set device name
1186 * @p2p: P2P module context from p2p_init()
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
1204 * @p2p: P2P module context from p2p_init()
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
1214 * @p2p: P2P module context from p2p_init()
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)
1236 * @p2p: P2P module context from p2p_init()
1252 * Returns: 0 on success, -1 on failure
1262 * p2p_notify_scan_trigger_status - Indicate scan trigger status
1263 * @p2p: P2P module context from p2p_init()
1264 * @status: 0 on success, -1 on failure
1269 * p2p_stop_find - Stop P2P Find (Device Discovery)
1270 * @p2p: P2P module context from p2p_init()
1275 * p2p_stop_find_for_freq - Stop P2P Find for next oper on specific freq
1276 * @p2p: P2P module context from p2p_init()
1280 * already on the same frequency.
1285 * p2p_listen - Start P2P Listen state for specified duration
1286 * @p2p: P2P module context from p2p_init()
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
1299 * @p2p: P2P module context from p2p_init()
1304 * p2p_connect - Start P2P group formation (GO negotiation)
1305 * @p2p: P2P module context from p2p_init()
1322 * Returns: 0 on success, -1 on failure
1332 * p2p_authorize - Authorize P2P group formation (GO negotiation)
1333 * @p2p: P2P module context from p2p_init()
1347 * Returns: 0 on success, -1 on failure
1360 * p2p_reject - Reject peer device (explicitly block connection attempts)
1361 * @p2p: P2P module context from p2p_init()
1363 * Returns: 0 on success, -1 on failure
1368 * p2p_prov_disc_req - Send Provision Discovery Request
1369 * @p2p: P2P module context from p2p_init()
1376 * Returns: 0 on success, -1 on failure
1392 * p2p_sd_request - Schedule a service discovery query
1393 * @p2p: P2P module context from p2p_init()
1396 * Returns: Reference to the query or %NULL on failure
1410 * p2p_sd_cancel_request - Cancel a pending service discovery query
1411 * @p2p: P2P module context from p2p_init()
1413 * Returns: 0 if request for cancelled; -1 if not found
1418 * p2p_sd_response - Send response to a service discovery query
1419 * @p2p: P2P module context from p2p_init()
1432 * p2p_sd_service_update - Indicate a change in local services
1433 * @p2p: P2P module context from p2p_init()
1449 * p2p_invite - Invite a P2P Device into a group
1450 * @p2p: P2P module context from p2p_init()
1462 * case or -1 if not used
1463 * Returns: 0 on success, -1 on failure
1471 * p2p_presence_req - Request GO presence
1472 * @p2p: P2P module context from p2p_init()
1480 * Returns: 0 on success, -1 on failure
1491 * p2p_ext_listen - Set Extended Listen Timing
1492 * @p2p: P2P module context from p2p_init()
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
1509 * p2p_wps_success_cb - Report successfully completed WPS provisioning
1510 * @p2p: P2P module context from p2p_init()
1519 * p2p_group_formation_failed - Report failed WPS provisioning
1520 * @p2p: P2P module context from p2p_init()
1529 * p2p_get_provisioning_info - Get any stored provisioning info
1530 * @p2p: P2P module context from p2p_init()
1541 * p2p_clear_provisioning_info - Clear any stored provisioning info
1542 * @p2p: P2P module context from p2p_init()
1556 * @P2P_PREQ_MALFORMED: frame was not well-formed
1571 * p2p_probe_req_rx - Report reception of a Probe Request frame
1572 * @p2p: P2P module context from p2p_init()
1588 * p2p_rx_action - Report received Action frame
1589 * @p2p: P2P module context from p2p_init()
1596 * @freq: Frequency (in MHz) on which the frame was received
1603 * p2p_scan_res_handler - Indicate a P2P scan results
1604 * @p2p: P2P module context from p2p_init()
1606 * @freq: Frequency of the channel on which the device was found in MHz
1633 * p2p_scan_res_handled - Indicate end of scan results
1634 * @p2p: P2P module context from p2p_init()
1652 * p2p_send_action_cb - Notify TX status of an Action frame
1653 * @p2p: P2P module context from p2p_init()
1668 * p2p_listen_cb - Indicate the start of a requested Listen state
1669 * @p2p: P2P module context from p2p_init()
1680 * p2p_listen_end - Indicate the end of a requested Listen state
1681 * @p2p: P2P module context from p2p_init()
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
1769 * idle_update - Notification of changes in group idle state
1777 * p2p_group_init - Initialize P2P group
1778 * @p2p: P2P module context from p2p_init()
1780 * Returns: Pointer to private data or %NULL on failure
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
1810 * Returns: P2P IE for (Re)association Response or %NULL on failure
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
1848 * Returns: 1 on match, 0 on mismatch
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
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
1918 * @p2p: P2P module context from p2p_init()
1924 * Returns: Number of octets written into buf or -1 on failure
1930 * p2p_scan_ie - Build P2P IE for Probe Request
1931 * @p2p: P2P module context from p2p_init()
1940 * p2p_scan_ie_buf_len - Get maximum buffer length needed for p2p_scan_ie
1941 * @p2p: P2P module context from p2p_init()
1947 * p2p_go_params - Generate random P2P group parameters
1948 * @p2p: P2P module context from p2p_init()
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
1977 * @p2p: P2P module context from p2p_init()
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
2001 * @p2p: P2P module context from p2p_init()
2008 * p2p_set_client_discoverability - Set client discoverability capability
2009 * @p2p: P2P module context from p2p_init()
2012 * This function can be used to disable (and re-enable) client discoverability.
2019 * p2p_set_managed_oper - Set managed P2P Device operations capability
2020 * @p2p: P2P module context from p2p_init()
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
2059 * @p2p: P2P module context from p2p_init()
2067 * p2p_set_intra_bss_dist - Set intra BSS distribution
2068 * @p2p: P2P module context from p2p_init()
2080 * p2p_supported_freq - Check whether channel is supported for P2P
2081 * @p2p: P2P module context from p2p_init()
2088 * p2p_supported_freq_go - Check whether channel is supported for P2P GO operation
2089 * @p2p: P2P module context from p2p_init()
2096 * p2p_supported_freq_cli - Check whether channel is supported for P2P client operation
2097 * @p2p: P2P module context from p2p_init()
2104 * p2p_get_pref_freq - Get channel from preferred channel list
2105 * @p2p: P2P module context from p2p_init()
2119 * p2p_set_best_channels - Update best channel information
2120 * @p2p: P2P module context from p2p_init()
2129 * p2p_set_own_freq_preference - Set own preference for channel
2130 * @p2p: P2P module context from p2p_init()
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
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
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
2200 * @p2p: P2P module context from p2p_init()
2212 * p2p_get_peer_found - Get P2P peer info structure of a found peer
2213 * @p2p: P2P module context from p2p_init()
2222 * p2p_remove_wps_vendor_extensions - Remove WPS vendor extensions
2223 * @p2p: P2P module context from p2p_init()
2228 * p2p_add_wps_vendor_extension - Add a WPS vendor extension
2229 * @p2p: P2P module context from p2p_init()
2231 * Returns: 0 on success, -1 on failure
2234 * module after this call.
2240 * p2p_set_oper_channel - Set the P2P operating channel
2241 * @p2p: P2P module context from p2p_init()
2245 * Returns: 0 on success, -1 on failure
2251 * p2p_set_pref_chan - Set P2P preferred channel list
2252 * @p2p: P2P module context from p2p_init()
2255 * Returns: 0 on success, -1 on failure
2261 * p2p_set_no_go_freq - Set no GO channel ranges
2262 * @p2p: P2P module context from p2p_init()
2264 * Returns: 0 on success, -1 on failure
2270 * p2p_in_progress - Check whether a P2P operation is progress
2271 * @p2p: P2P module context from p2p_init()
2272 * Returns: 0 if P2P module is idle, 1 if an operation is in progress but not
2280 * p2p_set_config_timeout - Set local config timeouts
2281 * @p2p: P2P module context from p2p_init()
2304 * p2p_set_disc_int - Set min/max discoverable interval for p2p_find
2305 * @p2p: P2P module context from p2p_init()
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
2326 * @p2p: P2P module context from p2p_init()
2327 * Returns: Name of the current P2P module state
2329 * It should be noted that the P2P module state names are internal information
2396 * p2p_expire_peers - Periodic cleanup function to expire peers
2397 * @p2p: P2P module context from p2p_init()
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