netdev
[Top] [All Lists]

[PATCH wireless-2.6 3/10] hostap: Disable interrupts before Genesis mode

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH wireless-2.6 3/10] hostap: Disable interrupts before Genesis mode
From: Jouni Malinen <jkmaline@xxxxxxxxx>
Date: Sat, 12 Mar 2005 16:30:51 -0800
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050313001706.GA8253@xxxxxxxxx>
References: <20050313001706.GA8253@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
Disable interrupts before trying to initialize card after Genesis mode
download. This seems to be required at least with SanDisk ConnectPlus,
but seems to be a good idea in generic, so just do it with all cards.

Signed-off-by: Jouni Malinen <jkmaline@xxxxxxxxx>

Index: jm-wireless-2.6/drivers/net/wireless/hostap/hostap_download.c
===================================================================
--- jm-wireless-2.6.orig/drivers/net/wireless/hostap/hostap_download.c  
2005-03-12 16:10:40.000000000 -0800
+++ jm-wireless-2.6/drivers/net/wireless/hostap/hostap_download.c       
2005-03-12 16:10:52.000000000 -0800
@@ -464,6 +464,11 @@
        local->hw_downloading = 0;
 
        PDEBUG(DEBUG_EXTRA2, "Trying to initialize card\n");
+       /*
+        * Make sure the INIT command does not generate a command completion
+        * event by disabling interrupts.
+        */
+       hfa384x_disable_interrupts(dev);
        if (prism2_hw_init(dev, 1)) {
                printk(KERN_DEBUG "%s: Initialization after genesis mode "
                       "download failed\n", dev->name);


-- 
Jouni Malinen                                            PGP id EFC895FA

<Prev in Thread] Current Thread [Next in Thread>