Skip to content

Commit

Permalink
Merge rsync://bughost.org/repos/ieee80211-delta/
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Oct 4, 2005
2 parents e260836 + ff0037b commit 13d1ef2
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 184 deletions.
30 changes: 29 additions & 1 deletion include/net/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ struct ieee80211_disassoc {
} __attribute__ ((packed));

/* Alias deauth for disassoc */
#define ieee82011_deauth ieee80211_disassoc
#define ieee80211_deauth ieee80211_disassoc

struct ieee80211_probe_request {
struct ieee80211_hdr_3addr header;
Expand Down Expand Up @@ -1045,6 +1045,34 @@ static inline u8 *ieee80211_get_payload(struct ieee80211_hdr *hdr)

}

static inline int ieee80211_is_ofdm_rate(u8 rate)
{
switch (rate & ~IEEE80211_BASIC_RATE_MASK) {
case IEEE80211_OFDM_RATE_6MB:
case IEEE80211_OFDM_RATE_9MB:
case IEEE80211_OFDM_RATE_12MB:
case IEEE80211_OFDM_RATE_18MB:
case IEEE80211_OFDM_RATE_24MB:
case IEEE80211_OFDM_RATE_36MB:
case IEEE80211_OFDM_RATE_48MB:
case IEEE80211_OFDM_RATE_54MB:
return 1;
}
return 0;
}

static inline int ieee80211_is_cck_rate(u8 rate)
{
switch (rate & ~IEEE80211_BASIC_RATE_MASK) {
case IEEE80211_CCK_RATE_1MB:
case IEEE80211_CCK_RATE_2MB:
case IEEE80211_CCK_RATE_5MB:
case IEEE80211_CCK_RATE_11MB:
return 1;
}
return 0;
}

/* ieee80211.c */
extern void free_ieee80211(struct net_device *dev);
extern struct net_device *alloc_ieee80211(int sizeof_priv);
Expand Down
6 changes: 3 additions & 3 deletions include/net/ieee80211_crypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/skbuff.h>

enum {
IEEE80211_CRYPTO_TKIP_COUNTERMEASURES = (1<<0),
IEEE80211_CRYPTO_TKIP_COUNTERMEASURES = (1 << 0),
};

struct ieee80211_crypto_ops {
Expand Down Expand Up @@ -65,8 +65,8 @@ struct ieee80211_crypto_ops {
char *(*print_stats) (char *p, void *priv);

/* Crypto specific flag get/set for configuration settings */
unsigned long (*get_flags)(void *priv);
unsigned long (*set_flags)(unsigned long flags, void *priv);
unsigned long (*get_flags) (void *priv);
unsigned long (*set_flags) (unsigned long flags, void *priv);

/* maximum number of bytes added by encryption; encrypt buf is
* allocated with extra_prefix_len bytes, copy of in_buf, and
Expand Down
Loading

0 comments on commit 13d1ef2

Please sign in to comment.