mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-30 07:53:39 +00:00
8576d2647a
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
72 lines
1.1 KiB
C
72 lines
1.1 KiB
C
#include "mp_precomp.h"
|
|
#include "phydm_precomp.h"
|
|
|
|
#if (defined(CONFIG_BB_TXBF_API))
|
|
u8 beamforming_get_htndp_tx_rate(
|
|
void *p_dm_void,
|
|
u8 comp_steering_num_of_bfer
|
|
)
|
|
{
|
|
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
|
u8 nr_index = 0;
|
|
u8 ndp_tx_rate;
|
|
/*Find nr*/
|
|
nr_index = tx_bf_nr(1, comp_steering_num_of_bfer);
|
|
|
|
switch (nr_index) {
|
|
case 1:
|
|
ndp_tx_rate = ODM_MGN_MCS8;
|
|
break;
|
|
|
|
case 2:
|
|
ndp_tx_rate = ODM_MGN_MCS16;
|
|
break;
|
|
|
|
case 3:
|
|
ndp_tx_rate = ODM_MGN_MCS24;
|
|
break;
|
|
|
|
default:
|
|
ndp_tx_rate = ODM_MGN_MCS8;
|
|
break;
|
|
}
|
|
|
|
return ndp_tx_rate;
|
|
|
|
}
|
|
|
|
u8
|
|
beamforming_get_vht_ndp_tx_rate(
|
|
void *p_dm_void,
|
|
u8 comp_steering_num_of_bfer
|
|
)
|
|
{
|
|
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
|
u8 nr_index = 0;
|
|
u8 ndp_tx_rate;
|
|
/*Find nr*/
|
|
nr_index = tx_bf_nr(1, comp_steering_num_of_bfer);
|
|
|
|
switch (nr_index) {
|
|
case 1:
|
|
ndp_tx_rate = ODM_MGN_VHT2SS_MCS0;
|
|
break;
|
|
|
|
case 2:
|
|
ndp_tx_rate = ODM_MGN_VHT3SS_MCS0;
|
|
break;
|
|
|
|
case 3:
|
|
ndp_tx_rate = ODM_MGN_VHT4SS_MCS0;
|
|
break;
|
|
|
|
default:
|
|
ndp_tx_rate = ODM_MGN_VHT2SS_MCS0;
|
|
break;
|
|
}
|
|
|
|
return ndp_tx_rate;
|
|
|
|
}
|
|
|
|
#endif
|