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
4 #error You must compile this driver with "-O".
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)))
24 - Ssid.SsidLength = erq->length - 1; //minus null character.
25 + Ssid.SsidLength = erq->length; //minus null character.
27 // This SEEMS to be needed to actual work RobinC when iface
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)))
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;