Hi,

Jeff Garzik wrote:
matthieu castet wrote:

Hi,

without this patch after an rmmod, modprobe the card won't work anymore until the next reboot.

This patch seem safe to apply for all cards as the bsd driver already do that.

I had to add a timeout because strange things happen (issuecommand will fail) if the card is already reseted (after a reboot).

Matthieu

PS : it seems there are missing reset when leaving monitor mode...


Signed-off-by: Matthieu CASTET <[EMAIL PROTECTED]>


Can you please

* resend this patch such that "patch -sp1 < patch" will apply it

* avoid MIME attachments

Here an update version of the patch.

Matthieu


Signed-off-by: Matthieu CASTET <[EMAIL PROTECTED]>
--- linux-2.6.14/drivers/net/wireless/airo.c.old 2005-09-28 20:43:02.000000000 +0200 +++ linux-2.6.14/drivers/net/wireless/airo.c 2005-09-28 21:05:55.000000000 +0200
@@ -2769,8 +2769,8 @@
        SET_NETDEV_DEV(dev, dmdev);


-       if (test_bit(FLAG_MPI,&ai->flags))
-               reset_card (dev, 1);
+       reset_card (dev, 1);
+       msleep(400);

        rc = request_irq( dev->irq, airo_interrupt, SA_SHIRQ, dev->name, dev );
        if (rc) {
--- linux-2.6.14/drivers/net/wireless/airo.c.old	2005-09-28 20:43:02.000000000 +0200
+++ linux-2.6.14/drivers/net/wireless/airo.c	2005-09-28 21:05:55.000000000 +0200
@@ -2769,8 +2769,8 @@
 	SET_NETDEV_DEV(dev, dmdev);
 
 
-	if (test_bit(FLAG_MPI,&ai->flags))
-		reset_card (dev, 1);
+	reset_card (dev, 1);
+	msleep(400);
 
 	rc = request_irq( dev->irq, airo_interrupt, SA_SHIRQ, dev->name, dev );
 	if (rc) {

Reply via email to