Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134445
b: refs/heads/master
c: aea48b1
h: refs/heads/master
i:
  134443: 9f3b5ec
v: v3
  • Loading branch information
David Kilroy authored and John W. Linville committed Feb 11, 2009
1 parent fe39523 commit 27f3a9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 47445cb95015bef0d54ca799f31e454797378a71
refs/heads/master: aea48b1529c6c4d39af82fc36728da49668392c6
10 changes: 5 additions & 5 deletions trunk/drivers/net/wireless/orinoco/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1929,11 +1929,10 @@ static void orinoco_add_ext_scan_result(struct orinoco_private *priv,
}
}

static int orinoco_process_scan_results(struct net_device *dev,
static int orinoco_process_scan_results(struct orinoco_private *priv,
unsigned char *buf,
int len)
{
struct orinoco_private *priv = netdev_priv(dev);
int offset; /* In the scan data */
union hermes_scan_info *atom;
int atom_len;
Expand Down Expand Up @@ -1967,7 +1966,8 @@ static int orinoco_process_scan_results(struct net_device *dev,
/* Sanity check for atom_len */
if (atom_len < sizeof(struct prism2_scan_apinfo)) {
printk(KERN_ERR "%s: Invalid atom_len in scan "
"data: %d\n", dev->name, atom_len);
"data: %d\n", priv->ndev->name,
atom_len);
return -EIO;
}
} else
Expand All @@ -1980,7 +1980,7 @@ static int orinoco_process_scan_results(struct net_device *dev,
/* Check that we got an whole number of atoms */
if ((len - offset) % atom_len) {
printk(KERN_ERR "%s: Unexpected scan data length %d, "
"atom_len %d, offset %d\n", dev->name, len,
"atom_len %d, offset %d\n", priv->ndev->name, len,
atom_len, offset);
return -EIO;
}
Expand Down Expand Up @@ -2187,7 +2187,7 @@ static void __orinoco_ev_info(struct net_device *dev, hermes_t *hw)
}
#endif /* ORINOCO_DEBUG */

if (orinoco_process_scan_results(dev, buf, len) == 0) {
if (orinoco_process_scan_results(priv, buf, len) == 0) {
/* Send an empty event to user space.
* We don't send the received data on the event because
* it would require us to do complex transcoding, and
Expand Down

0 comments on commit 27f3a9b

Please sign in to comment.