Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e959699 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: update_TSF() remove unused argument and move to rtw_mlme_ext.c



This is only called from rtw_mlme_ext.c, so move it that and declare
it static.

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 04fad92a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -249,6 +249,11 @@ static struct fwevent wlanevents[] =
};


static void rtw_correct_TSF(struct rtw_adapter *padapter)
{
	hw_var_set_correct_tsf(padapter);
}

static void
rtw_update_TSF(struct mlme_ext_priv *pmlmeext, struct ieee80211_mgmt *mgmt)
{
@@ -5472,7 +5477,7 @@ void mlmeext_joinbss_event_callback23a(struct rtw_adapter *padapter, int join_re

	if ((pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE) {
		/*  correcting TSF */
		correct_TSF23a(padapter, pmlmeext);
		rtw_correct_TSF(padapter);

		/* set_link_timer(pmlmeext, DISCONNECT_TO); */
	}
@@ -5499,7 +5504,7 @@ void mlmeext_sta_add_event_callback23a(struct rtw_adapter *padapter, struct sta_
		else/* adhoc client */
		{
			/*  correcting TSF */
			correct_TSF23a(padapter, pmlmeext);
			rtw_correct_TSF(padapter);

			/* start beacon */
			if (send_beacon23a(padapter) == _FAIL)
+0 −6
Original line number Diff line number Diff line
@@ -1643,12 +1643,6 @@ void process_addba_req23a(struct rtw_adapter *padapter, u8 *paddba_req, u8 *addr
	}
}

void correct_TSF23a(struct rtw_adapter *padapter,
		    struct mlme_ext_priv *pmlmeext)
{
	hw_var_set_correct_tsf(padapter);
}

void beacon_timing_control23a(struct rtw_adapter *padapter)
{
	rtw_hal_bcn_related_reg_setting23a(padapter);