-int hop_channel(info_struct *info)
-{
- struct iwreq iwreq;
- if(info->current_channel>=CHANNEL_MAX) info->current_channel=1;
- memset(&iwreq,0,sizeof(iwreq));
- strcpy(iwreq.ifr_name,info->device);
- iwreq.u.freq.e=0;
- iwreq.u.freq.m=info->current_channel;
- if(ioctl(info->channel_hop_fd,SIOCSIWFREQ,&iwreq)<0)
- {
- puts("unable to hop channel");
- perror("ioctl");
- return -23;
- }
- ++(info->current_channel;
- return 23;
+int usage(void) {
+ puts("usage: hdw-sniff <options>");
+ puts("\toptions:\t-m <mode> \t1 monitoring, 2 managed");
+ puts("\t\t-d <device> \twlan0,eth0");
+ puts("\t\t-l <logfile>");
+ puts("\t\t-k <key> \t(string)");
+ puts("\t\t-h \tdisplay this help message");
+ puts("");