📄 wt_oid.h
字号:
#ifndef _WT_OID_H#define _WT_OID_H/* * MIB related constant and structure definitions for communicating * with the device firmware */struct obj_ssid { u8 length; char octets[33];} __attribute__ ((packed));struct obj_key { u8 type; /* dot11_priv_t */ u8 length; char key[32];} __attribute__ ((packed));struct obj_mlme { u8 address[6]; u16 id; u16 state; u16 code;} __attribute__ ((packed));struct obj_mlmeex { u8 address[6]; u16 id; u16 state; u16 code; u16 size; u8 data[0];} __attribute__ ((packed));struct obj_buffer { u32 size; u32 addr; /* 32bit bus address */} __attribute__ ((packed));struct obj_bss { u8 address[6]; int:16; /* padding */ char state; char reserved; short age; char quality; char rssi; struct obj_ssid ssid; short channel; char beacon_period; char dtim_period; short capinfo; short rates; short basic_rates; int:16; /* padding */} __attribute__ ((packed));struct obj_bsslist { u32 nr; struct obj_bss bsslist[0];} __attribute__ ((packed));struct obj_frequencies { u16 nr; u16 mhz[0];} __attribute__ ((packed));struct obj_attachment { char type; char reserved; short id; short size; char data[0];} __attribute__((packed));/* * in case everything's ok, the inlined function below will be * optimized away by the compiler... */static inline void__bug_on_wrong_struct_sizes(void){ BUG_ON(sizeof (struct obj_ssid) != 34); BUG_ON(sizeof (struct obj_key) != 34); BUG_ON(sizeof (struct obj_mlme) != 12); BUG_ON(sizeof (struct obj_mlmeex) != 14); BUG_ON(sizeof (struct obj_buffer) != 8); BUG_ON(sizeof (struct obj_bss) != 60); BUG_ON(sizeof (struct obj_bsslist) != 4); BUG_ON(sizeof (struct obj_frequencies) != 2);}union oid_res_t { void *ptr; u32 u;};#endif /* _WT_OID_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -