summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0127-iwlegacy-3945-fix-hw-passive-scan-on-radar-channels.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-02-10 15:32:32 +0100
committerDenys Dmytriyenko <denys@ti.com>2012-02-27 09:04:13 -0500
commitc4eefd753012467261cf221babd2e8639b81d3ca (patch)
tree0f6e09a6b51f410455330f046a8e03787d5a126e /recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0127-iwlegacy-3945-fix-hw-passive-scan-on-radar-channels.patch
parent14f31c3c5a19dde049355ced3edd121c31842460 (diff)
downloadmeta-ti-c4eefd753012467261cf221babd2e8639b81d3ca.tar.gz
linux-ti33x-psp 3.2: update to 3.2.5
Runtime tested on a beaglebone A3 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0127-iwlegacy-3945-fix-hw-passive-scan-on-radar-channels.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0127-iwlegacy-3945-fix-hw-passive-scan-on-radar-channels.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0127-iwlegacy-3945-fix-hw-passive-scan-on-radar-channels.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0127-iwlegacy-3945-fix-hw-passive-scan-on-radar-channels.patch
new file mode 100644
index 00000000..8c1b597d
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0127-iwlegacy-3945-fix-hw-passive-scan-on-radar-channels.patch
@@ -0,0 +1,60 @@
1From 8662eba088f07fc218cd70a54eb75f19dd89121b Mon Sep 17 00:00:00 2001
2From: Stanislaw Gruszka <sgruszka@redhat.com>
3Date: Fri, 23 Dec 2011 08:13:50 +0100
4Subject: [PATCH 127/130] iwlegacy: 3945: fix hw passive scan on radar
5 channels
6
7commit 68acc4afb040d98ddfd2cae0de09e2f4e1ee127f upstream.
8
9Patch fix firmware error on "iw dev wlan0 scan passive" for
10hardware scanning (with disable_hw_scan=0 module parameter).
11
12 iwl3945 0000:03:00.0: Microcode SW error detected. Restarting 0x82000008.
13 iwl3945 0000:03:00.0: Loaded firmware version: 15.32.2.9
14 iwl3945 0000:03:00.0: Start IWL Error Log Dump:
15 iwl3945 0000:03:00.0: Status: 0x0002A2E4, count: 1
16 iwl3945 0000:03:00.0: Desc Time asrtPC blink2 ilink1 nmiPC Line
17 iwl3945 0000:03:00.0: SYSASSERT (0x5) 0041263900 0x13756 0x0031C 0x00000 764
18 iwl3945 0000:03:00.0: Error Reply type 0x000002FC cmd C_SCAN (0x80) seq 0x443E ser 0x00340000
19 iwl3945 0000:03:00.0: Command C_SCAN failed: FW Error
20 iwl3945 0000:03:00.0: Can't stop Rx DMA.
21
22We have disable ability to change passive scanning to active on
23particular channel when traffic is detected on that channel. Otherwise
24firmware will report error, when we try to do passive scan on radar
25channels.
26
27Reported-and-debugged-by: Pedro Francisco <pedrogfrancisco@gmail.com>
28Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
29Signed-off-by: John W. Linville <linville@tuxdriver.com>
30Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
31---
32 drivers/net/wireless/iwlegacy/iwl3945-base.c | 9 ++++-----
33 1 files changed, 4 insertions(+), 5 deletions(-)
34
35diff --git a/drivers/net/wireless/iwlegacy/iwl3945-base.c b/drivers/net/wireless/iwlegacy/iwl3945-base.c
36index b282d86..05f2ad1 100644
37--- a/drivers/net/wireless/iwlegacy/iwl3945-base.c
38+++ b/drivers/net/wireless/iwlegacy/iwl3945-base.c
39@@ -2656,14 +2656,13 @@ int iwl3945_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
40 IWL_WARN(priv, "Invalid scan band\n");
41 return -EIO;
42 }
43-
44 /*
45- * If active scaning is requested but a certain channel
46- * is marked passive, we can do active scanning if we
47- * detect transmissions.
48+ * If active scaning is requested but a certain channel is marked
49+ * passive, we can do active scanning if we detect transmissions. For
50+ * passive only scanning disable switching to active on any channel.
51 */
52 scan->good_CRC_th = is_active ? IWL_GOOD_CRC_TH_DEFAULT :
53- IWL_GOOD_CRC_TH_DISABLED;
54+ IWL_GOOD_CRC_TH_NEVER;
55
56 len = iwl_legacy_fill_probe_req(priv, (struct ieee80211_mgmt *)scan->data,
57 vif->addr, priv->scan_request->ie,
58--
591.7.7.4
60