staging: rtl8723au: Disentangle beacon register settings from the HAL wrappers
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:04:10 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:25 +0000 (11:34 -0700)
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
drivers/staging/rtl8723au/hal/hal_intf.c
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
drivers/staging/rtl8723au/include/hal_intf.h
drivers/staging/rtl8723au/include/rtl8723a_hal.h
drivers/staging/rtl8723au/include/rtw_mlme_ext.h

index 9d40b08dd19fcf6001114c1e9ad63d3568d813c4..1172fe9362a8ceb291dbcccc881870ab184d15b3 100644 (file)
@@ -4674,7 +4674,7 @@ void start_create_ibss23a(struct rtw_adapter* padapter)
                /* SelectChannel23a(padapter, pmlmeext->cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE); */
                set_channel_bwmode23a(padapter, pmlmeext->cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
 
-               beacon_timing_control23a(padapter);
+               rtl8723a_SetBeaconRelatedRegisters(padapter);
 
                /* set msr to WIFI_FW_ADHOC_STATE */
                pmlmeinfo->state = WIFI_FW_ADHOC_STATE;
@@ -4752,7 +4752,7 @@ void start_clnt_join23a(struct rtw_adapter* padapter)
                /* switch channel */
                set_channel_bwmode23a(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
 
-               beacon_timing_control23a(padapter);
+               rtl8723a_SetBeaconRelatedRegisters(padapter);
 
                pmlmeinfo->state = WIFI_FW_ADHOC_STATE;
 
index affb067642528a0bb8f3c9fe80953b1acf87235b..6dc7d068b6bd082e6d94cdb2e694a27cb4e9d6a7 100644 (file)
@@ -1683,11 +1683,6 @@ void process_addba_req23a(struct rtw_adapter *padapter,
        }
 }
 
-void beacon_timing_control23a(struct rtw_adapter *padapter)
-{
-       rtw_hal_bcn_related_reg_setting23a(padapter);
-}
-
 static struct rtw_adapter *pbuddy_padapter;
 
 int rtw_handle_dualmac23a(struct rtw_adapter *adapter, bool init)
index 9ee4df640a649faac0a1fe5e553d26bc9ab49273..251722bfda89c4cf973b9d147b92c318a7e85b80 100644 (file)
@@ -196,9 +196,3 @@ s32 rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter)
                return padapter->HalFunc.interrupt_handler(padapter);
        return _FAIL;
 }
-
-void rtw_hal_bcn_related_reg_setting23a(struct rtw_adapter *padapter)
-{
-       if (padapter->HalFunc.SetBeaconRelatedRegistersHandler)
-               padapter->HalFunc.SetBeaconRelatedRegistersHandler(padapter);
-}
index 7a40cb102575379ead047706f0f1738650271c32..1991e765bfc11227a2e1ddf134bd7541fa05ca78 100644 (file)
@@ -1522,7 +1522,7 @@ static void _BeaconFunctionEnable(struct rtw_adapter *padapter, u8 Enable,
        rtw_write8(padapter, REG_RD_CTRL + 1, 0x6F);
 }
 
-static void rtl8723a_SetBeaconRelatedRegisters(struct rtw_adapter *padapter)
+void rtl8723a_SetBeaconRelatedRegisters(struct rtw_adapter *padapter)
 {
        u32 value32;
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
@@ -1706,9 +1706,6 @@ exit:
 
 void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
 {
-       pHalFunc->SetBeaconRelatedRegistersHandler =
-               &rtl8723a_SetBeaconRelatedRegisters;
-
        pHalFunc->Add_RateATid = &rtl8723a_add_rateatid;
 
        /*  Efuse related function */
index 7dfd42b0a1f06d961a9cdded7d253f112fc97fdb..8e2ed156fc6fb15d9265c8139b434d77514b3fbe 100644 (file)
@@ -93,7 +93,6 @@ struct hal_ops {
 
        void (*UpdateRAMaskHandler)(struct rtw_adapter *padapter,
                                    u32 mac_id, u8 rssi_level);
-       void (*SetBeaconRelatedRegistersHandler)(struct rtw_adapter *padapter);
 
        void (*Add_RateATid)(struct rtw_adapter *padapter, u32 bitmap,
                             u8 arg, u8 rssi_level);
@@ -207,8 +206,6 @@ void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level);
 void   rtw_hal_add_ra_tid23a(struct rtw_adapter *padapter, u32 bitmap, u8 arg, u8 rssi_level);
 void   rtw_hal_clone_data(struct rtw_adapter *dst_padapter, struct rtw_adapter *src_padapter);
 
-void rtw_hal_bcn_related_reg_setting23a(struct rtw_adapter *padapter);
-
 s32    rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter);
 
 void hw_var_set_correct_tsf(struct rtw_adapter *padapter);
index a1045ab0e1b0d555a714a5f3e57dee32ba517fbe..5ee9fb711630b3fbe877eb87aba2512845af22a9 100644 (file)
@@ -549,5 +549,6 @@ s32 c2h_handler_8723a(struct rtw_adapter *padapter, struct c2h_evt_hdr *c2h_evt)
 void rtl8723a_read_adapter_info(struct rtw_adapter *Adapter);
 void rtl8723a_read_chip_version(struct rtw_adapter *padapter);
 void rtl8723a_notch_filter(struct rtw_adapter *adapter, bool enable);
+void rtl8723a_SetBeaconRelatedRegisters(struct rtw_adapter *padapter);
 
 #endif
index d185748ecd091df324478ffd513d5d837deb15d7..b2036998b61e4c5673da5d6a96f38df3ec231ee5 100644 (file)
@@ -567,7 +567,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter,
 void report_add_sta_event23a(struct rtw_adapter *padapter,
                          unsigned char *MacAddr, int cam_idx);
 
-void beacon_timing_control23a(struct rtw_adapter *padapter);
 u8 set_tx_beacon_cmd23a(struct rtw_adapter*padapter);
 unsigned int setup_beacon_frame(struct rtw_adapter *padapter,
                                unsigned char *beacon_frame);