Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27286
b: refs/heads/master
c: 07f02e4
h: refs/heads/master
v: v3
  • Loading branch information
Zhu Yi authored and John W. Linville committed Apr 24, 2006
1 parent 26eedce commit e5536d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 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: a5cf4fe65144ff2f35de37c7b58e7ab8ffd84d19
refs/heads/master: 07f02e4625e6d7ca5d4f3835aea9807fe1e0f9c5
21 changes: 20 additions & 1 deletion trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -4489,6 +4489,24 @@ static void ipw_rx_notification(struct ipw_priv *priv,
&& priv->status & STATUS_ASSOCIATED)
queue_delayed_work(priv->workqueue,
&priv->request_scan, HZ);

/* 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
* we want to minimise the work done in the irq handler
* Use a request to extract the data.
* Also, we generate this even for any scan, regardless
* on how the scan was initiated. User space can just
* sync on periodic scan to get fresh data...
* Jean II */
if (x->status == SCAN_COMPLETED_STATUS_COMPLETE) {
union iwreq_data wrqu;

wrqu.data.length = 0;
wrqu.data.flags = 0;
wireless_send_event(priv->net_dev, SIOCGIWSCAN,
&wrqu, NULL);
}
break;
}

Expand Down Expand Up @@ -8379,7 +8397,8 @@ static int ipw_wx_get_range(struct net_device *dev,
/* Event capability (kernel + driver) */
range->event_capa[0] = (IW_EVENT_CAPA_K_0 |
IW_EVENT_CAPA_MASK(SIOCGIWTHRSPY) |
IW_EVENT_CAPA_MASK(SIOCGIWAP));
IW_EVENT_CAPA_MASK(SIOCGIWAP) |
IW_EVENT_CAPA_MASK(SIOCGIWSCAN));
range->event_capa[1] = IW_EVENT_CAPA_K_1;

range->enc_capa = IW_ENC_CAPA_WPA | IW_ENC_CAPA_WPA2 |
Expand Down

0 comments on commit e5536d9

Please sign in to comment.