aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-07-27 09:43:22 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:47:29 -0400
commit571ecf676d66735f59be6b950360e4074f02f47d (patch)
tree727292ad7a7412841ec8c326f15f759dc7683f63 /net/mac80211/ieee80211_i.h
parentbbf25010f1a6b761914430f5fca081ec8c7accd1 (diff)
[MAC80211]: split RX handlers into own file
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/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 6f7bae7ef9c0..35e2ce52faeb 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -21,6 +21,7 @@
21#include <linux/workqueue.h> 21#include <linux/workqueue.h>
22#include <linux/types.h> 22#include <linux/types.h>
23#include <linux/spinlock.h> 23#include <linux/spinlock.h>
24#include <linux/etherdevice.h>
24#include <net/wireless.h> 25#include <net/wireless.h>
25#include "ieee80211_key.h" 26#include "ieee80211_key.h"
26#include "sta_info.h" 27#include "sta_info.h"
@@ -707,6 +708,13 @@ static inline int ieee80211_is_erp_rate(int phymode, int rate)
707 return 0; 708 return 0;
708} 709}
709 710
711static inline int ieee80211_bssid_match(const u8 *raddr, const u8 *addr)
712{
713 return compare_ether_addr(raddr, addr) == 0 ||
714 is_broadcast_ether_addr(raddr);
715}
716
717
710/* ieee80211.c */ 718/* ieee80211.c */
711int ieee80211_hw_config(struct ieee80211_local *local); 719int ieee80211_hw_config(struct ieee80211_local *local);
712int ieee80211_if_config(struct net_device *dev); 720int ieee80211_if_config(struct net_device *dev);
@@ -730,6 +738,16 @@ void ieee80211_if_mgmt_setup(struct net_device *dev);
730int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local, 738int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local,
731 const char *name); 739 const char *name);
732struct net_device_stats *ieee80211_dev_stats(struct net_device *dev); 740struct net_device_stats *ieee80211_dev_stats(struct net_device *dev);
741struct ieee80211_rate *ieee80211_get_rate(struct ieee80211_local *local,
742 int phymode, int hwrate);
743void ieee80211_key_threshold_notify(struct net_device *dev,
744 struct ieee80211_key *key,
745 struct sta_info *sta);
746u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len);
747int ieee80211_is_eapol(const struct sk_buff *skb);
748
749extern const unsigned char rfc1042_header[];
750extern const unsigned char bridge_tunnel_header[];
733 751
734/* ieee80211_ioctl.c */ 752/* ieee80211_ioctl.c */
735extern const struct iw_handler_def ieee80211_iw_handler_def; 753extern const struct iw_handler_def ieee80211_iw_handler_def;
@@ -801,6 +819,10 @@ void ieee80211_if_del_mgmt(struct ieee80211_local *local);
801void ieee80211_regdomain_init(void); 819void ieee80211_regdomain_init(void);
802void ieee80211_set_default_regdomain(struct ieee80211_hw_mode *mode); 820void ieee80211_set_default_regdomain(struct ieee80211_hw_mode *mode);
803 821
822/* rx handling */
823extern ieee80211_rx_handler ieee80211_rx_pre_handlers[];
824extern ieee80211_rx_handler ieee80211_rx_handlers[];
825
804/* for wiphy privid */ 826/* for wiphy privid */
805extern void *mac80211_wiphy_privid; 827extern void *mac80211_wiphy_privid;
806 828