linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: John Linville <linville@tuxdriver.com>
Cc: Jiri Benc <jbenc@suse.cz>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH 3/4] mac80211: remove  ieee80211_msg_key_threshold_notification
Date: Sat, 11 Aug 2007 00:05:47 +0200	[thread overview]
Message-ID: <20070810220634.036380000@sipsolutions.net> (raw)
In-Reply-To: 20070810220544.321975000@sipsolutions.net

Hostapd doesn't care at the moment.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 net/mac80211/ieee80211.c        |   31 ++-----------------------------
 net/mac80211/ieee80211_common.h |    2 +-
 2 files changed, 3 insertions(+), 30 deletions(-)

--- wireless-dev.orig/net/mac80211/ieee80211.c	2007-08-11 00:01:06.323840246 +0200
+++ wireless-dev/net/mac80211/ieee80211.c	2007-08-11 00:01:44.943840246 +0200
@@ -233,35 +233,8 @@ void ieee80211_key_threshold_notify(stru
 				    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);
+	/* dummy function for when we add back support */
+	/* TODO: add back support via cfg80211/nl80211 */
 }
 
 static int ieee80211_mgmt_open(struct net_device *dev)
--- wireless-dev.orig/net/mac80211/ieee80211_common.h	2007-08-11 00:01:42.273840246 +0200
+++ wireless-dev/net/mac80211/ieee80211_common.h	2007-08-11 00:01:44.943840246 +0200
@@ -53,7 +53,7 @@ enum ieee80211_msg_type {
 	/* hole at 6, was monitor but never sent to userspace */
 	/* hole at 7, was ieee80211_msg_sta_not_assoc but now unused */
 	/* 8 was ieee80211_msg_set_aid_for_sta */
-	ieee80211_msg_key_threshold_notification = 9,
+	/* hole at 9, was ieee80211_msg_key_threshold_notification */
 	ieee80211_msg_radar = 11,
 };
 

-- 


  parent reply	other threads:[~2007-08-10 22:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-10 22:05 [PATCH 0/4] remove a few more unused constants Johannes Berg
2007-08-10 22:05 ` [PATCH 1/4] mac80211: remove ieee80211_msg_wep_frame_unknown_key Johannes Berg
2007-08-10 22:05 ` [PATCH 2/4] mac80211: dont send frames from unassociated stations up Johannes Berg
2007-08-10 22:05 ` Johannes Berg [this message]
2007-08-10 22:05 ` [PATCH 4/4] mac80211: remove radar stuff Johannes Berg
2007-08-11  3:18   ` Larry Finger
2007-08-11  8:17     ` Johannes Berg
2007-08-11 17:00       ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070810220634.036380000@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=jbenc@suse.cz \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).