1
0

staging: rtl8723bs: remove function pointer c2h_id_filter

Remove function pointer c2h_id_filter from struct hal_ops and use
c2h_id_filter_ccx_8723b directly to reduce code complexity.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20250715182814.212708-11-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Michael Straube
2025-07-15 20:28:13 +02:00
committed by Greg Kroah-Hartman
parent 95e57a2780
commit 86dcc99669
3 changed files with 1 additions and 3 deletions

View File

@@ -303,7 +303,7 @@ s32 rtw_hal_c2h_handler(struct adapter *adapter, u8 *c2h_evt)
c2h_id_filter rtw_hal_c2h_id_filter_ccx(struct adapter *adapter)
{
return adapter->HalFunc.c2h_id_filter_ccx;
return c2h_id_filter_ccx_8723b;
}
s32 rtw_hal_macid_sleep(struct adapter *padapter, u32 macid)

View File

@@ -1315,7 +1315,6 @@ void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_level)
void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
{
pHalFunc->c2h_id_filter_ccx = c2h_id_filter_ccx_8723b;
}
void rtl8723b_InitAntenna_Selection(struct adapter *padapter)

View File

@@ -161,7 +161,6 @@ enum hal_intf_ps_func {
typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
struct hal_ops {
c2h_id_filter c2h_id_filter_ccx;
};
#define RF_CHANGE_BY_INIT 0