Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions hal/phydm/phydm_mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,25 +363,34 @@ void phydm_mp_set_single_tone(void *dm_void, boolean is_single_tone, u8 path)
{
struct dm_struct *dm = (struct dm_struct *)dm_void;

if (dm->support_ic_type & ODM_IC_JGR3_SERIES)
if (dm->support_ic_type & ODM_IC_JGR3_SERIES) {
#ifdef PHYDM_IC_JGR3_SERIES_SUPPORT
phydm_mp_set_single_tone_jgr3(dm, is_single_tone, path);
#endif
}
}

void phydm_mp_set_carrier_supp(void *dm_void, boolean is_carrier_supp,
u32 rate_index)
{
struct dm_struct *dm = (struct dm_struct *)dm_void;

if (dm->support_ic_type & ODM_IC_JGR3_SERIES)
if (dm->support_ic_type & ODM_IC_JGR3_SERIES) {
#ifdef PHYDM_IC_JGR3_SERIES_SUPPORT
phydm_mp_set_carrier_supp_jgr3(dm, is_carrier_supp, rate_index);
#endif
}
}

void phydm_mp_set_single_carrier(void *dm_void, boolean is_single_carrier)
{
struct dm_struct *dm = (struct dm_struct *)dm_void;

if (dm->support_ic_type & ODM_IC_JGR3_SERIES)
if (dm->support_ic_type & ODM_IC_JGR3_SERIES) {
#ifdef PHYDM_IC_JGR3_SERIES_SUPPORT
phydm_mp_set_single_carrier_jgr3(dm, is_single_carrier);
#endif
}
}
void phydm_mp_reset_rx_counters_phy(void *dm_void)
{
Expand All @@ -394,15 +403,21 @@ void phydm_mp_get_tx_ok(void *dm_void, u32 rate_index)
{
struct dm_struct *dm = (struct dm_struct *)dm_void;

if (dm->support_ic_type & ODM_IC_JGR3_SERIES)
if (dm->support_ic_type & ODM_IC_JGR3_SERIES) {
#ifdef PHYDM_IC_JGR3_SERIES_SUPPORT
phydm_mp_get_tx_ok_jgr3(dm, rate_index);
#endif
}
}

void phydm_mp_get_rx_ok(void *dm_void)
{
struct dm_struct *dm = (struct dm_struct *)dm_void;

if (dm->support_ic_type & ODM_IC_JGR3_SERIES)
if (dm->support_ic_type & ODM_IC_JGR3_SERIES) {
#ifdef PHYDM_IC_JGR3_SERIES_SUPPORT
phydm_mp_get_rx_ok_jgr3(dm);
#endif
}
}
#endif