|
@@ -3078,7 +3078,12 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
|
|
|
band = IEEE80211_BAND_2GHZ;
|
|
|
} else if (priv->scan_bands & BIT(IEEE80211_BAND_5GHZ)) {
|
|
|
scan->tx_cmd.rate = IWL_RATE_6M_PLCP;
|
|
|
- scan->good_CRC_th = IWL_GOOD_CRC_TH;
|
|
|
+ /*
|
|
|
+ * If active scaning is requested but a certain channel
|
|
|
+ * is marked passive, we can do active scanning if we
|
|
|
+ * detect transmissions.
|
|
|
+ */
|
|
|
+ scan->good_CRC_th = is_active ? IWL_GOOD_CRC_TH : 0;
|
|
|
band = IEEE80211_BAND_5GHZ;
|
|
|
} else {
|
|
|
IWL_WARN(priv, "Invalid scan band count\n");
|