diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/scan.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/scan.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/wl12xx/scan.c b/drivers/net/wireless/wl12xx/scan.c index 8599dab1fe2..e24111ececc 100644 --- a/drivers/net/wireless/wl12xx/scan.c +++ b/drivers/net/wireless/wl12xx/scan.c | |||
@@ -437,18 +437,19 @@ wl1271_scan_get_sched_scan_channels(struct wl1271 *wl, | |||
437 | 437 | ||
438 | if (flags & IEEE80211_CHAN_RADAR) { | 438 | if (flags & IEEE80211_CHAN_RADAR) { |
439 | channels[j].flags |= SCAN_CHANNEL_FLAGS_DFS; | 439 | channels[j].flags |= SCAN_CHANNEL_FLAGS_DFS; |
440 | |||
440 | channels[j].passive_duration = | 441 | channels[j].passive_duration = |
441 | cpu_to_le16(c->dwell_time_dfs); | 442 | cpu_to_le16(c->dwell_time_dfs); |
442 | } | 443 | } else { |
443 | else if (flags & IEEE80211_CHAN_PASSIVE_SCAN) { | ||
444 | channels[j].passive_duration = | 444 | channels[j].passive_duration = |
445 | cpu_to_le16(c->dwell_time_passive); | 445 | cpu_to_le16(c->dwell_time_passive); |
446 | } else { | ||
447 | channels[j].min_duration = | ||
448 | cpu_to_le16(c->min_dwell_time_active); | ||
449 | channels[j].max_duration = | ||
450 | cpu_to_le16(c->max_dwell_time_active); | ||
451 | } | 446 | } |
447 | |||
448 | channels[j].min_duration = | ||
449 | cpu_to_le16(c->min_dwell_time_active); | ||
450 | channels[j].max_duration = | ||
451 | cpu_to_le16(c->max_dwell_time_active); | ||
452 | |||
452 | channels[j].tx_power_att = req->channels[i]->max_power; | 453 | channels[j].tx_power_att = req->channels[i]->max_power; |
453 | channels[j].channel = req->channels[i]->hw_value; | 454 | channels[j].channel = req->channels[i]->hw_value; |
454 | 455 | ||
@@ -703,7 +704,7 @@ int wl1271_scan_sched_scan_start(struct wl1271 *wl, struct wl12xx_vif *wlvif) | |||
703 | if (wlvif->bss_type != BSS_TYPE_STA_BSS) | 704 | if (wlvif->bss_type != BSS_TYPE_STA_BSS) |
704 | return -EOPNOTSUPP; | 705 | return -EOPNOTSUPP; |
705 | 706 | ||
706 | if (!test_bit(WL1271_FLAG_IDLE, &wl->flags)) | 707 | if (test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) |
707 | return -EBUSY; | 708 | return -EBUSY; |
708 | 709 | ||
709 | start = kzalloc(sizeof(*start), GFP_KERNEL); | 710 | start = kzalloc(sizeof(*start), GFP_KERNEL); |
@@ -753,7 +754,6 @@ void wl1271_scan_sched_scan_stop(struct wl1271 *wl) | |||
753 | wl1271_error("failed to send sched scan stop command"); | 754 | wl1271_error("failed to send sched scan stop command"); |
754 | goto out_free; | 755 | goto out_free; |
755 | } | 756 | } |
756 | wl->sched_scanning = false; | ||
757 | 757 | ||
758 | out_free: | 758 | out_free: |
759 | kfree(stop); | 759 | kfree(stop); |