aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-04 08:22:13 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-04 08:22:13 -0400
commit13d1ef29bc5125d7b77c5f6cdfde5ed31226005c (patch)
treefdab36f463a248d5be3bd46a5ad181f6d354ddde /include/net
parente2608361be343e6220e0a87e04ff224eb037df31 (diff)
parentff0037b259e8b47843176142131844bc80fd2887 (diff)
Merge rsync://bughost.org/repos/ieee80211-delta/
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ieee80211.h30
-rw-r--r--include/net/ieee80211_crypt.h6
2 files changed, 32 insertions, 4 deletions
diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h
index 4851756202c5..58f62224e7ea 100644
--- a/include/net/ieee80211.h
+++ b/include/net/ieee80211.h
@@ -613,7 +613,7 @@ struct ieee80211_disassoc {
613} __attribute__ ((packed)); 613} __attribute__ ((packed));
614 614
615/* Alias deauth for disassoc */ 615/* Alias deauth for disassoc */
616#define ieee82011_deauth ieee80211_disassoc 616#define ieee80211_deauth ieee80211_disassoc
617 617
618struct ieee80211_probe_request { 618struct ieee80211_probe_request {
619 struct ieee80211_hdr_3addr header; 619 struct ieee80211_hdr_3addr header;
@@ -1045,6 +1045,34 @@ static inline u8 *ieee80211_get_payload(struct ieee80211_hdr *hdr)
1045 1045
1046} 1046}
1047 1047
1048static inline int ieee80211_is_ofdm_rate(u8 rate)
1049{
1050 switch (rate & ~IEEE80211_BASIC_RATE_MASK) {
1051 case IEEE80211_OFDM_RATE_6MB:
1052 case IEEE80211_OFDM_RATE_9MB:
1053 case IEEE80211_OFDM_RATE_12MB:
1054 case IEEE80211_OFDM_RATE_18MB:
1055 case IEEE80211_OFDM_RATE_24MB:
1056 case IEEE80211_OFDM_RATE_36MB:
1057 case IEEE80211_OFDM_RATE_48MB:
1058 case IEEE80211_OFDM_RATE_54MB:
1059 return 1;
1060 }
1061 return 0;
1062}
1063
1064static inline int ieee80211_is_cck_rate(u8 rate)
1065{
1066 switch (rate & ~IEEE80211_BASIC_RATE_MASK) {
1067 case IEEE80211_CCK_RATE_1MB:
1068 case IEEE80211_CCK_RATE_2MB:
1069 case IEEE80211_CCK_RATE_5MB:
1070 case IEEE80211_CCK_RATE_11MB:
1071 return 1;
1072 }
1073 return 0;
1074}
1075
1048/* ieee80211.c */ 1076/* ieee80211.c */
1049extern void free_ieee80211(struct net_device *dev); 1077extern void free_ieee80211(struct net_device *dev);
1050extern struct net_device *alloc_ieee80211(int sizeof_priv); 1078extern struct net_device *alloc_ieee80211(int sizeof_priv);
diff --git a/include/net/ieee80211_crypt.h b/include/net/ieee80211_crypt.h
index 0c9d859d912e..0a1c2d82ca4b 100644
--- a/include/net/ieee80211_crypt.h
+++ b/include/net/ieee80211_crypt.h
@@ -26,7 +26,7 @@
26#include <linux/skbuff.h> 26#include <linux/skbuff.h>
27 27
28enum { 28enum {
29 IEEE80211_CRYPTO_TKIP_COUNTERMEASURES = (1<<0), 29 IEEE80211_CRYPTO_TKIP_COUNTERMEASURES = (1 << 0),
30}; 30};
31 31
32struct ieee80211_crypto_ops { 32struct ieee80211_crypto_ops {
@@ -65,8 +65,8 @@ struct ieee80211_crypto_ops {
65 char *(*print_stats) (char *p, void *priv); 65 char *(*print_stats) (char *p, void *priv);
66 66
67 /* Crypto specific flag get/set for configuration settings */ 67 /* Crypto specific flag get/set for configuration settings */
68 unsigned long (*get_flags)(void *priv); 68 unsigned long (*get_flags) (void *priv);
69 unsigned long (*set_flags)(unsigned long flags, void *priv); 69 unsigned long (*set_flags) (unsigned long flags, void *priv);
70 70
71 /* maximum number of bytes added by encryption; encrypt buf is 71 /* maximum number of bytes added by encryption; encrypt buf is
72 * allocated with extra_prefix_len bytes, copy of in_buf, and 72 * allocated with extra_prefix_len bytes, copy of in_buf, and