[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>
This commit is contained in:
committed by
David S. Miller
parent
72abd81b98
commit
011bfcc4f3
@@ -189,41 +189,6 @@ ieee80211_rx_mgmt(struct ieee80211_local *local, struct sk_buff *skb,
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
||||
void ieee80211_key_threshold_notify(struct net_device *dev,
|
||||
struct ieee80211_key *key,
|
||||
struct sta_info *sta)
|
||||
{
|
||||
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
|
||||
struct sk_buff *skb;
|
||||
struct ieee80211_msg_key_notification *msg;
|
||||
|
||||
/* if no one will get it anyway, don't even allocate it.
|
||||
* unlikely because this is only relevant for APs
|
||||
* where the device must be open... */
|
||||
if (unlikely(!local->apdev))
|
||||
return;
|
||||
|
||||
skb = dev_alloc_skb(sizeof(struct ieee80211_frame_info) +
|
||||
sizeof(struct ieee80211_msg_key_notification));
|
||||
if (!skb)
|
||||
return;
|
||||
|
||||
skb_reserve(skb, sizeof(struct ieee80211_frame_info));
|
||||
msg = (struct ieee80211_msg_key_notification *)
|
||||
skb_put(skb, sizeof(struct ieee80211_msg_key_notification));
|
||||
msg->tx_rx_count = key->tx_rx_count;
|
||||
memcpy(msg->ifname, dev->name, IFNAMSIZ);
|
||||
if (sta)
|
||||
memcpy(msg->addr, sta->addr, ETH_ALEN);
|
||||
else
|
||||
memset(msg->addr, 0xff, ETH_ALEN);
|
||||
|
||||
key->tx_rx_count = 0;
|
||||
|
||||
ieee80211_rx_mgmt(local, skb, NULL,
|
||||
ieee80211_msg_key_threshold_notification);
|
||||
}
|
||||
|
||||
static int ieee80211_mgmt_open(struct net_device *dev)
|
||||
{
|
||||
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
|
||||
|
Reference in New Issue
Block a user