aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r--net/mac80211/ieee80211.c35
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
192void 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
227static int ieee80211_mgmt_open(struct net_device *dev) 192static 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);