Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26086
b: refs/heads/master
c: ba2f8c1
h: refs/heads/master
v: v3
  • Loading branch information
johannes@sipsolutions.net authored and John W. Linville committed Apr 19, 2006
1 parent cdc6230 commit d83bc9a
Show file tree
Hide file tree
Showing 2 changed files with 11 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: b79367a5ea28afe2ac659593970c15c9513f1d49
refs/heads/master: ba2f8c18756b4a99c8cd3ab6526b2ed7a8f18ead
10 changes: 10 additions & 0 deletions trunk/net/ieee80211/softmac/ieee80211softmac_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,23 @@ ieee80211softmac_wx_trigger_scan(struct net_device *net_dev,
EXPORT_SYMBOL_GPL(ieee80211softmac_wx_trigger_scan);


/* if we're still scanning, return -EAGAIN so that userspace tools
* can get the complete scan results, otherwise return 0. */
int
ieee80211softmac_wx_get_scan_results(struct net_device *net_dev,
struct iw_request_info *info,
union iwreq_data *data,
char *extra)
{
unsigned long flags;
struct ieee80211softmac_device *sm = ieee80211_priv(net_dev);

spin_lock_irqsave(&sm->lock, flags);
if (sm->scanning) {
spin_unlock_irqrestore(&sm->lock, flags);
return -EAGAIN;
}
spin_unlock_irqrestore(&sm->lock, flags);
return ieee80211_wx_get_scan(sm->ieee, info, data, extra);
}
EXPORT_SYMBOL_GPL(ieee80211softmac_wx_get_scan_results);
Expand Down

0 comments on commit d83bc9a

Please sign in to comment.