From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jouni Malinen Subject: [PATCH wireless-2.6 11/12] Host AP: Fix PRISM2_IO_DEBUG Date: Sun, 7 Nov 2004 23:17:10 -0800 Message-ID: <20041108071710.GL1076@jm.kir.nu> References: <20041108070156.GA1076@jm.kir.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@oss.sgi.com Return-path: To: Jeff Garzik Content-Disposition: inline In-Reply-To: <20041108070156.GA1076@jm.kir.nu> Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org >>From Mark Glines : 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 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; if (!local->io_debug_enabled) -- Jouni Malinen PGP id EFC895FA