diff options
author | Jouni Malinen <j@w1.fi> | 2012-01-08 09:25:29 -0800 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-01-08 09:25:29 -0800 |
commit | 6d92fa6e9209172ae6f4aec5fb4d84ed5e27edb4 (patch) | |
tree | c0c66fcd93aa135125e37334293306b063ac0ebb /src/p2p/p2p.h | |
parent | 68921e24b2ef867d8b4d57192ddf1a3075c57edf (diff) | |
download | external_wpa_supplicant_8_ti-6d92fa6e9209172ae6f4aec5fb4d84ed5e27edb4.zip external_wpa_supplicant_8_ti-6d92fa6e9209172ae6f4aec5fb4d84ed5e27edb4.tar.gz external_wpa_supplicant_8_ti-6d92fa6e9209172ae6f4aec5fb4d84ed5e27edb4.tar.bz2 |
P2P: Allow Device ID to be specified for p2p_find command
dev_id=<P2P Device Addr> can now be specified as an argument to
p2p_find to request P2P find for a specific P2P device.
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/p2p/p2p.h')
-rw-r--r-- | src/p2p/p2p.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/p2p/p2p.h b/src/p2p/p2p.h index c9e9fd3..762499a 100644 --- a/src/p2p/p2p.h +++ b/src/p2p/p2p.h @@ -359,6 +359,7 @@ struct p2p_config { * @freq: Specific frequency (MHz) to scan or 0 for no restriction * @num_req_dev_types: Number of requested device types * @req_dev_types: Array containing requested device types + * @dev_id: Device ID to search for or %NULL to find all devices * Returns: 0 on success, -1 on failure * * This callback function is used to request a P2P scan or search @@ -382,7 +383,7 @@ struct p2p_config { */ int (*p2p_scan)(void *ctx, enum p2p_scan_type type, int freq, unsigned int num_req_dev_types, - const u8 *req_dev_types); + const u8 *req_dev_types, const u8 *dev_id); /** * send_probe_resp - Transmit a Probe Response frame @@ -809,11 +810,13 @@ enum p2p_discovery_type { * @req_dev_types: Requested device types array, must be an array * containing num_req_dev_types * WPS_DEV_TYPE_LEN bytes; %NULL if no * requested device types. + * @dev_id: Device ID to search for or %NULL to find all devices * Returns: 0 on success, -1 on failure */ int p2p_find(struct p2p_data *p2p, unsigned int timeout, enum p2p_discovery_type type, - unsigned int num_req_dev_types, const u8 *req_dev_types); + unsigned int num_req_dev_types, const u8 *req_dev_types, + const u8 *dev_id); /** * p2p_stop_find - Stop P2P Find (Device Discovery) @@ -1376,8 +1379,9 @@ int p2p_assoc_req_ie(struct p2p_data *p2p, const u8 *bssid, u8 *buf, * p2p_scan_ie - Build P2P IE for Probe Request * @p2p: P2P module context from p2p_init() * @ies: Buffer for writing P2P IE + * @dev_id: Device ID to search for or %NULL for any */ -void p2p_scan_ie(struct p2p_data *p2p, struct wpabuf *ies); +void p2p_scan_ie(struct p2p_data *p2p, struct wpabuf *ies, const u8 *dev_id); /** * p2p_scan_ie_buf_len - Get maximum buffer length needed for p2p_scan_ie |