aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-07-12 18:22:51 (GMT)
committerJouni Malinen <j@w1.fi>2011-07-12 18:22:51 (GMT)
commitb14a210ce24e6434b8cc2bd3b5c92b0b0ee50749 (patch)
treeae7e93abbd00b216e36f6dfc6822038fb97b668e /wpa_supplicant/driver_i.h
parent7aec3776b901cd27fe666fb906a144282e210757 (diff)
downloadhostap-b14a210ce24e6434b8cc2bd3b5c92b0b0ee50749.zip
hostap-b14a210ce24e6434b8cc2bd3b5c92b0b0ee50749.tar.gz
hostap-b14a210ce24e6434b8cc2bd3b5c92b0b0ee50749.tar.bz2
nl80211: Support GTK rekey offload
Add support to wpa_supplicant for device-based GTK rekeying. In order to support that, pass the KEK, KCK, and replay counter to the driver, and handle rekey events that update the latter. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 0d436dd..8637754 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -704,4 +704,13 @@ static inline int wpa_drv_tdls_oper(struct wpa_supplicant *wpa_s,
return wpa_s->driver->tdls_oper(wpa_s->drv_priv, oper, peer);
}
+static inline void wpa_drv_set_rekey_info(struct wpa_supplicant *wpa_s,
+ const u8 *kek, const u8 *kck,
+ const u8 *replay_ctr)
+{
+ if (!wpa_s->driver->set_rekey_info)
+ return;
+ wpa_s->driver->set_rekey_info(wpa_s->drv_priv, kek, kck, replay_ctr);
+}
+
#endif /* DRIVER_I_H */