staging: rtl8723au: Disentangle rtl8723a_add_rateatid() from HAL
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:04:11 +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_ap.c
drivers/staging/rtl8723au/hal/hal_intf.c
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
drivers/staging/rtl8723au/include/hal_intf.h

index 9e66c917ac59dbda7c556d50d315344a8936c376..4b239480350465de76f61b09dd95ec8a88b45905 100644 (file)
@@ -18,6 +18,7 @@
 #include <drv_types.h>
 #include <linux/ieee80211.h>
 #include <wifi.h>
+#include <rtl8723a_cmd.h>
 
 #ifdef CONFIG_8723AU_AP_MODE
 
@@ -430,7 +431,7 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
                /* bitmap[28:31]= Rate Adaptive id */
                /* arg[0:4] = macid */
                /* arg[5] = Short GI */
-               rtw_hal_add_ra_tid23a(padapter, tx_ra_bitmap, arg, rssi_level);
+               rtl8723a_add_rateatid(padapter, tx_ra_bitmap, arg, rssi_level);
 
                if (shortGIrate == true)
                        init_rate |= BIT(6);
@@ -513,8 +514,7 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
                        /* bitmap[28:31]= Rate Adaptive id */
                        /* arg[0:4] = macid */
                        /* arg[5] = Short GI */
-                       rtw_hal_add_ra_tid23a(padapter, tx_ra_bitmap, arg, 0);
-
+                       rtl8723a_add_rateatid(padapter, tx_ra_bitmap, arg, 0);
                }
 
                /* set ra_id, init_rate */
index 251722bfda89c4cf973b9d147b92c318a7e85b80..4ee539bb8c06339d2aba382965e0092cbaf52345 100644 (file)
@@ -184,12 +184,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)
-{
-       if (padapter->HalFunc.Add_RateATid)
-               padapter->HalFunc.Add_RateATid(padapter, bitmap, arg, rssi_level);
-}
-
 s32    rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter)
 {
        if (padapter->HalFunc.interrupt_handler)
index 1991e765bfc11227a2e1ddf134bd7541fa05ca78..44d26b71d37545c7210d3d8b167d9a97568b946e 100644 (file)
@@ -1706,8 +1706,6 @@ exit:
 
 void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
 {
-       pHalFunc->Add_RateATid = &rtl8723a_add_rateatid;
-
        /*  Efuse related function */
        pHalFunc->EfusePowerSwitch = &Hal_EfusePowerSwitch;
        pHalFunc->ReadEFuse = &Hal_ReadEFuse;
index 8e2ed156fc6fb15d9265c8139b434d77514b3fbe..4b9777d6dcaa1d5e7da7a5b9acf09d8247ec9d00 100644 (file)
@@ -94,9 +94,6 @@ struct hal_ops {
        void (*UpdateRAMaskHandler)(struct rtw_adapter *padapter,
                                    u32 mac_id, u8 rssi_level);
 
-       void (*Add_RateATid)(struct rtw_adapter *padapter, u32 bitmap,
-                            u8 arg, u8 rssi_level);
-
        s32 (*hal_xmit)(struct rtw_adapter *padapter,
                        struct xmit_frame *pxmitframe);
        s32 (*mgnt_xmit)(struct rtw_adapter *padapter,
@@ -203,7 +200,6 @@ s32 rtw_hal_init23a_recv_priv(struct rtw_adapter *padapter);
 void   rtw_hal_free_recv_priv23a(struct rtw_adapter *padapter);
 
 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);
 
 s32    rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter);