kernel: fix wrong line for the +@DRIVER_WEXT_SUPPORT dependency in kmod-net-zd1201
[librecmc/librecmc.git] / package / mac80211 / patches / 547-ath9k-initialize-rx-gain-table-for-AR9330.patch
1 --- a/drivers/net/wireless/ath/ath9k/ar9003_hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
3 @@ -443,7 +443,17 @@ static void ar9003_rx_gain_table_apply(s
4         switch (ar9003_hw_get_rx_gain_idx(ah)) {
5         case 0:
6         default:
7 -               if (AR_SREV_9340(ah))
8 +               if (AR_SREV_9330_12(ah))
9 +                       INIT_INI_ARRAY(&ah->iniModesRxGain,
10 +                                       ar9331_common_rx_gain_1p2,
11 +                                       ARRAY_SIZE(ar9331_common_rx_gain_1p2),
12 +                                       2);
13 +               else if (AR_SREV_9330_11(ah))
14 +                       INIT_INI_ARRAY(&ah->iniModesRxGain,
15 +                                       ar9331_common_rx_gain_1p1,
16 +                                       ARRAY_SIZE(ar9331_common_rx_gain_1p1),
17 +                                       2);
18 +               else if (AR_SREV_9340(ah))
19                         INIT_INI_ARRAY(&ah->iniModesRxGain,
20                                        ar9340Common_rx_gain_table_1p0,
21                                        ARRAY_SIZE(ar9340Common_rx_gain_table_1p0),
22 @@ -460,7 +470,17 @@ static void ar9003_rx_gain_table_apply(s
23                                        2);
24                 break;
25         case 1:
26 -               if (AR_SREV_9340(ah))
27 +               if (AR_SREV_9330_12(ah))
28 +                       INIT_INI_ARRAY(&ah->iniModesRxGain,
29 +                               ar9331_common_wo_xlna_rx_gain_1p2,
30 +                               ARRAY_SIZE(ar9331_common_wo_xlna_rx_gain_1p2),
31 +                               2);
32 +               else if (AR_SREV_9330_11(ah))
33 +                       INIT_INI_ARRAY(&ah->iniModesRxGain,
34 +                               ar9331_common_wo_xlna_rx_gain_1p1,
35 +                               ARRAY_SIZE(ar9331_common_wo_xlna_rx_gain_1p1),
36 +                               2);
37 +               else if (AR_SREV_9340(ah))
38                         INIT_INI_ARRAY(&ah->iniModesRxGain,
39                                        ar9340Common_wo_xlna_rx_gain_table_1p0,
40                                        ARRAY_SIZE(ar9340Common_wo_xlna_rx_gain_table_1p0),