iwlegacy: 3945: fix hw passive scan on radar channels
[pandora-kernel.git] / drivers / net / wireless / iwlegacy / iwl3945-base.c
index b282d86..05f2ad1 100644 (file)
@@ -2656,14 +2656,13 @@ int iwl3945_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
                IWL_WARN(priv, "Invalid scan band\n");
                return -EIO;
        }
-
        /*
-        * If active scaning is requested but a certain channel
-        * is marked passive, we can do active scanning if we
-        * detect transmissions.
+        * If active scaning is requested but a certain channel is marked
+        * passive, we can do active scanning if we detect transmissions. For
+        * passive only scanning disable switching to active on any channel.
         */
        scan->good_CRC_th = is_active ? IWL_GOOD_CRC_TH_DEFAULT :
-                                       IWL_GOOD_CRC_TH_DISABLED;
+                                       IWL_GOOD_CRC_TH_NEVER;
 
        len = iwl_legacy_fill_probe_req(priv, (struct ieee80211_mgmt *)scan->data,
                                        vif->addr, priv->scan_request->ie,