Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111228
b: refs/heads/master
c: 6cd90b1
h: refs/heads/master
v: v3
  • Loading branch information
David Kilroy authored and John W. Linville committed Aug 22, 2008
1 parent 1b1b0cf commit 18f740b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 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: 4ae6ee2d72e4904909d63c6ebb0240b254b72e85
refs/heads/master: 6cd90b1cac290c64a93b7e992bb1ef495988465f
24 changes: 14 additions & 10 deletions trunk/drivers/net/wireless/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -1424,34 +1424,38 @@ static void orinoco_join_ap(struct work_struct *work)
}

/* Send new BSSID to userspace */
static void orinoco_send_wevents(struct work_struct *work)
static void orinoco_send_bssid_wevent(struct orinoco_private *priv)
{
struct orinoco_private *priv =
container_of(work, struct orinoco_private, wevent_work);
struct net_device *dev = priv->ndev;
struct hermes *hw = &priv->hw;
union iwreq_data wrqu;
int err;
unsigned long flags;

if (orinoco_lock(priv, &flags) != 0)
return;

err = hermes_read_ltv(hw, IRQ_BAP, HERMES_RID_CURRENTBSSID,
ETH_ALEN, NULL, wrqu.ap_addr.sa_data);
if (err != 0)
goto out;
return;

wrqu.ap_addr.sa_family = ARPHRD_ETHER;

/* Send event to user space */
wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
}

static void orinoco_send_wevents(struct work_struct *work)
{
struct orinoco_private *priv =
container_of(work, struct orinoco_private, wevent_work);
unsigned long flags;

if (orinoco_lock(priv, &flags) != 0)
return;

orinoco_send_bssid_wevent(priv);

out:
orinoco_unlock(priv, &flags);
}


static inline void orinoco_clear_scan_results(struct orinoco_private *priv,
unsigned long scan_age)
{
Expand Down

0 comments on commit 18f740b

Please sign in to comment.