X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=net%2Fmac80211%2Fscan.c;h=5030a3c87509a28fe8957d10cc4312e4f9ee99f9;hb=aae89831df03e5282a8f5c0ee46432cfb677fc5c;hp=0e81e1633a669b7f50e9267271fe5a521f7a0c30;hpb=80e775bf08f1915870fbb0c1c7a45a3fdc291721;p=safe%2Fjmp%2Flinux-2.6 diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 0e81e16..5030a3c 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -202,6 +202,18 @@ ieee80211_scan_rx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, return RX_QUEUED; } +void ieee80211_scan_failed(struct ieee80211_local *local) +{ + if (WARN_ON(!local->scan_req)) + return; + + /* notify cfg80211 about the failed scan */ + if (local->scan_req != &local->int_scan_req) + cfg80211_scan_done(local->scan_req, true); + + local->scan_req = NULL; +} + void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted) { struct ieee80211_local *local = hw_to_local(hw);