📄 wt_frm.h
字号:
UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 powerconstraint[1] __WLAN_ATTRIB_PACK__; } __WLAN_ATTRIB_PACK__ wlan_ie_powerconstraint_t;__WLAN_PRAGMA_PACKDFLT__/*-- channel switch announcement---------*/ __WLAN_PRAGMA_PACK1__ typedef struct wlan_ie_channelswa { UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 channelswa[1] __WLAN_ATTRIB_PACK__; } __WLAN_ATTRIB_PACK__ wlan_ie_channelswa_t;__WLAN_PRAGMA_PACKDFLT__/*-- Quiet----------------------------*/ __WLAN_PRAGMA_PACK1__ typedef struct wlan_ie_quiet { UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 quiet[1] __WLAN_ATTRIB_PACK__; } __WLAN_ATTRIB_PACK__ wlan_ie_quiet_t;__WLAN_PRAGMA_PACKDFLT__/*-- IBSS DFS----------------------------*/ __WLAN_PRAGMA_PACK1__ typedef struct wlan_ie_ibssdfs { UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 ibssdfs[1] __WLAN_ATTRIB_PACK__; } __WLAN_ATTRIB_PACK__ wlan_ie_ibssdfs_t;__WLAN_PRAGMA_PACKDFLT__/*-- TPC Report----------------------------*/ __WLAN_PRAGMA_PACK1__ typedef struct wlan_ie_tpcreport { UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 tpcreport[1] __WLAN_ATTRIB_PACK__; } __WLAN_ATTRIB_PACK__ wlan_ie_tpcreport_t;__WLAN_PRAGMA_PACKDFLT__//added by hk 2005.4.21/*-- RSN----------------------------*/__WLAN_PRAGMA_PACK1__ typedef struct wlan_ie_rsn_t { UINT8 eid __WLAN_ATTRIB_PACK__; UINT8 len __WLAN_ATTRIB_PACK__; UINT8 rsn[1] __WLAN_ATTRIB_PACK__; } __WLAN_ATTRIB_PACK__ wlan_ie_rsn_t;__WLAN_PRAGMA_PACKDFLT__#ifdef NDIS_MINIPORT_DRIVER#pragma pack()#endif/*-------------------------------------------------*//* Frame Types *//* prototype structure, all mgmt frame types will start with these members */ typedef struct wlan_fr_mgmt { UINT16 type; UINT16 len; /* DOES NOT include CRC !!!! */ UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ /*-- info elements ----------*/} wlan_fr_mgmt_t;/*-- Beacon ---------------------------------------*/typedef struct wlan_fr_beacon { UINT16 type; //0x0 UINT16 len; //0x2 UINT8 *buf; //0x4 p80211_hdr_t *hdr; //0x5 /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT64 *ts; UINT16 *bcn_int; UINT16 *cap_info; /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates; wlan_ie_fh_parms_t *fh_parms; wlan_ie_ds_parms_t *ds_parms; wlan_ie_cf_parms_t *cf_parms; wlan_ie_ibss_parms_t *ibss_parms; wlan_ie_tim_t *tim; wlan_ie_country_t *contry_parms; wlan_ie_erp_t *erp_parms; wlan_ie_extend_rates_t *ext_rates; wlan_ie_fhpattern_t *fh_pattern; wlan_ie_fhpatterntable_t *fh_patterntable; wlan_ie_powerconstraint_t *powerconstraint; wlan_ie_channelswa_t *channelswa; wlan_ie_quiet_t *quiet_parms; wlan_ie_ibssdfs_t *ibbss_dfs; wlan_ie_tpcreport_t *tpc_report; wlan_ie_rsn_t *rsn;//added by hk 2005.4.21 } wlan_fr_beacon_t;/*-- IBSS ATIM ------------------------------------*/typedef struct wlan_fr_ibssatim { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ /*-- info elements ----------*/ /* this frame type has a null body */} wlan_fr_ibssatim_t;/*-- Disassociation -------------------------------*/typedef struct wlan_fr_disassoc { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *reason; /*-- info elements ----------*/} wlan_fr_disassoc_t;/*-- Association Request --------------------------*/typedef struct wlan_fr_assocreq { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *cap_info; UINT16 *listen_int; /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates;} wlan_fr_assocreq_t;/*-- Association Response -------------------------*/typedef struct wlan_fr_assocresp { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *cap_info; UINT16 *status; UINT16 *aid; /*-- info elements ----------*/ wlan_ie_supp_rates_t *supp_rates;} wlan_fr_assocresp_t;/*-- Reassociation Request ------------------------*/typedef struct wlan_fr_reassocreq { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *cap_info; UINT16 *listen_int; UINT8 *curr_ap; /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates;} wlan_fr_reassocreq_t;/*-- Reassociation Response -----------------------*/typedef struct wlan_fr_reassocresp { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *cap_info; UINT16 *status; UINT16 *aid; /*-- info elements ----------*/ wlan_ie_supp_rates_t *supp_rates;} wlan_fr_reassocresp_t;/*-- Probe Request --------------------------------*/typedef struct wlan_fr_probereq { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates;} wlan_fr_probereq_t;/*-- Probe Response -------------------------------*/typedef struct wlan_fr_proberesp { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT64 *ts; UINT16 *bcn_int; UINT16 *cap_info; /*-- info elements ----------*/ wlan_ie_ssid_t *ssid; wlan_ie_supp_rates_t *supp_rates; wlan_ie_fh_parms_t *fh_parms; wlan_ie_ds_parms_t *ds_parms; wlan_ie_cf_parms_t *cf_parms; wlan_ie_ibss_parms_t *ibss_parms; wlan_ie_country_t *contry_parms; wlan_ie_erp_t *erp_parms; wlan_ie_extend_rates_t *ext_rates; wlan_ie_fhpattern_t *fh_pattern; wlan_ie_fhpatterntable_t *fh_patterntable; wlan_ie_powerconstraint_t *powerconstraint; wlan_ie_channelswa_t *channelswa; wlan_ie_quiet_t *quiet_parms; wlan_ie_ibssdfs_t *ibbss_dfs; wlan_ie_tpcreport_t *tpc_report; wlan_ie_rsn_t *rsn;//added by hk 2005.4.21} wlan_fr_proberesp_t;/*-- Authentication -------------------------------*/typedef struct wlan_fr_authen { UINT16 type; UINT16 len; UINT8 *buf; p80211_hdr_t *hdr; /* used for target specific data, skb in Linux */ void *priv; /*-- fixed fields -----------*/ UINT16 *auth_alg; UINT16 *auth_seq; UINT16 *status; /*-- info elements ----------*/ wlan_ie_challenge_t *challenge;} wlan_fr_authen_t;/*-- Deauthenication -----------------------------*/typedef struct wlan_fr_deauthen { UINT16 type; /* 00 */ UINT16 len; /* 02 */ UINT8 *buf; /* 04 */ p80211_hdr_t *hdr; /* 08 */ /* used for target specific data, skb in Linux */ void *priv; /* 0c */ /*-- fixed fields -----------*/ UINT16 *reason; /* 10 */ /*-- info elements ----------*/} wlan_fr_deauthen_t;/*================================================================*//* Extern Declarations */BOOL wt_mgmt_decode_beacon(wlan_fr_beacon_t * f);BOOL wt_mgmt_decode_proberesp(wlan_fr_proberesp_t * f);void wt_mgmt_encode_proberesp(wlan_fr_proberesp_t * f);#endif /* _WT_FRM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -