diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-07-05 10:35:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-06 15:05:43 -0400 |
commit | c68f4b892c241bdddeb6f1c1864ac26197229471 (patch) | |
tree | 7100d2b756dff22ed1f248a3b0204e500290c89a /net/mac80211/cfg.c | |
parent | e5497d766adb92bcbd1fa4a147e188f84f34b20a (diff) |
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/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 9fe22cc393c8..295ab747663f 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -2101,6 +2101,21 @@ static void ieee80211_get_ringparam(struct wiphy *wiphy, | |||
2101 | drv_get_ringparam(local, tx, tx_max, rx, rx_max); | 2101 | drv_get_ringparam(local, tx, tx_max, rx, rx_max); |
2102 | } | 2102 | } |
2103 | 2103 | ||
2104 | static int ieee80211_set_rekey_data(struct wiphy *wiphy, | ||
2105 | struct net_device *dev, | ||
2106 | struct cfg80211_gtk_rekey_data *data) | ||
2107 | { | ||
2108 | struct ieee80211_local *local = wiphy_priv(wiphy); | ||
2109 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); | ||
2110 | |||
2111 | if (!local->ops->set_rekey_data) | ||
2112 | return -EOPNOTSUPP; | ||
2113 | |||
2114 | drv_set_rekey_data(local, sdata, data); | ||
2115 | |||
2116 | return 0; | ||
2117 | } | ||
2118 | |||
2104 | struct cfg80211_ops mac80211_config_ops = { | 2119 | struct cfg80211_ops mac80211_config_ops = { |
2105 | .add_virtual_intf = ieee80211_add_iface, | 2120 | .add_virtual_intf = ieee80211_add_iface, |
2106 | .del_virtual_intf = ieee80211_del_iface, | 2121 | .del_virtual_intf = ieee80211_del_iface, |
@@ -2163,4 +2178,5 @@ struct cfg80211_ops mac80211_config_ops = { | |||
2163 | .get_antenna = ieee80211_get_antenna, | 2178 | .get_antenna = ieee80211_get_antenna, |
2164 | .set_ringparam = ieee80211_set_ringparam, | 2179 | .set_ringparam = ieee80211_set_ringparam, |
2165 | .get_ringparam = ieee80211_get_ringparam, | 2180 | .get_ringparam = ieee80211_get_ringparam, |
2181 | .set_rekey_data = ieee80211_set_rekey_data, | ||
2166 | }; | 2182 | }; |