diff options
-rw-r--r-- | src/iwapi.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/iwapi.c b/src/iwapi.c index 98b1dec..ce320c1 100644 --- a/src/iwapi.c +++ b/src/iwapi.c @@ -225,17 +225,11 @@ int iw_scan_result(struct interface *i, int (*callback)(struct ap_info* ap)) { int iw_tune(struct interface *i, struct ap_info *ap) { assert(i && ap); - if (iw_set_mode(i, IW_MODE_INFRA) < 0) - return -1; - - if (iw_set_essid(i, ap->essid) < 0) - return -1; - - if (iw_set_freq(i, &ap->freq) < 0) - return -1; - - if (iw_set_ap(i, &ap->ap) < 0) - return -1; + /* We are not interested in the return values of these functions due to driver issues */ + iw_set_mode(i, IW_MODE_INFRA); + iw_set_essid(i, ap->essid); + iw_set_freq(i, &ap->freq); + iw_set_ap(i, &ap->ap); return 0; } |