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