hostapd: properly mark random data as ready if initialization succeeds without reasso...
[openwrt-10.03/.git] / package / ar7-atm / patches-D7.05.01.00 / 190-2.6.32_proc_fixes.patch
1 Index: sangam_atm-D7.05.01.00/tn7dsl.c
2 ===================================================================
3 --- sangam_atm-D7.05.01.00.orig/tn7dsl.c        2010-03-07 18:19:09.000000000 +0100
4 +++ sangam_atm-D7.05.01.00/tn7dsl.c     2010-03-07 18:19:12.000000000 +0100
5 @@ -3615,8 +3615,11 @@
6     */
7    if(write)
8      {
9 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
10      ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
11 -
12 +#else
13 +    ret = proc_dostring(ctl, write, buffer, lenp, 0);
14 +#endif
15      switch (ctl->ctl_name)
16        {
17        case DEV_DSLMOD:
18 @@ -3701,7 +3704,11 @@
19    else
20      {
21      len += sprintf(info+len, mod_req);
22 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
23      ret = proc_dostring(ctl, write, filp, buffer, lenp, 0);
24 +#else
25 +    ret = proc_dostring(ctl, write, buffer, lenp, 0);
26 +#endif
27      }
28    return ret;
29  }