update madwifi to latest version (fixes #2403)
[openwrt.git] / package / ppp / patches / 208-no_exponential_timeout.patch
1 Index: ppp-2.4.3/pppd/plugins/rp-pppoe/discovery.c
2 ===================================================================
3 --- ppp-2.4.3.orig/pppd/plugins/rp-pppoe/discovery.c 2007-06-04 13:22:09.414424072 +0200
4 +++ ppp-2.4.3/pppd/plugins/rp-pppoe/discovery.c 2007-06-04 13:22:13.567792664 +0200
5 @@ -593,12 +593,14 @@
6 conn->discoveryState = STATE_SENT_PADI;
7 waitForPADO(conn, timeout);
8
9 +#if 0
10 /* If we're just probing for access concentrators, don't do
11 exponential backoff. This reduces the time for an unsuccessful
12 probe to 15 seconds. */
13 if (!conn->printACNames) {
14 timeout *= 2;
15 }
16 +#endif
17 if (conn->printACNames && conn->numPADOs) {
18 break;
19 }
20 @@ -621,7 +623,9 @@
21 sendPADR(conn);
22 conn->discoveryState = STATE_SENT_PADR;
23 waitForPADS(conn, timeout);
24 +#if 0
25 timeout *= 2;
26 +#endif
27 } while (conn->discoveryState == STATE_SENT_PADR);
28
29 /* We're done. */
This page took 0.043437 seconds and 5 git commands to generate.