Hi again !
A more precise patch that show the changes made to 2.6.19.patch.
I ma ready to commit it to the svn if no one objects to it...
Romain
--
Oh what a competition
But Jah is mi highest region
Rocking trough revelation
Chanting to Jah holy nation
Index: debian/patches/2.6.19.diff
===================================================================
--- debian/patches/2.6.19.diff (révision 9)
+++ debian/patches/2.6.19.diff (copie de travail)
@@ -19,45 +19,38 @@
IN unsigned long data);
--- Module/rtmp_info.c 2006/08/19 23:51:27 1.68
+++ Module/rtmp_info.c 2006/12/27 21:09:31 1.69
-@@ -1632,6 +1632,7 @@
- USHORT subcmd;
- BOOLEAN StateMachineTouched = FALSE;
- int i, chan = -1, index = 0, len = 0;
-+ ULONG Length;
-
-
switch(cmd) {
@@ -1650,23 +1651,29 @@
break;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
-+ Length = erq->length - 1; // minux null character.
++ #define customLength (erq->length - 1) // minux null character.
+#else
-+ Length = erq->length;
++ #define customLength (erq->length)
+#endif
+
if(RTMP_TEST_FLAG(pAdapter, fRTMP_ADAPTER_INTERRUPT_IN_USE))
{
- if (copy_from_user(Ssid.Ssid, erq->pointer, (erq->length - 1)))
-+ if (copy_from_user(Ssid.Ssid, erq->pointer, Length))
++ if (copy_from_user(Ssid.Ssid, erq->pointer, customLength))
{
Status = -EFAULT;
break;
}
- Ssid.SsidLength = erq->length - 1; //minus null character.
-+ Ssid.SsidLength = Length;
++ Ssid.SsidLength = customLength;
}else{
// This SEEMS to be needed to actual work RobinC when iface
// is down
- if (copy_from_user(pAdapter->PortCfg.Ssid, erq->pointer, (erq->length - 1)))
-+ if (copy_from_user(pAdapter->PortCfg.Ssid, erq->pointer, Length))
++ if (copy_from_user(pAdapter->PortCfg.Ssid, erq->pointer, customLength))
{
Status = -EFAULT;
break;
}
- pAdapter->PortCfg.SsidLen = erq->length - 1; //minus null character.
-+ pAdapter->PortCfg.SsidLen = Length;
++ pAdapter->PortCfg.SsidLen = customLength;
memcpy(pAdapter->Mlme.CntlAux.Ssid, pAdapter->PortCfg.Ssid, pAdapter->PortCfg.SsidLen);
pAdapter->Mlme.CntlAux.SsidLen = pAdapter->PortCfg.SsidLen;