-#define IWPRIV_M_MODE 3
-
-
-/* typedefinitions */
-struct info_struct
-{
- unsigned char caps; /* capabilities */
- int logfile_fd; /* file descriptof for logfile */
- char device[MAX_DEV_CHARS]; /* sniffed devie */
- int channel_hop_fd; /* fd for channel hopping */
-};
+#define MAX_BYTE_WEP 13 /* maximal 104 bit key */
+
+/* type definitions */
+typedef struct s_info {
+ unsigned char mode; /* monitoring/managed mode */
+ char device[MAX_DEV_CHARS]; /* sniffed devie */
+ int logfile_fd; /* file descriptof for logfile */
+ int pcap_fd; /* fd for reading pcap events */
+ char key[13]; /* wep key */
+
+} t_info;