diff options
Diffstat (limited to 'drivers/net/wireless/orinoco/scan.c')
-rw-r--r-- | drivers/net/wireless/orinoco/scan.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/orinoco/scan.c b/drivers/net/wireless/orinoco/scan.c index 4300d9db7d8c..e99ca1c1e0d8 100644 --- a/drivers/net/wireless/orinoco/scan.c +++ b/drivers/net/wireless/orinoco/scan.c | |||
@@ -111,6 +111,11 @@ static void orinoco_add_hostscan_result(struct orinoco_private *priv, | |||
111 | 111 | ||
112 | freq = ieee80211_dsss_chan_to_freq(le16_to_cpu(bss->a.channel)); | 112 | freq = ieee80211_dsss_chan_to_freq(le16_to_cpu(bss->a.channel)); |
113 | channel = ieee80211_get_channel(wiphy, freq); | 113 | channel = ieee80211_get_channel(wiphy, freq); |
114 | if (!channel) { | ||
115 | printk(KERN_DEBUG "Invalid channel designation %04X(%04X)", | ||
116 | bss->a.channel, freq); | ||
117 | return; /* Then ignore it for now */ | ||
118 | } | ||
114 | timestamp = 0; | 119 | timestamp = 0; |
115 | capability = le16_to_cpu(bss->a.capabilities); | 120 | capability = le16_to_cpu(bss->a.capabilities); |
116 | beacon_interval = le16_to_cpu(bss->a.beacon_interv); | 121 | beacon_interval = le16_to_cpu(bss->a.beacon_interv); |
@@ -229,3 +234,11 @@ void orinoco_add_hostscan_results(struct orinoco_private *priv, | |||
229 | priv->scan_request = NULL; | 234 | priv->scan_request = NULL; |
230 | } | 235 | } |
231 | } | 236 | } |
237 | |||
238 | void orinoco_scan_done(struct orinoco_private *priv, bool abort) | ||
239 | { | ||
240 | if (priv->scan_request) { | ||
241 | cfg80211_scan_done(priv->scan_request, abort); | ||
242 | priv->scan_request = NULL; | ||
243 | } | ||
244 | } | ||