blob: 22be8692a36595d9d302a77eed5605da155769c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- dstumbler/wistat.c.orig Fri Jan 11 07:05:43 2002
+++ dstumbler/wistat.c Mon Jul 21 13:27:51 2003
@@ -468,17 +468,6 @@
return;
}
- if(scanmode)
- {
- setscanreq(iface);
-
- /*
- * some systems need the card to wait a bit before more config options are
- * set, otherwise it could lock up the system.
- */
- usleep(POLLSPEED);
- }
-
/* first backup the current keys and encryption status */
getcryptkeys(iface, &backup.keys);
getcrypt(iface, &backup.crypt);
@@ -503,6 +492,17 @@
/* set a null ssid for the default */
setdefaultssid(iface, "\0");
+
+ if(scanmode)
+ {
+ setscanreq(iface);
+
+ /*
+ * some systems need the card to wait a bit before more config options are
+ * set, otherwise it could lock up the system.
+ */
+ usleep(POLLSPEED);
+ }
backup.wi_started++;
}
|