aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2014-09-29 18:47:51 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-03 08:52:21 (GMT)
commit984dadc23a85d61037b66e6acf99fb0d7fa3671a (patch)
tree052056c630aa3000333812823b86037af5a9d01c /wpa_supplicant/wpas_glue.c
parent01cb5df20c2baf7e47a609f4d231060f73152106 (diff)
downloadhostap-984dadc23a85d61037b66e6acf99fb0d7fa3671a.zip
hostap-984dadc23a85d61037b66e6acf99fb0d7fa3671a.tar.gz
hostap-984dadc23a85d61037b66e6acf99fb0d7fa3671a.tar.bz2
TDLS: Set the initiator during tdls_mgmt operations
Some drivers need to know the initiator of a TDLS connection in order to generate a correct TDLS mgmt packet. It is used to determine the link identifier IE. Pass this information to the driver. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index 09b5961..896c256 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -580,11 +580,13 @@ static int wpa_supplicant_tdls_get_capa(void *ctx, int *tdls_supported,
static int wpa_supplicant_send_tdls_mgmt(void *ctx, const u8 *dst,
u8 action_code, u8 dialog_token,
u16 status_code, u32 peer_capab,
- const u8 *buf, size_t len)
+ int initiator, const u8 *buf,
+ size_t len)
{
struct wpa_supplicant *wpa_s = ctx;
return wpa_drv_send_tdls_mgmt(wpa_s, dst, action_code, dialog_token,
- status_code, peer_capab, buf, len);
+ status_code, peer_capab, initiator, buf,
+ len);
}