diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-12-23 02:13:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-04 14:30:45 -0500 |
commit | 68acc4afb040d98ddfd2cae0de09e2f4e1ee127f (patch) | |
tree | 2640f1ef54b68ac7e305e8cca96bd0e5c1f3937c | |
parent | 81fb46139504f72a92243245df878e1a1af35f89 (diff) |
iwlegacy: 3945: fix hw passive scan on radar channels
Patch fix firmware error on "iw dev wlan0 scan passive" for
hardware scanning (with disable_hw_scan=0 module parameter).
iwl3945 0000:03:00.0: Microcode SW error detected. Restarting 0x82000008.
iwl3945 0000:03:00.0: Loaded firmware version: 15.32.2.9
iwl3945 0000:03:00.0: Start IWL Error Log Dump:
iwl3945 0000:03:00.0: Status: 0x0002A2E4, count: 1
iwl3945 0000:03:00.0: Desc Time asrtPC blink2 ilink1 nmiPC Line
iwl3945 0000:03:00.0: SYSASSERT (0x5) 0041263900 0x13756 0x0031C 0x00000 764
iwl3945 0000:03:00.0: Error Reply type 0x000002FC cmd C_SCAN (0x80) seq 0x443E ser 0x00340000
iwl3945 0000:03:00.0: Command C_SCAN failed: FW Error
iwl3945 0000:03:00.0: Can't stop Rx DMA.
We have disable ability to change passive scanning to active on
particular channel when traffic is detected on that channel. Otherwise
firmware will report error, when we try to do passive scan on radar
channels.
Reported-and-debugged-by: Pedro Francisco <pedrogfrancisco@gmail.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945-mac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c index c8179756bf3c..54b2d391e91a 100644 --- a/drivers/net/wireless/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/iwlegacy/3945-mac.c | |||
@@ -2623,12 +2623,12 @@ il3945_request_scan(struct il_priv *il, struct ieee80211_vif *vif) | |||
2623 | } | 2623 | } |
2624 | 2624 | ||
2625 | /* | 2625 | /* |
2626 | * If active scaning is requested but a certain channel | 2626 | * If active scaning is requested but a certain channel is marked |
2627 | * is marked passive, we can do active scanning if we | 2627 | * passive, we can do active scanning if we detect transmissions. For |
2628 | * detect transmissions. | 2628 | * passive only scanning disable switching to active on any channel. |
2629 | */ | 2629 | */ |
2630 | scan->good_CRC_th = | 2630 | scan->good_CRC_th = |
2631 | is_active ? IL_GOOD_CRC_TH_DEFAULT : IL_GOOD_CRC_TH_DISABLED; | 2631 | is_active ? IL_GOOD_CRC_TH_DEFAULT : IL_GOOD_CRC_TH_NEVER; |
2632 | 2632 | ||
2633 | len = | 2633 | len = |
2634 | il_fill_probe_req(il, (struct ieee80211_mgmt *)scan->data, | 2634 | il_fill_probe_req(il, (struct ieee80211_mgmt *)scan->data, |