Lines Matching refs:rate
82 void rtw_desc_to_mcsrate(u16 rate, u8 *mcs, u8 *nss)
84 if (rate <= DESC_RATE54M)
87 if (rate >= DESC_RATEVHT1SS_MCS0 &&
88 rate <= DESC_RATEVHT1SS_MCS9) {
90 *mcs = rate - DESC_RATEVHT1SS_MCS0;
91 } else if (rate >= DESC_RATEVHT2SS_MCS0 &&
92 rate <= DESC_RATEVHT2SS_MCS9) {
94 *mcs = rate - DESC_RATEVHT2SS_MCS0;
95 } else if (rate >= DESC_RATEVHT3SS_MCS0 &&
96 rate <= DESC_RATEVHT3SS_MCS9) {
98 *mcs = rate - DESC_RATEVHT3SS_MCS0;
99 } else if (rate >= DESC_RATEVHT4SS_MCS0 &&
100 rate <= DESC_RATEVHT4SS_MCS9) {
102 *mcs = rate - DESC_RATEVHT4SS_MCS0;
103 } else if (rate >= DESC_RATEMCS0 &&
104 rate <= DESC_RATEMCS15) {
105 *mcs = rate - DESC_RATEMCS0;