added channelhopping feature
[my-code/hdw-sniff.git] / hdw-sniff.h
index e7a6995..7e34dfc 100644 (file)
@@ -1,3 +1,5 @@
+#include <linux/wireless.h>
+
 /* the pcap_process callback function */
 void pcap_process(u_char *count,const struct pcap_pkthdr *pcap_header,
                        const u_char *package);
@@ -7,4 +9,9 @@ struct info_struct {
                 int count;      /* count packages */
                 char dev[10];   /* device */
                 char mmode;     /* monitor type ... and later more */
+               int channel;    /* current freq channel */
         };
+
+/* hop_chanel function */
+int hop_channel(struct info_struct *info,int pcap_fd);
+