summaryrefslogtreecommitdiffstats
path: root/net/mac80211/key.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-07-05 16:35:41 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-07-06 15:05:43 -0400
commitc68f4b892c241bdddeb6f1c1864ac26197229471 (patch)
tree7100d2b756dff22ed1f248a3b0204e500290c89a /net/mac80211/key.c
parente5497d766adb92bcbd1fa4a147e188f84f34b20a (diff)
downloadlinux-stable-c68f4b892c241bdddeb6f1c1864ac26197229471.tar.gz
linux-stable-c68f4b892c241bdddeb6f1c1864ac26197229471.tar.bz2
linux-stable-c68f4b892c241bdddeb6f1c1864ac26197229471.zip
mac80211: support GTK rekey offload
This adds the necessary mac80211 APIs to support GTK rekey offload, mirroring the functionality from cfg80211. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/key.c')
-rw-r--r--net/mac80211/key.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/mac80211/key.c b/net/mac80211/key.c
index fcab5fe726a1..1208a7878bfd 100644
--- a/net/mac80211/key.c
+++ b/net/mac80211/key.c
@@ -613,3 +613,15 @@ void ieee80211_free_keys(struct ieee80211_sub_if_data *sdata)
mutex_unlock(&sdata->local->key_mtx);
}
+
+
+void ieee80211_gtk_rekey_notify(struct ieee80211_vif *vif, const u8 *bssid,
+ const u8 *replay_ctr, gfp_t gfp)
+{
+ struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
+
+ trace_api_gtk_rekey_notify(sdata, bssid, replay_ctr);
+
+ cfg80211_gtk_rekey_notify(sdata->dev, bssid, replay_ctr, gfp);
+}
+EXPORT_SYMBOL_GPL(ieee80211_gtk_rekey_notify);