staging: rtl8723bs: Replace function beacon_timing_control()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Thu, 25 Jul 2019 05:26:42 +0000 (10:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 07:59:39 +0000 (09:59 +0200)
Remove function beacon_timing_control as it does nothing except call
rtw_hal_bcn_related_reg_setting.
Rename rtw_hal_bcn_related_reg_setting to beacon_timing_control to
maintain compatibility with call site.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190725052645.2372-6-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_wlan_util.c
drivers/staging/rtl8723bs/hal/hal_intf.c
drivers/staging/rtl8723bs/include/hal_intf.h
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h

index 76c50377f0feb32acabd128ab7c5e7b6e77501cf..d78fbbc98fa2ffcbb2b4b6f1e4e61e2b9d66f501 100644 (file)
@@ -1996,11 +1996,6 @@ void adaptive_early_32k(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len)
        }
 }
 
-void beacon_timing_control(struct adapter *padapter)
-{
-       rtw_hal_bcn_related_reg_setting(padapter);
-}
-
 void rtw_alloc_macid(struct adapter *padapter, struct sta_info *psta)
 {
        int i;
index acb25978a46c39053beede1553e7752b9cacb953..7d8f21f32fb9350e2c8007a952238e68babf2615 100644 (file)
@@ -369,7 +369,7 @@ void rtw_hal_dm_watchdog_in_lps(struct adapter *padapter)
        }
 }
 
-void rtw_hal_bcn_related_reg_setting(struct adapter *padapter)
+void beacon_timing_control(struct adapter *padapter)
 {
        if (padapter->HalFunc.SetBeaconRelatedRegistersHandler)
                padapter->HalFunc.SetBeaconRelatedRegistersHandler(padapter);
index 3a0c3d079d507c9ba22a7f2480013dde0f00f98e..24926ebaf950fb7e1733fdf638a978a4e798082e 100644 (file)
@@ -362,7 +362,7 @@ void rtw_hal_add_ra_tid(struct adapter *padapter, u32 bitmap, u8 *arg, u8 rssi_l
 void rtw_hal_start_thread(struct adapter *padapter);
 void rtw_hal_stop_thread(struct adapter *padapter);
 
-void rtw_hal_bcn_related_reg_setting(struct adapter *padapter);
+void beacon_timing_control(struct adapter *padapter);
 
 u32 rtw_hal_read_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask);
 void rtw_hal_write_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data);
index 70cd8c0e3641968123b29f8215742912a07beb64..fd3cf955c9f8a9975207dd111f04e946e35f57f1 100644 (file)
@@ -650,7 +650,6 @@ void report_del_sta_event(struct adapter *padapter, unsigned char* MacAddr, unsi
 void report_add_sta_event(struct adapter *padapter, unsigned char* MacAddr, int cam_idx);
 void report_wmm_edca_update(struct adapter *padapter);
 
-void beacon_timing_control(struct adapter *padapter);
 u8 chk_bmc_sleepq_cmd(struct adapter *padapter);
 extern u8 set_tx_beacon_cmd(struct adapter *padapter);
 unsigned int setup_beacon_frame(struct adapter *padapter, unsigned char *beacon_frame);