Commit 21b044c9 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: remove unused parameter from update_TSF()



The parameter 'len' of update_TSF() is unused. Remove it.

Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220715062908.8547-4-straube.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0f83ff01
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -582,7 +582,7 @@ unsigned int OnBeacon(struct adapter *padapter, struct recv_frame *precv_frame)
			pmlmeinfo->assoc_AP_vendor = check_assoc_AP(pframe + sizeof(struct ieee80211_hdr_3addr), len - sizeof(struct ieee80211_hdr_3addr));

			/* update TSF Value */
			update_TSF(pmlmeext, pframe, len);
			update_TSF(pmlmeext, pframe);

			/* start auth */
			start_clnt_auth(padapter);
@@ -625,7 +625,7 @@ unsigned int OnBeacon(struct adapter *padapter, struct recv_frame *precv_frame)
				}

				/* update TSF Value */
				update_TSF(pmlmeext, pframe, len);
				update_TSF(pmlmeext, pframe);

				/* report sta add event */
				report_add_sta_event(padapter, GetAddr2Ptr(pframe), cam_idx);
+1 −1
Original line number Diff line number Diff line
@@ -1571,7 +1571,7 @@ int update_sta_support_rate(struct adapter *padapter, u8 *pvar_ie, uint var_ie_l
	return _SUCCESS;
}

void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len)
void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe)
{
	u8 *pIE;
	__le32 *pbuf;
+1 −1
Original line number Diff line number Diff line
@@ -596,7 +596,7 @@ void addba_timer_hdl(struct sta_info *psta);
bool cckrates_included(unsigned char *rate, int ratelen);
bool cckratesonly_included(unsigned char *rate, int ratelen);

void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len);
void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe);
void correct_TSF(struct adapter *padapter);

struct cmd_hdl {