aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorGanesh Prasadh <gprasadh@atheros.com>2010-10-07 07:26:56 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-06 12:53:49 (GMT)
commit281ff0aa76d7b6cec0ecb0d9fa209c57c9066dd0 (patch)
treefe0081cd26e83edaf1074b945b235cae7e82f550 /wpa_supplicant/driver_i.h
parent23ab8e863f5add2050cd71ec1205816152ae4f2f (diff)
downloadhostap-281ff0aa76d7b6cec0ecb0d9fa209c57c9066dd0.zip
hostap-281ff0aa76d7b6cec0ecb0d9fa209c57c9066dd0.tar.gz
hostap-281ff0aa76d7b6cec0ecb0d9fa209c57c9066dd0.tar.bz2
TDLS: Add initial support for TDLS (IEEE Std 802.11z-2010)
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 5331765..682c56c 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -675,5 +675,25 @@ static inline int wpa_drv_p2p_invite(struct wpa_supplicant *wpa_s,
persistent_group);
}
+static inline int wpa_drv_send_tdls_mgmt(struct wpa_supplicant *wpa_s,
+ const u8 *dst, u8 action_code,
+ u8 dialog_token, u16 status_code,
+ const u8 *buf, size_t len)
+{
+ if (wpa_s->driver->send_tdls_mgmt) {
+ return wpa_s->driver->send_tdls_mgmt(wpa_s->drv_priv, dst,
+ action_code, dialog_token,
+ status_code, buf, len);
+ }
+ return -1;
+}
+
+static inline int wpa_drv_tdls_oper(struct wpa_supplicant *wpa_s,
+ enum tdls_oper oper, const u8 *peer)
+{
+ if (!wpa_s->driver->tdls_oper)
+ return -1;
+ return wpa_s->driver->tdls_oper(wpa_s->drv_priv, oper, peer);
+}
#endif /* DRIVER_I_H */