Added prebuild() to bash/PKGBUILD
[Archlinux-Stable.git] / support / rt2500 / kernel-2.6.19.patch
blob52ee09c75c855327b4984b782207d3ed1311def5
1 --- Module/rt_config.h~ 2006-06-17 22:12:58.000000000 +0200
2 +++ Module/rt_config.h 2006-10-17 19:04:59.000000000 +0200
3 @@ -55,7 +55,6 @@
4 #error You must compile this driver with "-O".
5 #endif
7 -#include <linux/config.h> //can delete
8 #include <linux/module.h>
9 #include <linux/version.h>
10 #include <linux/kernel.h>
11 diff -Nur rt2500-1.1.0-b4.orig/Module/rtmp_info.c rt2500-1.1.0-b4/Module/rtmp_info.c
12 --- Module/rtmp_info.c 2006-06-17 22:12:58.000000000 +0200
13 +++ Module/rtmp_info.c 2006-12-02 15:57:26.000000000 +0100
14 @@ -1648,21 +1648,21 @@
16 if(RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
18 - if (copy_from_user(Ssid.Ssid, erq->pointer, (erq->length - 1)))
19 + if (copy_from_user(Ssid.Ssid, erq->pointer, (erq->length)))
21 Status = -EFAULT;
22 break;
24 - Ssid.SsidLength = erq->length - 1; //minus null character.
25 + Ssid.SsidLength = erq->length; //minus null character.
26 }else{
27 // This SEEMS to be needed to actual work RobinC when iface
28 // is down
29 - if (copy_from_user(pAdapter->PortCfg.Ssid, erq->pointer, (erq->length - 1)))
30 + if (copy_from_user(pAdapter->PortCfg.Ssid, erq->pointer, (erq->length)))
32 Status = -EFAULT;
33 break;
35 - pAdapter->PortCfg.SsidLen = erq->length - 1; //minus null character.
36 + pAdapter->PortCfg.SsidLen = erq->length; //minus null character.
38 memcpy(pAdapter->Mlme.CntlAux.Ssid, pAdapter->PortCfg.Ssid, pAdapter->PortCfg.SsidLen);
39 pAdapter->Mlme.CntlAux.SsidLen = pAdapter->PortCfg.SsidLen;