TDLS: Support sending TDLS discovery requests
Allow sending a TDLS discovery request as a frame through the driver. Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
This commit is contained in:
parent
7de27409a2
commit
7a1486cd31
2 changed files with 13 additions and 0 deletions
|
@ -1271,6 +1271,18 @@ wpa_tdls_process_discovery_request(struct wpa_sm *sm, const u8 *addr,
|
|||
}
|
||||
|
||||
|
||||
int wpa_tdls_send_discovery_request(struct wpa_sm *sm, const u8 *addr)
|
||||
{
|
||||
if (sm->tdls_disabled || !sm->tdls_supported)
|
||||
return -1;
|
||||
|
||||
wpa_printf(MSG_DEBUG, "TDLS: Sending Discovery Request to peer "
|
||||
MACSTR, MAC2STR(addr));
|
||||
return wpa_tdls_tpk_send(sm, addr, WLAN_TDLS_DISCOVERY_REQUEST,
|
||||
1, 0, NULL, 0);
|
||||
}
|
||||
|
||||
|
||||
static int wpa_tdls_process_tpk_m1(struct wpa_sm *sm, const u8 *src_addr,
|
||||
const u8 *buf, size_t len)
|
||||
{
|
||||
|
|
|
@ -362,6 +362,7 @@ int wpa_tdls_start(struct wpa_sm *sm, const u8 *addr);
|
|||
int wpa_tdls_reneg(struct wpa_sm *sm, const u8 *addr);
|
||||
int wpa_tdls_send_teardown(struct wpa_sm *sm, const u8 *addr, u16 reason_code);
|
||||
int wpa_tdls_teardown_link(struct wpa_sm *sm, const u8 *addr, u16 reason_code);
|
||||
int wpa_tdls_send_discovery_request(struct wpa_sm *sm, const u8 *addr);
|
||||
int wpa_tdls_init(struct wpa_sm *sm);
|
||||
void wpa_tdls_deinit(struct wpa_sm *sm);
|
||||
void wpa_tdls_enable(struct wpa_sm *sm, int enabled);
|
||||
|
|
Loading…
Reference in a new issue