Commit 828f2e9d authored by Martin Kaiser's avatar Martin Kaiser Committed by Greg Kroah-Hartman

staging: r8188eu: ODM_BB_CCK_PD is always set

The ODM_BB_CCK_PD flag is always set.

Remove the flag and the check if ODM_BB_CCK_PD is not set.
Signed-off-by: default avatarMartin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220108124959.313215-4-martin@kaiser.cxSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dbc04d27
...@@ -416,8 +416,6 @@ static void odm_CCKPacketDetectionThresh(struct odm_dm_struct *pDM_Odm) ...@@ -416,8 +416,6 @@ static void odm_CCKPacketDetectionThresh(struct odm_dm_struct *pDM_Odm)
u8 CurCCK_CCAThres; u8 CurCCK_CCAThres;
struct false_alarm_stats *FalseAlmCnt = &pDM_Odm->FalseAlmCnt; struct false_alarm_stats *FalseAlmCnt = &pDM_Odm->FalseAlmCnt;
if (!(pDM_Odm->SupportAbility & ODM_BB_CCK_PD))
return;
if (pDM_Odm->bLinked) { if (pDM_Odm->bLinked) {
if (pDM_Odm->RSSI_Min > 25) { if (pDM_Odm->RSSI_Min > 25) {
CurCCK_CCAThres = 0xcd; CurCCK_CCAThres = 0xcd;
......
...@@ -54,7 +54,6 @@ static void Update_ODM_ComInfo_88E(struct adapter *Adapter) ...@@ -54,7 +54,6 @@ static void Update_ODM_ComInfo_88E(struct adapter *Adapter)
int i; int i;
pdmpriv->InitODMFlag = ODM_BB_RSSI_MONITOR | pdmpriv->InitODMFlag = ODM_BB_RSSI_MONITOR |
ODM_BB_CCK_PD |
ODM_RF_CALIBRATION | ODM_RF_CALIBRATION |
ODM_RF_TX_PWR_TRACK; ODM_RF_TX_PWR_TRACK;
if (hal_data->AntDivCfg) if (hal_data->AntDivCfg)
......
...@@ -149,7 +149,6 @@ enum odm_common_info_def { ...@@ -149,7 +149,6 @@ enum odm_common_info_def {
enum odm_ability_def { enum odm_ability_def {
/* BB ODM section BIT 0-15 */ /* BB ODM section BIT 0-15 */
ODM_BB_RSSI_MONITOR = BIT(4), ODM_BB_RSSI_MONITOR = BIT(4),
ODM_BB_CCK_PD = BIT(5),
ODM_BB_ANT_DIV = BIT(6), ODM_BB_ANT_DIV = BIT(6),
ODM_BB_PWR_TRA = BIT(8), ODM_BB_PWR_TRA = BIT(8),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment