Commit a15a46a7 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Kill off HW_VAR_CAM_EMPTY_ENTRY and some function layers wrapping it

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b8e99163
...@@ -478,11 +478,6 @@ unsigned int decide_wait_for_beacon_timeout23a(unsigned int bcn_interval) ...@@ -478,11 +478,6 @@ unsigned int decide_wait_for_beacon_timeout23a(unsigned int bcn_interval)
return bcn_interval << 2; return bcn_interval << 2;
} }
void CAM_empty_entry23a(struct rtw_adapter *Adapter, u8 ucIndex)
{
rtw_hal_set_hwreg23a(Adapter, HW_VAR_CAM_EMPTY_ENTRY, (u8 *)(&ucIndex));
}
void invalidate_cam_all23a(struct rtw_adapter *padapter) void invalidate_cam_all23a(struct rtw_adapter *padapter)
{ {
rtl8723a_cam_invalid_all(padapter); rtl8723a_cam_invalid_all(padapter);
......
...@@ -670,11 +670,13 @@ void rtl8723a_cam_empty_entry(struct rtw_adapter *padapter, u8 ucIndex) ...@@ -670,11 +670,13 @@ void rtl8723a_cam_empty_entry(struct rtw_adapter *padapter, u8 ucIndex)
/* delay_ms(40); */ /* delay_ms(40); */
rtw_write32(padapter, WCAMI, ulContent); rtw_write32(padapter, WCAMI, ulContent);
/* RT_TRACE(COMP_SEC, DBG_LOUD, /* RT_TRACE(COMP_SEC, DBG_LOUD,
("CAM_empty_entry23a(): WRITE A4: %lx \n", ulContent));*/ ("rtl8723a_cam_empty_entry(): WRITE A4: %lx \n",
ulContent));*/
/* delay_ms(40); */ /* delay_ms(40); */
rtw_write32(padapter, RWCAM, ulCommand); rtw_write32(padapter, RWCAM, ulCommand);
/* RT_TRACE(COMP_SEC, DBG_LOUD, /* RT_TRACE(COMP_SEC, DBG_LOUD,
("CAM_empty_entry23a(): WRITE A0: %lx \n", ulCommand));*/ ("rtl8723a_cam_empty_entry(): WRITE A0: %lx \n",
ulCommand));*/
} }
} }
......
...@@ -11232,8 +11232,10 @@ void HALBT_RemoveKey(struct rtw_adapter *padapter, u8 EntryNum) ...@@ -11232,8 +11232,10 @@ void HALBT_RemoveKey(struct rtw_adapter *padapter, u8 EntryNum)
if (pBTinfo->BtAsocEntry[EntryNum].HwCAMIndex != 0) { if (pBTinfo->BtAsocEntry[EntryNum].HwCAMIndex != 0) {
/* ToDo : add New HALBT_RemoveKey function !! */ /* ToDo : add New HALBT_RemoveKey function !! */
if (pBtAssocEntry->HwCAMIndex >= BT_HWCAM_STAR && pBtAssocEntry->HwCAMIndex < HALF_CAM_ENTRY) if (pBtAssocEntry->HwCAMIndex >= BT_HWCAM_STAR &&
CAM_empty_entry23a(padapter, pBtAssocEntry->HwCAMIndex); pBtAssocEntry->HwCAMIndex < HALF_CAM_ENTRY)
rtl8723a_cam_empty_entry(padapter,
pBtAssocEntry->HwCAMIndex);
pBTinfo->BtAsocEntry[EntryNum].HwCAMIndex = 0; pBTinfo->BtAsocEntry[EntryNum].HwCAMIndex = 0;
} }
} }
......
...@@ -3157,10 +3157,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val) ...@@ -3157,10 +3157,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
rtl8723a_odm_support_ability_clr(padapter, *val32); rtl8723a_odm_support_ability_clr(padapter, *val32);
break; break;
case HW_VAR_CAM_EMPTY_ENTRY:
rtl8723a_cam_empty_entry(padapter, *val);
break;
case HW_VAR_CAM_WRITE: case HW_VAR_CAM_WRITE:
rtl8723a_cam_write(padapter, val32[0], val32[1]); rtl8723a_cam_write(padapter, val32[0], val32[1]);
break; break;
......
...@@ -44,7 +44,6 @@ enum HW_VARIABLES { ...@@ -44,7 +44,6 @@ enum HW_VARIABLES {
HW_VAR_DM_FUNC_OP, HW_VAR_DM_FUNC_OP,
HW_VAR_DM_FUNC_SET, HW_VAR_DM_FUNC_SET,
HW_VAR_DM_FUNC_CLR, HW_VAR_DM_FUNC_CLR,
HW_VAR_CAM_EMPTY_ENTRY,
HW_VAR_CAM_WRITE, HW_VAR_CAM_WRITE,
HW_VAR_CAM_READ, HW_VAR_CAM_READ,
HW_VAR_AC_PARAM_VO, HW_VAR_AC_PARAM_VO,
......
...@@ -500,7 +500,6 @@ void write_cam23a(struct rtw_adapter *padapter, u8 entry, u16 ctrl, ...@@ -500,7 +500,6 @@ void write_cam23a(struct rtw_adapter *padapter, u8 entry, u16 ctrl,
void clear_cam_entry23a(struct rtw_adapter *padapter, u8 entry); void clear_cam_entry23a(struct rtw_adapter *padapter, u8 entry);
void invalidate_cam_all23a(struct rtw_adapter *padapter); void invalidate_cam_all23a(struct rtw_adapter *padapter);
void CAM_empty_entry23a(struct rtw_adapter *Adapter, u8 ucIndex);
int allocate_fw_sta_entry23a(struct rtw_adapter *padapter); int allocate_fw_sta_entry23a(struct rtw_adapter *padapter);
void flush_all_cam_entry23a(struct rtw_adapter *padapter); void flush_all_cam_entry23a(struct rtw_adapter *padapter);
......
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