summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/phy.c
diff options
context:
space:
mode:
authorBob Copeland2010-08-25 03:37:14 +0200
committerJohn W. Linville2010-08-27 19:27:05 +0200
commit53b1cf8a28c440fcb241f6fb84da71a7cb0f74f0 (patch)
tree5a78f41d5658613053056e91d0f799f5695f2378 /drivers/net/wireless/ath/ath5k/phy.c
parentath5k: re-order one of the frees on unwind (diff)
downloadkernel-qcow2-linux-53b1cf8a28c440fcb241f6fb84da71a7cb0f74f0.tar.gz
kernel-qcow2-linux-53b1cf8a28c440fcb241f6fb84da71a7cb0f74f0.tar.xz
kernel-qcow2-linux-53b1cf8a28c440fcb241f6fb84da71a7cb0f74f0.zip
ath5k: fix off-by-one in pilot magnitude mask
If the symbol offset is 46, it will be counted in both the third and fourth bytes of the mask, and in this case the shift will be negative which can pollute high order bits in the mask. This may negatively impact OFDM symbol detection. Signed-off-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/phy.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 8c27a3644d2f..984ba92c7df3 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -1582,7 +1582,7 @@ ath5k_hw_set_spur_mitigation_filter(struct ath5k_hw *ah,
else if (curr_sym_off >= 31 && curr_sym_off <= 46)
mag_mask[2] |=
plt_mag_map << (curr_sym_off - 31) * 2;
- else if (curr_sym_off >= 46 && curr_sym_off <= 53)
+ else if (curr_sym_off >= 47 && curr_sym_off <= 53)
mag_mask[3] |=
plt_mag_map << (curr_sym_off - 47) * 2;