diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 103a122bc9c3..218068bf0ef8 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/workqueue.h> | 32 | #include <linux/workqueue.h> |
33 | #include <linux/firmware.h> | 33 | #include <linux/firmware.h> |
34 | #include <linux/mutex.h> | 34 | #include <linux/mutex.h> |
35 | #include <linux/etherdevice.h> | ||
35 | 36 | ||
36 | #include <net/mac80211.h> | 37 | #include <net/mac80211.h> |
37 | 38 | ||
@@ -149,6 +150,12 @@ static inline int is_probe_resp(u16 fc) | |||
149 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PROBE_RESP)); | 150 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PROBE_RESP)); |
150 | } | 151 | } |
151 | 152 | ||
153 | static inline int is_beacon(u16 fc) | ||
154 | { | ||
155 | return (((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) && | ||
156 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_BEACON)); | ||
157 | } | ||
158 | |||
152 | /* | 159 | /* |
153 | * Chipset identification | 160 | * Chipset identification |
154 | * The chipset on the device is composed of a RT and RF chip. | 161 | * The chipset on the device is composed of a RT and RF chip. |