aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-07-10 13:32:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-07-12 16:07:25 -0400
commitc59304b5e07128816347fe3996d7952561f60529 (patch)
treeed36d08fb9503534fa28e4a04b16cf72196a2d39 /net
parent7f8c05982865a32ee001b79ee0bd469f55ac8aba (diff)
[PATCH] mac80211: remove ieee80211_set_aid_for_sta
Remove ieee80211_set_aid_for_sta and associated code. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/ieee80211.c28
-rw-r--r--net/mac80211/ieee80211_common.h7
2 files changed, 1 insertions, 34 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 85f23fd866ad..4bcf18097e53 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -3165,34 +3165,6 @@ int ieee80211_radar_status(struct ieee80211_hw *hw, int channel,
3165} 3165}
3166EXPORT_SYMBOL(ieee80211_radar_status); 3166EXPORT_SYMBOL(ieee80211_radar_status);
3167 3167
3168int ieee80211_set_aid_for_sta(struct ieee80211_hw *hw, u8 *peer_address,
3169 u16 aid)
3170{
3171 struct sk_buff *skb;
3172 struct ieee80211_msg_set_aid_for_sta *msg;
3173 struct ieee80211_local *local = hw_to_local(hw);
3174
3175 /* unlikely because if this event only happens for APs,
3176 * which require an open ap device. */
3177 if (unlikely(!local->apdev))
3178 return 0;
3179
3180 skb = dev_alloc_skb(sizeof(struct ieee80211_frame_info) +
3181 sizeof(struct ieee80211_msg_set_aid_for_sta));
3182
3183 if (!skb)
3184 return -ENOMEM;
3185 skb_reserve(skb, sizeof(struct ieee80211_frame_info));
3186
3187 msg = (struct ieee80211_msg_set_aid_for_sta *)
3188 skb_put(skb, sizeof(struct ieee80211_msg_set_aid_for_sta));
3189 memcpy(msg->sta_address, peer_address, ETH_ALEN);
3190 msg->aid = aid;
3191
3192 ieee80211_rx_mgmt(local, skb, NULL, ieee80211_msg_set_aid_for_sta);
3193 return 0;
3194}
3195EXPORT_SYMBOL(ieee80211_set_aid_for_sta);
3196 3168
3197static void ap_sta_ps_start(struct net_device *dev, struct sta_info *sta) 3169static void ap_sta_ps_start(struct net_device *dev, struct sta_info *sta)
3198{ 3170{
diff --git a/net/mac80211/ieee80211_common.h b/net/mac80211/ieee80211_common.h
index 7af6710bf718..77c6afb7f6a8 100644
--- a/net/mac80211/ieee80211_common.h
+++ b/net/mac80211/ieee80211_common.h
@@ -52,16 +52,11 @@ enum ieee80211_msg_type {
52 ieee80211_msg_michael_mic_failure = 5, 52 ieee80211_msg_michael_mic_failure = 5,
53 /* hole at 6, was monitor but never sent to userspace */ 53 /* hole at 6, was monitor but never sent to userspace */
54 ieee80211_msg_sta_not_assoc = 7, 54 ieee80211_msg_sta_not_assoc = 7,
55 ieee80211_msg_set_aid_for_sta = 8 /* used by Intersil MVC driver */, 55 /* 8 was ieee80211_msg_set_aid_for_sta */
56 ieee80211_msg_key_threshold_notification = 9, 56 ieee80211_msg_key_threshold_notification = 9,
57 ieee80211_msg_radar = 11, 57 ieee80211_msg_radar = 11,
58}; 58};
59 59
60struct ieee80211_msg_set_aid_for_sta {
61 char sta_address[ETH_ALEN];
62 u16 aid;
63};
64
65struct ieee80211_msg_key_notification { 60struct ieee80211_msg_key_notification {
66 int tx_rx_count; 61 int tx_rx_count;
67 char ifname[IFNAMSIZ]; 62 char ifname[IFNAMSIZ];