Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10285
b: refs/heads/master
c: f7a7444
h: refs/heads/master
i:
  10283: fc061e8
v: v3
  • Loading branch information
Jouni Malinen authored and Jeff Garzik committed Oct 4, 2005
1 parent d533dc8 commit 5bc1d54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bab76198b3111bd0328be3c1fa208237eb12f86e
refs/heads/master: f7a74447553d698795ba74b7e17e916000b0cb08
8 changes: 8 additions & 0 deletions trunk/drivers/net/wireless/hostap/hostap_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ static struct pci_device_id prism2_pci_id_table[] __devinitdata = {
static inline void hfa384x_outb_debug(struct net_device *dev, int a, u8 v)
{
struct hostap_interface *iface;
struct hostap_pci_priv *hw_priv;
local_info_t *local;
unsigned long flags;

iface = netdev_priv(dev);
local = iface->local;
hw_priv = local->hw_priv;

spin_lock_irqsave(&local->lock, flags);
prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_OUTB, a, v);
Expand All @@ -74,12 +76,14 @@ static inline void hfa384x_outb_debug(struct net_device *dev, int a, u8 v)
static inline u8 hfa384x_inb_debug(struct net_device *dev, int a)
{
struct hostap_interface *iface;
struct hostap_pci_priv *hw_priv;
local_info_t *local;
unsigned long flags;
u8 v;

iface = netdev_priv(dev);
local = iface->local;
hw_priv = local->hw_priv;

spin_lock_irqsave(&local->lock, flags);
v = readb(hw_priv->mem_start + a);
Expand All @@ -91,11 +95,13 @@ static inline u8 hfa384x_inb_debug(struct net_device *dev, int a)
static inline void hfa384x_outw_debug(struct net_device *dev, int a, u16 v)
{
struct hostap_interface *iface;
struct hostap_pci_priv *hw_priv;
local_info_t *local;
unsigned long flags;

iface = netdev_priv(dev);
local = iface->local;
hw_priv = local->hw_priv;

spin_lock_irqsave(&local->lock, flags);
prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_OUTW, a, v);
Expand All @@ -106,12 +112,14 @@ static inline void hfa384x_outw_debug(struct net_device *dev, int a, u16 v)
static inline u16 hfa384x_inw_debug(struct net_device *dev, int a)
{
struct hostap_interface *iface;
struct hostap_pci_priv *hw_priv;
local_info_t *local;
unsigned long flags;
u16 v;

iface = netdev_priv(dev);
local = iface->local;
hw_priv = local->hw_priv;

spin_lock_irqsave(&local->lock, flags);
v = readw(hw_priv->mem_start + a);
Expand Down

0 comments on commit 5bc1d54

Please sign in to comment.