if(atoi(argv[2])==1) {
printf("setting to monitor mode\n");
if(strncmp(argv[1],"wlan",4)==0)
- sprintf(sys_call,"iwpriv %s monitor 3",argv[1]);
+ sprintf(sys_call,"iwconfig %s mode monitor",argv[1]);
if(strncmp(argv[1],"eth",3)==0)
sprintf(sys_call,"ifconfig %s promisc",argv[1]);
system(sys_call);
my_info_struct.ssid_list->next=NULL;
// strcpy(my_info_struct.ssid_list->ssid,"test");
strcpy(my_info_struct.dev,argv[1]);
+ my_info_struct.channel=1;
/* prepare for select */
pcap_fd=pcap_fileno(pcap_handle);