staging: rtl8723bs: remove function pointer fill_h2c_cmd
Remove function pointer fill_h2c_cmd and use FillH2CCmd8723B directly to reduce code complexity. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20250715182814.212708-7-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
206d5db123
commit
8757b8dd63
@@ -346,10 +346,5 @@ s32 rtw_hal_macid_wakeup(struct adapter *padapter, u32 macid)
|
||||
|
||||
s32 rtw_hal_fill_h2c_cmd(struct adapter *padapter, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer)
|
||||
{
|
||||
s32 ret = _FAIL;
|
||||
|
||||
if (padapter->HalFunc.fill_h2c_cmd)
|
||||
ret = padapter->HalFunc.fill_h2c_cmd(padapter, ElementID, CmdLen, pCmdBuffer);
|
||||
|
||||
return ret;
|
||||
return FillH2CCmd8723B(padapter, ElementID, CmdLen, pCmdBuffer);
|
||||
}
|
||||
|
||||
@@ -1318,8 +1318,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
|
||||
pHalFunc->xmit_thread_handler = &hal_xmit_handler;
|
||||
|
||||
pHalFunc->c2h_id_filter_ccx = c2h_id_filter_ccx_8723b;
|
||||
|
||||
pHalFunc->fill_h2c_cmd = &FillH2CCmd8723B;
|
||||
}
|
||||
|
||||
void rtl8723b_InitAntenna_Selection(struct adapter *padapter)
|
||||
|
||||
@@ -164,8 +164,6 @@ struct hal_ops {
|
||||
s32 (*xmit_thread_handler)(struct adapter *padapter);
|
||||
void (*hal_reset_security_engine)(struct adapter *adapter);
|
||||
c2h_id_filter c2h_id_filter_ccx;
|
||||
|
||||
s32 (*fill_h2c_cmd)(struct adapter *, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer);
|
||||
};
|
||||
|
||||
#define RF_CHANGE_BY_INIT 0
|
||||
|
||||
Reference in New Issue
Block a user