[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: modem usb accessrunner



Sono appena uscito da 3 settimane di nottate con l'accessrunner, e non te le auguro. Perciò ti dò qualche dritta:

Fai prima un bel make clean.

Poi entra nella directory /cxacru/module e copiaci dentro il file di patch che ti allego qui.

Dai il seguente comando:

patch -p0 cxacru.c < cxacru.patch0

Poi rifai il 'make'. Così compila.

Per il resto, segui esattamente alla lettera quello che trovi sul sito di sourceforge (file di opzioni, ricompilazione del kernel, e via dicendo...)


--- cxacru.old	2004-03-21 18:57:38.000000000 +0100
+++ cxacru.c	2004-03-21 19:01:48.000000000 +0100
@@ -1,4 +1,4 @@
-/*
+/* 
  *  Driver Module for Alcatel SpeedTouch USB xDSL modem
  *  Copyright 2001, Alcatel
  *  Written by Johan Verrept (Johan.Verrept@advalvas.be)
@@ -8,7 +8,11 @@
  *  Modified by Josep Comas (jcomas@gna.es) to use with Conexant AccessRunner, 24/1/2003
  *
  *  Log:
- *  
+ *
+ *  14/3/2004 Fabio Marzocca
+ *  Commented out all occurences of 'walk' variable in
+ *  order to compile old driver with kernel 2.4.24
+ *
  *  28/4/2003 Josep Comas
  *  Added support for Amigo AMX-CA86U and Olitec V3
  *
@@ -214,7 +218,7 @@
   struct urb      urb;
   struct sk_buff *skb;
   struct atm_vcc *vcc;
-  struct udsl_instance_data *instance;  
+  struct udsl_instance_data *instance;
   unsigned char *pdata;
   } udsl_usb_send_data_context_t;
 
@@ -398,7 +402,7 @@
   }
 
 void udsl_atm_stopdevice(struct udsl_instance_data *instance) {
-  struct atm_vcc *walk;
+ // struct atm_vcc *walk;
   struct sk_buff *skb;
   struct atm_dev *atm_dev;
   unsigned long iflags;
@@ -415,15 +419,15 @@
     dev_kfree_skb(skb);
     };
   spin_unlock_irqrestore (&instance->recvqlock, iflags);
-  
+
   atm_dev->signal = ATM_PHY_SIG_LOST;
-  walk = atm_dev->vccs;
+  //walk = atm_dev->vccs;
   shutdown_atm_dev(atm_dev);
 
-  for (; walk; walk = walk->next)
-    wake_up(&walk->sleep);
+//  for (; walk; walk = walk->next)
+//    wake_up(&walk->sleep);
 
-  instance->atm_dev = NULL;  
+  instance->atm_dev = NULL;
   MOD_DEC_USE_COUNT;
   }
 

Reply to: