ath10k: merge some pending stability fixes
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 308-ath10k-remove-duplicate-and-unused-rx-rate-flags.patch
1 From: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
2 Date: Thu, 2 Jun 2016 19:54:41 +0530
3 Subject: [PATCH] ath10k: remove duplicate and unused rx rate flags
4
5 All these flags are not used and their use is completely
6 covered by 'ath10k_hw_rate_ofdm', 'ath10k_hw_rate_cck',
7 and RX_PPDU_START_RATE_FLAG
8
9 Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
10 ---
11
12 --- a/drivers/net/wireless/ath/ath10k/rx_desc.h
13 +++ b/drivers/net/wireless/ath/ath10k/rx_desc.h
14 @@ -656,26 +656,6 @@ struct rx_msdu_end {
15 * Reserved: HW should fill with zero. FW should ignore.
16 */
17
18 -#define RX_PPDU_START_SIG_RATE_SELECT_OFDM 0
19 -#define RX_PPDU_START_SIG_RATE_SELECT_CCK 1
20 -
21 -#define RX_PPDU_START_SIG_RATE_OFDM_48 0
22 -#define RX_PPDU_START_SIG_RATE_OFDM_24 1
23 -#define RX_PPDU_START_SIG_RATE_OFDM_12 2
24 -#define RX_PPDU_START_SIG_RATE_OFDM_6 3
25 -#define RX_PPDU_START_SIG_RATE_OFDM_54 4
26 -#define RX_PPDU_START_SIG_RATE_OFDM_36 5
27 -#define RX_PPDU_START_SIG_RATE_OFDM_18 6
28 -#define RX_PPDU_START_SIG_RATE_OFDM_9 7
29 -
30 -#define RX_PPDU_START_SIG_RATE_CCK_LP_11 0
31 -#define RX_PPDU_START_SIG_RATE_CCK_LP_5_5 1
32 -#define RX_PPDU_START_SIG_RATE_CCK_LP_2 2
33 -#define RX_PPDU_START_SIG_RATE_CCK_LP_1 3
34 -#define RX_PPDU_START_SIG_RATE_CCK_SP_11 4
35 -#define RX_PPDU_START_SIG_RATE_CCK_SP_5_5 5
36 -#define RX_PPDU_START_SIG_RATE_CCK_SP_2 6
37 -
38 #define HTT_RX_PPDU_START_PREAMBLE_LEGACY 0x04
39 #define HTT_RX_PPDU_START_PREAMBLE_HT 0x08
40 #define HTT_RX_PPDU_START_PREAMBLE_HT_WITH_TXBF 0x09
41 @@ -711,25 +691,6 @@ struct rx_msdu_end {
42 /* No idea what this flag means. It seems to be always set in rate. */
43 #define RX_PPDU_START_RATE_FLAG BIT(3)
44
45 -enum rx_ppdu_start_rate {
46 - RX_PPDU_START_RATE_OFDM_48M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_OFDM_48M,
47 - RX_PPDU_START_RATE_OFDM_24M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_OFDM_24M,
48 - RX_PPDU_START_RATE_OFDM_12M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_OFDM_12M,
49 - RX_PPDU_START_RATE_OFDM_6M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_OFDM_6M,
50 - RX_PPDU_START_RATE_OFDM_54M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_OFDM_54M,
51 - RX_PPDU_START_RATE_OFDM_36M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_OFDM_36M,
52 - RX_PPDU_START_RATE_OFDM_18M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_OFDM_18M,
53 - RX_PPDU_START_RATE_OFDM_9M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_OFDM_9M,
54 -
55 - RX_PPDU_START_RATE_CCK_LP_11M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_CCK_LP_11M,
56 - RX_PPDU_START_RATE_CCK_LP_5_5M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_CCK_LP_5_5M,
57 - RX_PPDU_START_RATE_CCK_LP_2M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_CCK_LP_2M,
58 - RX_PPDU_START_RATE_CCK_LP_1M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_CCK_LP_1M,
59 - RX_PPDU_START_RATE_CCK_SP_11M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_CCK_SP_11M,
60 - RX_PPDU_START_RATE_CCK_SP_5_5M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_CCK_SP_5_5M,
61 - RX_PPDU_START_RATE_CCK_SP_2M = RX_PPDU_START_RATE_FLAG | ATH10K_HW_RATE_CCK_SP_2M,
62 -};
63 -
64 struct rx_ppdu_start {
65 struct {
66 u8 pri20_mhz;