mac80211: support GTK rekey offload
[deliverable/linux.git] / net / mac80211 / cfg.c
index 9fe22cc393c8b1e7e222b63bff22fb1fb9934c3b..295ab747663f45955ccfe0a79d2541a741984d72 100644 (file)
@@ -2101,6 +2101,21 @@ static void ieee80211_get_ringparam(struct wiphy *wiphy,
        drv_get_ringparam(local, tx, tx_max, rx, rx_max);
 }
 
+static int ieee80211_set_rekey_data(struct wiphy *wiphy,
+                                   struct net_device *dev,
+                                   struct cfg80211_gtk_rekey_data *data)
+{
+       struct ieee80211_local *local = wiphy_priv(wiphy);
+       struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
+
+       if (!local->ops->set_rekey_data)
+               return -EOPNOTSUPP;
+
+       drv_set_rekey_data(local, sdata, data);
+
+       return 0;
+}
+
 struct cfg80211_ops mac80211_config_ops = {
        .add_virtual_intf = ieee80211_add_iface,
        .del_virtual_intf = ieee80211_del_iface,
@@ -2163,4 +2178,5 @@ struct cfg80211_ops mac80211_config_ops = {
        .get_antenna = ieee80211_get_antenna,
        .set_ringparam = ieee80211_set_ringparam,
        .get_ringparam = ieee80211_get_ringparam,
+       .set_rekey_data = ieee80211_set_rekey_data,
 };
This page took 0.025565 seconds and 5 git commands to generate.