adithlm10 / reaver-wps

Automatically exported from code.google.com/p/reaver-wps
0 stars 0 forks source link

Add perror for ivnalid change channel #631

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
File: iface.c
at line 137 code
                /* Set frequency */
                if(iw_set_ext(skfd, get_iface(), SIOCSIWFREQ, &wrq) >= 0)
                {
                        set_channel(channel);
                        ret_val = 1;
                }
change to:
                /* Set frequency */
                if(iw_set_ext(skfd, get_iface(), SIOCSIWFREQ, &wrq) >= 0)
                {
                        set_channel(channel);
                        ret_val = 1;
                } else perror("Set frequency");

thanks

Original issue reported on code.google.com by gluko...@gmail.com on 4 Apr 2014 at 12:32