| .. | .. |
|---|
| 145 | 145 | return m; |
|---|
| 146 | 146 | } |
|---|
| 147 | 147 | |
|---|
| 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 | + |
|---|
| 148 | 165 | /* return the bitmap weight from the all/upper/lower bins */ |
|---|
| 149 | 166 | static inline u8 spectral_bitmap_weight(u8 *bins) |
|---|
| 150 | 167 | { |
|---|