forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/net/wireless/ath/ath9k/common-spectral.h
....@@ -145,6 +145,23 @@
145145 return m;
146146 }
147147
148
+static inline u8 spectral_max_index_ht40(u8 *bins)
149
+{
150
+ u8 idx;
151
+
152
+ idx = spectral_max_index(bins, SPECTRAL_HT20_40_NUM_BINS);
153
+
154
+ /* positive values and zero are starting at the beginning
155
+ * of the data field.
156
+ */
157
+ return idx % (SPECTRAL_HT20_40_NUM_BINS / 2);
158
+}
159
+
160
+static inline u8 spectral_max_index_ht20(u8 *bins)
161
+{
162
+ return spectral_max_index(bins, SPECTRAL_HT20_NUM_BINS);
163
+}
164
+
148165 /* return the bitmap weight from the all/upper/lower bins */
149166 static inline u8 spectral_bitmap_weight(u8 *bins)
150167 {