diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-09-17 01:29:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:29 -0400 |
commit | 011bfcc4f3d3444b140da3880ae30a62cc93529e (patch) | |
tree | 2c856fefcd132ed308623b1da5cd47a22177d7af /net/mac80211/ieee80211.c | |
parent | 72abd81b980ef7ffb83ecb4ac4a7627d9d575f50 (diff) |
[MAC80211]: remove key threshold stuff
This patch removes the key threshold stuff from mac80211.
I have patches for later that add it as a per-key setting
to nl/cfg80211.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r-- | net/mac80211/ieee80211.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 23853331e8db..5e924588e9a2 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -189,41 +189,6 @@ ieee80211_rx_mgmt(struct ieee80211_local *local, struct sk_buff *skb, | |||
189 | netif_rx(skb); | 189 | netif_rx(skb); |
190 | } | 190 | } |
191 | 191 | ||
192 | void ieee80211_key_threshold_notify(struct net_device *dev, | ||
193 | struct ieee80211_key *key, | ||
194 | struct sta_info *sta) | ||
195 | { | ||
196 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | ||
197 | struct sk_buff *skb; | ||
198 | struct ieee80211_msg_key_notification *msg; | ||
199 | |||
200 | /* if no one will get it anyway, don't even allocate it. | ||
201 | * unlikely because this is only relevant for APs | ||
202 | * where the device must be open... */ | ||
203 | if (unlikely(!local->apdev)) | ||
204 | return; | ||
205 | |||
206 | skb = dev_alloc_skb(sizeof(struct ieee80211_frame_info) + | ||
207 | sizeof(struct ieee80211_msg_key_notification)); | ||
208 | if (!skb) | ||
209 | return; | ||
210 | |||
211 | skb_reserve(skb, sizeof(struct ieee80211_frame_info)); | ||
212 | msg = (struct ieee80211_msg_key_notification *) | ||
213 | skb_put(skb, sizeof(struct ieee80211_msg_key_notification)); | ||
214 | msg->tx_rx_count = key->tx_rx_count; | ||
215 | memcpy(msg->ifname, dev->name, IFNAMSIZ); | ||
216 | if (sta) | ||
217 | memcpy(msg->addr, sta->addr, ETH_ALEN); | ||
218 | else | ||
219 | memset(msg->addr, 0xff, ETH_ALEN); | ||
220 | |||
221 | key->tx_rx_count = 0; | ||
222 | |||
223 | ieee80211_rx_mgmt(local, skb, NULL, | ||
224 | ieee80211_msg_key_threshold_notification); | ||
225 | } | ||
226 | |||
227 | static int ieee80211_mgmt_open(struct net_device *dev) | 192 | static int ieee80211_mgmt_open(struct net_device *dev) |
228 | { | 193 | { |
229 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 194 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |