1 by moving common code to ar5008_hw_cmn_spur_mitigate i forgot to move
2 mask_m & mask_p initialisation. This coused a performance regression
6 Fixes: f911085ffa88 ("ath9k: split ar5008_hw_spur_mitigate and reuse common
7 code in ar9002_hw_spur_mitigate.")
8 Reported-by: Gustav Frederiksen <lkml2...@openmailbox.org>
9 Tested-by: Gustav Frederiksen <lkml2...@openmailbox.org>
10 Signed-off-by: Oleksij Rempel <li...@rempel-privat.de>
11 diff -Naur backports-4.2.6-1.org/drivers/net/wireless/ath/ath9k/ar5008_phy.c backports-4.2.6-1/drivers/net/wireless/ath/ath9k/ar5008_phy.c
12 --- backports-4.2.6-1.org/drivers/net/wireless/ath/ath9k/ar5008_phy.c 2015-11-15 22:19:39.000000000 +0100
13 +++ backports-4.2.6-1/drivers/net/wireless/ath/ath9k/ar5008_phy.c 2016-04-25 09:37:58.765112541 +0200
16 static const int inc[4] = { 0, 100, 0, 0 };
18 + memset(&mask_m, 0, sizeof(int8_t) * 123);
19 + memset(&mask_p, 0, sizeof(int8_t) * 123);
31 bool is2GHz = IS_CHAN_2GHZ(chan);
33 - memset(&mask_m, 0, sizeof(int8_t) * 123);
34 - memset(&mask_p, 0, sizeof(int8_t) * 123);
36 for (i = 0; i < AR_EEPROM_MODAL_SPURS; i++) {
37 cur_bb_spur = ah->eep_ops->get_spur_channel(ah, i, is2GHz);
38 if (AR_NO_SPUR == cur_bb_spur)
39 diff -Naur backports-4.2.6-1.org/drivers/net/wireless/ath/ath9k/ar9002_phy.c backports-4.2.6-1/drivers/net/wireless/ath/ath9k/ar9002_phy.c
40 --- backports-4.2.6-1.org/drivers/net/wireless/ath/ath9k/ar9002_phy.c 2015-11-15 22:19:39.000000000 +0100
41 +++ backports-4.2.6-1/drivers/net/wireless/ath/ath9k/ar9002_phy.c 2016-04-25 09:38:57.729109148 +0200
44 struct chan_centers centers;
49 bool is2GHz = IS_CHAN_2GHZ(chan);
51 - memset(&mask_m, 0, sizeof(int8_t) * 123);
52 - memset(&mask_p, 0, sizeof(int8_t) * 123);
54 ath9k_hw_get_channel_centers(ah, chan, ¢ers);
55 freq = centers.synth_center;