netdev
[Top] [All Lists]

[PATCH wireless-2.6 11/16] Host AP: Fix PRISM2_IO_DEBUG

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH wireless-2.6 11/16] Host AP: Fix PRISM2_IO_DEBUG
From: Jouni Malinen <jkmaline@xxxxxxxxx>
Date: Sat, 13 Nov 2004 21:20:04 -0800
Cc: netdev@xxxxxxxxxxx
In-reply-to: <419071F0.6030602@xxxxxxxxx>
References: <20041108070156.GA1076@xxxxxxxxx> <20041108071710.GL1076@xxxxxxxxx> <419071F0.6030602@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
From Mark Glines <mark@xxxxxxxxxx>:

I just noticed PRISM2_IO_DEBUG doesn't work.  This patch gets it
working again.  I checked the development CVS snapshot, looks like
its still broken there.

jkm: in addition, fix the other PRISM2_IO_DEBUG function

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


diff -Nru a/drivers/net/wireless/hostap/hostap_wlan.h 
b/drivers/net/wireless/hostap/hostap_wlan.h
--- a/drivers/net/wireless/hostap/hostap_wlan.h 2004-11-13 20:56:09 -08:00
+++ b/drivers/net/wireless/hostap/hostap_wlan.h 2004-11-13 20:56:09 -08:00
@@ -1004,7 +1004,8 @@
 static inline void prism2_io_debug_add(struct net_device *dev, int cmd,
                                       int reg, int value)
 {
-       local_info_t *local = dev->priv;
+       struct hostap_interface *iface = netdev_priv(dev);
+       local_info_t *local = iface->local;
 
        if (!local->io_debug_enabled)
                return;
@@ -1021,7 +1022,8 @@
 
 static inline void prism2_io_debug_error(struct net_device *dev, int err)
 {
-       local_info_t *local = dev->priv;
+       struct hostap_interface *iface = netdev_priv(dev);
+       local_info_t *local = iface->local;
        unsigned long flags;
 
        if (!local->io_debug_enabled)


-- 
Jouni Malinen                                            PGP id EFC895FA

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