Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134443
b: refs/heads/master
c: 2131266
h: refs/heads/master
i:
  134441: 90e3f1b
  134439: f10305f
v: v3
  • Loading branch information
David Kilroy authored and John W. Linville committed Feb 11, 2009
1 parent a197ed8 commit 9f3b5ec
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2f30a0a2395b6c7e7138fbdabec2cb02ff373a7
refs/heads/master: 2131266d6e53e8f84f8111323036343d72bcb856
52 changes: 22 additions & 30 deletions trunk/drivers/net/wireless/orinoco/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ MODULE_LICENSE("Dual MPL/GPL");
/* Level of debugging. Used in the macros in orinoco.h */
#ifdef ORINOCO_DEBUG
int orinoco_debug = ORINOCO_DEBUG;
EXPORT_SYMBOL(orinoco_debug);
module_param(orinoco_debug, int, 0644);
MODULE_PARM_DESC(orinoco_debug, "Debug level");
EXPORT_SYMBOL(orinoco_debug);
#endif

static int suppress_linkstatus; /* = 0 */
Expand Down Expand Up @@ -1650,7 +1650,7 @@ static void orinoco_rx_isr_tasklet(unsigned long data)

static void print_linkstatus(struct net_device *dev, u16 status)
{
char * s;
char *s;

if (suppress_linkstatus)
return;
Expand Down Expand Up @@ -2309,6 +2309,7 @@ int __orinoco_up(struct net_device *dev)

return 0;
}
EXPORT_SYMBOL(__orinoco_up);

int __orinoco_down(struct net_device *dev)
{
Expand Down Expand Up @@ -2340,6 +2341,7 @@ int __orinoco_down(struct net_device *dev)

return 0;
}
EXPORT_SYMBOL(__orinoco_down);

static int orinoco_allocate_fid(struct net_device *dev)
{
Expand All @@ -2350,16 +2352,12 @@ static int orinoco_allocate_fid(struct net_device *dev)
err = hermes_allocate(hw, priv->nicbuf_size, &priv->txfid);
if (err == -EIO && priv->nicbuf_size > TX_NICBUF_SIZE_BUG) {
/* Try workaround for old Symbol firmware bug */
printk(KERN_WARNING "%s: firmware ALLOC bug detected "
"(old Symbol firmware?). Trying to work around... ",
dev->name);

priv->nicbuf_size = TX_NICBUF_SIZE_BUG;
err = hermes_allocate(hw, priv->nicbuf_size, &priv->txfid);
if (err)
printk("failed!\n");
else
printk("ok.\n");

printk(KERN_WARNING "%s: firmware ALLOC bug detected "
"(old Symbol firmware?). Work around %s\n",
dev->name, err ? "failed!" : "ok.");
}

return err;
Expand All @@ -2382,6 +2380,7 @@ int orinoco_reinit_firmware(struct net_device *dev)

return err;
}
EXPORT_SYMBOL(orinoco_reinit_firmware);

static int __orinoco_hw_set_bitrate(struct orinoco_private *priv)
{
Expand Down Expand Up @@ -3060,12 +3059,14 @@ irqreturn_t orinoco_interrupt(int irq, void *dev_id)
hermes_t *hw = &priv->hw;
int count = MAX_IRQLOOPS_PER_IRQ;
u16 evstat, events;
/* These are used to detect a runaway interrupt situation */
/* If we get more than MAX_IRQLOOPS_PER_JIFFY iterations in a jiffy,
* we panic and shut down the hardware */
static int last_irq_jiffy = 0; /* jiffies value the last time
* we were called */
static int loops_this_jiffy = 0;
/* These are used to detect a runaway interrupt situation.
*
* If we get more than MAX_IRQLOOPS_PER_JIFFY iterations in a jiffy,
* we panic and shut down the hardware
*/
/* jiffies value the last time we were called */
static int last_irq_jiffy; /* = 0 */
static int loops_this_jiffy; /* = 0 */
unsigned long flags;

if (orinoco_lock(priv, &flags) != 0) {
Expand Down Expand Up @@ -3127,6 +3128,7 @@ irqreturn_t orinoco_interrupt(int irq, void *dev_id)
orinoco_unlock(priv, &flags);
return IRQ_HANDLED;
}
EXPORT_SYMBOL(orinoco_interrupt);

/********************************************************************/
/* Power management */
Expand Down Expand Up @@ -3442,11 +3444,8 @@ static int orinoco_init(struct net_device *dev)
printk(KERN_DEBUG "%s: IEEE standard IBSS ad-hoc mode supported\n",
dev->name);
if (priv->has_wep) {
printk(KERN_DEBUG "%s: WEP supported, ", dev->name);
if (priv->has_big_wep)
printk("104-bit key\n");
else
printk("40-bit key\n");
printk(KERN_DEBUG "%s: WEP supported, %s-bit key\n", dev->name,
priv->has_big_wep ? "104" : "40");
}
if (priv->has_wpa) {
printk(KERN_DEBUG "%s: WPA-PSK supported\n", dev->name);
Expand Down Expand Up @@ -3672,6 +3671,7 @@ struct net_device

return dev;
}
EXPORT_SYMBOL(alloc_orinocodev);

void free_orinocodev(struct net_device *dev)
{
Expand Down Expand Up @@ -3701,6 +3701,7 @@ void free_orinocodev(struct net_device *dev)
orinoco_bss_data_free(priv);
free_netdev(dev);
}
EXPORT_SYMBOL(free_orinocodev);

/********************************************************************/
/* Wireless extensions */
Expand Down Expand Up @@ -6143,15 +6144,6 @@ static const struct ethtool_ops orinoco_ethtool_ops = {
/* Module initialization */
/********************************************************************/

EXPORT_SYMBOL(alloc_orinocodev);
EXPORT_SYMBOL(free_orinocodev);

EXPORT_SYMBOL(__orinoco_up);
EXPORT_SYMBOL(__orinoco_down);
EXPORT_SYMBOL(orinoco_reinit_firmware);

EXPORT_SYMBOL(orinoco_interrupt);

/* Can't be declared "const" or the whole __initdata section will
* become const */
static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION
Expand Down

0 comments on commit 9f3b5ec

Please sign in to comment.