netdev
[Top] [All Lists]

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

To: Jouni Malinen <jkmaline@xxxxxxxxx>
Subject: Re: [PATCH wireless-2.6 11/12] Host AP: Fix PRISM2_IO_DEBUG
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Tue, 09 Nov 2004 02:29:52 -0500
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20041108071710.GL1076@xxxxxxxxx>
References: <20041108070156.GA1076@xxxxxxxxx> <20041108071710.GL1076@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922
Jouni Malinen wrote:
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-07 22:39:16 -08:00
+++ b/drivers/net/wireless/hostap/hostap_wlan.h 2004-11-07 22:39:16 -08:00
@@ -1006,7 +1006,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 = dev->priv;
+       local_info_t *local = iface->local;
if (!local->io_debug_enabled)
                return;
@@ -1023,7 +1024,8 @@
static inline void prism2_io_debug_error(struct net_device *dev, int err)
 {
-       local_info_t *local = dev->priv;
+       struct hostap_interface *iface = dev->priv;
+       local_info_t *local = iface->local;
        unsigned long flags;

it is preferred to use netdev_priv() rather than directly referring to dev->priv.

        Jeff




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