+typedef struct s_beacon_fb {
+ u64 timestamp;
+ u16 beacon_int;
+ u16 cap_info;
+ u8 ssid_element_id;
+ u8 ssid_length;
+ u8 ssid[32];
+ u8 srates_element_id;
+ u8 srates_element_length;
+ u8 rest; /* go on here ... */
+} __attribute__ ((packed)) t_beacon_fb;
+
+#define CAP_INFO_ESS(X) ((X&0x0001))
+#define CAP_INFO_IBSS(X) ((X&0x0002)>>1)
+#define CAP_INFO_PRIVACY(X) ((X&0x0010)>>4)