mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 11:33:58 -04:00
staging: rtl8723bs: Remove function pointer UpdateRAMaskHandler
Remove function pointer UpdateRAMaskHandler and use UpdateHalRAMask8723B directly to increase readability. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/6e11b767faf44c2e95a05f3e1326d9cc382dcebd.1730749680.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7c8a7d2f88
commit
6ec895d2f3
@@ -221,8 +221,7 @@ void rtw_hal_update_ra_mask(struct sta_info *psta, u8 rssi_level)
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
add_RATid(padapter, psta, rssi_level);
|
||||
else {
|
||||
if (padapter->HalFunc.UpdateRAMaskHandler)
|
||||
padapter->HalFunc.UpdateRAMaskHandler(padapter, psta->mac_id, rssi_level);
|
||||
UpdateHalRAMask8723B(padapter, psta->mac_id, rssi_level);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1704,7 +1704,7 @@ static void hal_notch_filter_8723b(struct adapter *adapter, bool enable)
|
||||
rtw_write8(adapter, rOFDM0_RxDSP+1, rtw_read8(adapter, rOFDM0_RxDSP+1) & ~BIT1);
|
||||
}
|
||||
|
||||
static void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
|
||||
void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
|
||||
{
|
||||
u32 mask, rate_bitmap;
|
||||
u8 shortGIrate = false;
|
||||
@@ -1744,8 +1744,6 @@ static void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_l
|
||||
|
||||
void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
|
||||
{
|
||||
pHalFunc->UpdateRAMaskHandler = &UpdateHalRAMask8723B;
|
||||
|
||||
pHalFunc->set_channel_handler = &PHY_SwChnl8723B;
|
||||
pHalFunc->set_chnl_bw_handler = &PHY_SetSwChnlBWMode8723B;
|
||||
|
||||
|
||||
@@ -172,7 +172,6 @@ struct hal_ops {
|
||||
|
||||
void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet);
|
||||
|
||||
void (*UpdateRAMaskHandler)(struct adapter *padapter, u32 mac_id, u8 rssi_level);
|
||||
void (*SetBeaconRelatedRegistersHandler)(struct adapter *padapter);
|
||||
|
||||
void (*Add_RateATid)(struct adapter *padapter, u32 bitmap, u8 *arg, u8 rssi_level);
|
||||
@@ -308,4 +307,5 @@ void GetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val);
|
||||
void SetHwRegWithBuf8723B(struct adapter *padapter, u8 variable, u8 *pbuf, int len);
|
||||
u8 GetHalDefVar8723BSDIO(struct adapter *Adapter, enum hal_def_variable eVariable, void *pValue);
|
||||
u8 SetHalDefVar8723BSDIO(struct adapter *Adapter, enum hal_def_variable eVariable, void *pValue);
|
||||
void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level);
|
||||
#endif /* __HAL_INTF_H__ */
|
||||
|
||||
Reference in New Issue
Block a user