diff options
author | imp <imp@FreeBSD.org> | 2000-10-30 06:03:57 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-10-30 06:03:57 +0000 |
commit | faf88bf19cf9c84d3e17fc84ac9c9f6691dd1894 (patch) | |
tree | d872c2b14f66f3e5919423d9671b1cd051db6d33 /sys/net | |
parent | ffa99e45a6ee9efa8bda20456d7ca855f6c91d9e (diff) | |
download | FreeBSD-src-faf88bf19cf9c84d3e17fc84ac9c9f6691dd1894.zip FreeBSD-src-faf88bf19cf9c84d3e17fc84ac9c9f6691dd1894.tar.gz |
Add some additional message types for coming raylan driver from Duncan
Barclay.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_ieee80211.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/net/if_ieee80211.h b/sys/net/if_ieee80211.h index 3996f6f..d4364c7 100644 --- a/sys/net/if_ieee80211.h +++ b/sys/net/if_ieee80211.h @@ -45,9 +45,14 @@ struct ieee80211_frame { #define IEEE80211_FC0_SUBTYPE_CF_END 0xe0 #define IEEE80211_FC0_SUBTYPE_CF_END_ACK 0xf0 /* for TYPE_DATA (bit combination) */ +#define IEEE80211_FC0_SUBTYPE_DATA 0x00 #define IEEE80211_FC0_SUBTYPE_CF_ACK 0x10 #define IEEE80211_FC0_SUBTYPE_CF_POLL 0x20 +#define IEEE80211_FC0_SUBTYPE_CF_ACPL 0x30 #define IEEE80211_FC0_SUBTYPE_NODATA 0x40 +#define IEEE80211_FC0_SUBTYPE_CFACK 0x50 +#define IEEE80211_FC0_SUBTYPE_CFPOLL 0x60 +#define IEEE80211_FC0_SUBTYPE_CF_ACK_CF_ACK 0x70 #define IEEE80211_FC1_DIR_MASK 0x03 #define IEEE80211_FC1_DIR_NODS 0x00 /* STA->STA */ @@ -75,6 +80,25 @@ struct ieee80211_frame { #define IEEE80211_ELEMID_IBSSPARMS 6 #define IEEE80211_ELEMID_CHALLENGE 16 +/* + * AUTH management packets + * + * octect algo[2] + * octect seq[2] + * octect status[2] + * octect chal.id + * octect chal.length + * octect chal.text[253] + */ +typedef u_int8_t * ieee80211_mgt_auth_t; + +#define IEEE80211_AUTH_ALGORITHM(auth) \ + (auth[0] + (auth[1] << 8)) +#define IEEE80211_AUTH_TRANSACTION(auth) \ + (auth[2] + (auth[3] << 8)) +#define IEEE80211_AUTH_STATUS(auth) \ + (auth[4] + (auth[5] << 8)) + #define IEEE80211_AUTH_ALG_OPEN 0x0000 #define IEEE80211_AUTH_ALG_SHARED 0x0001 @@ -84,6 +108,11 @@ struct ieee80211_frame { #define IEEE80211_CAPINFO_CF_POLLREQ 0x08 #define IEEE80211_CAPINFO_PRIVACY 0x10 +/* + * Reason codes + * + * Unlisted codes are reserved + */ #define IEEE80211_REASON_UNSPECIFIED 1 #define IEEE80211_REASON_AUTH_EXPIRE 2 #define IEEE80211_REASON_AUTH_LEAVE 3 @@ -94,6 +123,12 @@ struct ieee80211_frame { #define IEEE80211_REASON_ASSOC_LEAVE 8 #define IEEE80211_REASON_ASSOC_NOT_AUTHED 9 +/* + * Status code + * + * Unlisted codes are reserved + */ +#define IEEE80211_STATUS_SUCCESS 0x0000 #define IEEE80211_STATUS_UNSPECIFIED 1 #define IEEE80211_STATUS_CAPINFO 10 #define IEEE80211_STATUS_NOT_ASSOCED 11 |