summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-11-05 23:30:31 +0000
committerLennart Poettering <lennart@poettering.net>2003-11-05 23:30:31 +0000
commitb5313e96dae1e63557ef5c47eb68734de3812bd9 (patch)
tree5fbca53c8e0f5fb2974889a995aa1223cb752872
parentf3f63715dc41288b4bd6bcf346d7429c650ed5d2 (diff)
suspend mode
git-svn-id: file:///home/lennart/svn/public/waproamd/trunk@32 022f378f-78c4-0310-b860-d162c87e6274
-rw-r--r--src/iwapi.c16
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;
}