Commit 8a6f555f authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: Call bandwidth and channel setting handlers directly

parent 82ccb597
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ void SelectChannel23a(struct rtw_adapter *padapter, unsigned char channel)
	/* saved channel info */
	rtw_set_oper_ch23a(padapter, channel);

	rtw_hal_set_chan23a(padapter, channel);
	PHY_SwChnl8723A(padapter, channel);

	mutex_unlock(&adapter_to_dvobj(padapter)->setch_mutex);
}
@@ -348,7 +348,7 @@ void SetBWMode23a(struct rtw_adapter *padapter, unsigned short bwmode, unsigned
	rtw_set_oper_bw23a(padapter, bwmode);
	rtw_set_oper_ch23aoffset23a(padapter, channel_offset);

	rtw_hal_set_bwmode23a(padapter, (enum ht_channel_width)bwmode,
	PHY_SetBWMode23a8723A(padapter, (enum ht_channel_width)bwmode,
			      channel_offset);

	mutex_unlock(&adapter_to_dvobj(padapter)->setbw_mutex);
@@ -386,7 +386,7 @@ void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel,
	rtw_set_oper_bw23a(padapter, bwmode);
	rtw_set_oper_ch23aoffset23a(padapter, channel_offset);

	rtw_hal_set_chan23a(padapter, center_ch); /*  set center channel */
	PHY_SwChnl8723A(padapter, center_ch); /*  set center channel */

	mutex_unlock(&adapter_to_dvobj(padapter)->setch_mutex);

+0 −14
Original line number Diff line number Diff line
@@ -197,20 +197,6 @@ s32 rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter)
	return _FAIL;
}

void	rtw_hal_set_bwmode23a(struct rtw_adapter *padapter,
			   enum ht_channel_width Bandwidth, u8 offset)
{
	if (padapter->HalFunc.set_bwmode_handler)
		padapter->HalFunc.set_bwmode_handler(padapter, Bandwidth,
						     offset);
}

void	rtw_hal_set_chan23a(struct rtw_adapter *padapter, u8 channel)
{
	if (padapter->HalFunc.set_channel_handler)
		padapter->HalFunc.set_channel_handler(padapter, channel);
}

void rtw_hal_bcn_related_reg_setting23a(struct rtw_adapter *padapter)
{
	if (padapter->HalFunc.SetBeaconRelatedRegistersHandler)
+0 −3
Original line number Diff line number Diff line
@@ -1706,9 +1706,6 @@ s32 c2h_handler_8723a(struct rtw_adapter *padapter, struct c2h_evt_hdr *c2h_evt)

void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
{
	pHalFunc->set_bwmode_handler = &PHY_SetBWMode23a8723A;
	pHalFunc->set_channel_handler = &PHY_SwChnl8723A;

	pHalFunc->SetBeaconRelatedRegistersHandler =
		&rtl8723a_SetBeaconRelatedRegisters;

+0 −7
Original line number Diff line number Diff line
@@ -76,9 +76,6 @@ struct hal_ops {
	void (*enable_interrupt)(struct rtw_adapter *padapter);
	void (*disable_interrupt)(struct rtw_adapter *padapter);
	s32 (*interrupt_handler)(struct rtw_adapter *padapter);
	void (*set_bwmode_handler)(struct rtw_adapter *padapter,
				   enum ht_channel_width Bandwidth, u8 Offset);
	void (*set_channel_handler)(struct rtw_adapter *padapter, u8 channel);

	u8 (*GetHalDefVarHandler)(struct rtw_adapter *padapter,
				  enum hal_def_variable eVariable,
@@ -214,10 +211,6 @@ void rtw_hal_bcn_related_reg_setting23a(struct rtw_adapter *padapter);

s32	rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter);

void	rtw_hal_set_bwmode23a(struct rtw_adapter *padapter,
			   enum ht_channel_width Bandwidth, u8 Offset);
void	rtw_hal_set_chan23a(struct rtw_adapter *padapter, u8 channel);

void hw_var_set_correct_tsf(struct rtw_adapter *padapter);
void hw_var_set_mlme_disconnect(struct rtw_adapter *padapter);
void hw_var_set_opmode(struct rtw_adapter *padapter, u8 mode);