Commit 6dd2b4ad authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: r8188eu: remove set_channel_handler from hal_ops

Remove set_channel_handler from hal_ops and remove its wrapper
rtw_hal_set_chan(). Call PHY_SwChnl8188E() directly instead.
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210906190223.11396-12-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f6557a0
...@@ -318,7 +318,7 @@ void SelectChannel(struct adapter *padapter, unsigned char channel) ...@@ -318,7 +318,7 @@ void SelectChannel(struct adapter *padapter, unsigned char channel)
{ {
/* saved channel info */ /* saved channel info */
rtw_set_oper_ch(padapter, channel); rtw_set_oper_ch(padapter, channel);
rtw_hal_set_chan(padapter, channel); PHY_SwChnl8188E(padapter, channel);
} }
void SetBWMode(struct adapter *padapter, unsigned short bwmode, void SetBWMode(struct adapter *padapter, unsigned short bwmode,
...@@ -359,7 +359,7 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne ...@@ -359,7 +359,7 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne
rtw_set_oper_bw(padapter, bwmode); rtw_set_oper_bw(padapter, bwmode);
rtw_set_oper_choffset(padapter, channel_offset); rtw_set_oper_choffset(padapter, channel_offset);
rtw_hal_set_chan(padapter, center_ch); /* set center channel */ PHY_SwChnl8188E(padapter, center_ch); /* set center channel */
SetBWMode(padapter, bwmode, channel_offset); SetBWMode(padapter, bwmode, channel_offset);
} }
......
...@@ -215,12 +215,6 @@ void rtw_hal_write_rfreg(struct adapter *adapt, enum rf_radio_path rfpath, ...@@ -215,12 +215,6 @@ void rtw_hal_write_rfreg(struct adapter *adapt, enum rf_radio_path rfpath,
bitmask, data); bitmask, data);
} }
void rtw_hal_set_chan(struct adapter *adapt, u8 channel)
{
if (adapt->HalFunc.set_channel_handler)
adapt->HalFunc.set_channel_handler(adapt, channel);
}
void rtw_hal_bcn_related_reg_setting(struct adapter *adapt) void rtw_hal_bcn_related_reg_setting(struct adapter *adapt)
{ {
if (adapt->HalFunc.SetBeaconRelatedRegistersHandler) if (adapt->HalFunc.SetBeaconRelatedRegistersHandler)
......
...@@ -1784,8 +1784,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) ...@@ -1784,8 +1784,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
{ {
pHalFunc->free_hal_data = &rtl8188e_free_hal_data; pHalFunc->free_hal_data = &rtl8188e_free_hal_data;
pHalFunc->set_channel_handler = &PHY_SwChnl8188E;
pHalFunc->Add_RateATid = &rtl8188e_Add_RateATid; pHalFunc->Add_RateATid = &rtl8188e_Add_RateATid;
pHalFunc->run_thread = &rtl8188e_start_thread; pHalFunc->run_thread = &rtl8188e_start_thread;
pHalFunc->cancel_thread = &rtl8188e_stop_thread; pHalFunc->cancel_thread = &rtl8188e_stop_thread;
......
...@@ -143,8 +143,6 @@ struct hal_ops { ...@@ -143,8 +143,6 @@ struct hal_ops {
s32 (*init_recv_priv)(struct adapter *padapter); s32 (*init_recv_priv)(struct adapter *padapter);
void (*free_recv_priv)(struct adapter *padapter); void (*free_recv_priv)(struct adapter *padapter);
void (*set_channel_handler)(struct adapter *padapter, u8 channel);
void (*SetHwRegHandler)(struct adapter *padapter, u8 variable, void (*SetHwRegHandler)(struct adapter *padapter, u8 variable,
u8 *val); u8 *val);
void (*GetHwRegHandler)(struct adapter *padapter, u8 variable, void (*GetHwRegHandler)(struct adapter *padapter, u8 variable,
...@@ -281,8 +279,6 @@ void rtw_hal_write_rfreg(struct adapter *padapter, ...@@ -281,8 +279,6 @@ void rtw_hal_write_rfreg(struct adapter *padapter,
enum rf_radio_path eRFPath, u32 RegAddr, enum rf_radio_path eRFPath, u32 RegAddr,
u32 BitMask, u32 Data); u32 BitMask, u32 Data);
void rtw_hal_set_chan(struct adapter *padapter, u8 channel);
u8 rtw_hal_antdiv_before_linked(struct adapter *padapter); u8 rtw_hal_antdiv_before_linked(struct adapter *padapter);
void rtw_hal_antdiv_rssi_compared(struct adapter *padapter, void rtw_hal_antdiv_rssi_compared(struct adapter *padapter,
struct wlan_bssid_ex *dst, struct wlan_bssid_ex *dst,
......
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