staging: rtl8723au: update_TSF() remove unused argument and move to rtw_mlme_ext.c
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 15 Apr 2014 17:44:28 +0000 (19:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2014 18:04:06 +0000 (11:04 -0700)
This is only called from rtw_mlme_ext.c, so move it that and declare
it static.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/core/rtw_wlan_util.c

index cb341529a1f35189f672cdfd14123af641b99cc5..2a3d3f7527c91259f99a5ff486855864ba50dede 100644 (file)
@@ -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)
index bf53973b2204e18da5288349fe2e396fca370881..8824dd4fb55d18bf731ce23e8498f991ccf09db3 100644 (file)
@@ -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);
This page took 0.027864 seconds and 5 git commands to generate.