diff options
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index bcaee5d1283..4b75ddeef6b 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -479,11 +479,10 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata, | |||
479 | if (local->ops->hw_scan) { | 479 | if (local->ops->hw_scan) { |
480 | __set_bit(SCAN_HW_SCANNING, &local->scanning); | 480 | __set_bit(SCAN_HW_SCANNING, &local->scanning); |
481 | } else if ((req->n_channels == 1) && | 481 | } else if ((req->n_channels == 1) && |
482 | (req->channels[0]->center_freq == | 482 | (req->channels[0] == local->oper_channel)) { |
483 | local->hw.conf.channel->center_freq)) { | 483 | /* |
484 | 484 | * If we are scanning only on the operating channel | |
485 | /* If we are scanning only on the current channel, then | 485 | * then we do not need to stop normal activities |
486 | * we do not need to stop normal activities | ||
487 | */ | 486 | */ |
488 | unsigned long next_delay; | 487 | unsigned long next_delay; |
489 | 488 | ||