]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: rtl8188eu: Rework function ODM_SetTxAntByTxInfo_88E()
authornavin patidar <navin.patidar@gmail.com>
Sat, 20 Sep 2014 14:25:55 +0000 (19:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:47:13 +0000 (23:47 -0700)
Rename CamelCase function name and local variables.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/odm_RTL8188E.c
drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c
drivers/staging/rtl8188eu/include/odm_RTL8188E.h

index f3a4e2881f0db3f1f910c9df782dfc58dde79ad8..5a514055bacdad11662bc5ce18c8977719b19904 100644 (file)
@@ -236,14 +236,16 @@ static void update_tx_ant_88eu(struct odm_dm_struct *dm_odm, u8 ant, u32 mac_id)
        dm_fat_tbl->antsel_c[mac_id] = (target_ant&BIT2)>>2;
 }
 
-void ODM_SetTxAntByTxInfo_88E(struct odm_dm_struct *dm_odm, u8 *pDesc, u8 macId)
+void rtl88eu_dm_set_tx_ant_by_tx_info(struct odm_dm_struct *dm_odm,
+                                     u8 *desc, u8 mac_id)
 {
        struct fast_ant_train *dm_fat_tbl = &dm_odm->DM_FatTable;
 
-       if ((dm_odm->AntDivType == CG_TRX_HW_ANTDIV) || (dm_odm->AntDivType == CG_TRX_SMART_ANTDIV)) {
-               SET_TX_DESC_ANTSEL_A_88E(pDesc, dm_fat_tbl->antsel_a[macId]);
-               SET_TX_DESC_ANTSEL_B_88E(pDesc, dm_fat_tbl->antsel_b[macId]);
-               SET_TX_DESC_ANTSEL_C_88E(pDesc, dm_fat_tbl->antsel_c[macId]);
+       if ((dm_odm->AntDivType == CG_TRX_HW_ANTDIV) ||
+           (dm_odm->AntDivType == CG_TRX_SMART_ANTDIV)) {
+               SET_TX_DESC_ANTSEL_A_88E(desc, dm_fat_tbl->antsel_a[mac_id]);
+               SET_TX_DESC_ANTSEL_B_88E(desc, dm_fat_tbl->antsel_b[mac_id]);
+               SET_TX_DESC_ANTSEL_C_88E(desc, dm_fat_tbl->antsel_c[mac_id]);
        }
 }
 
index 3494ac6974566600d9fd874f394fb3db7143840a..be9eede6931df25acc2c38521ec1f9bc517eae09 100644 (file)
@@ -336,7 +336,8 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bag
                ptxdesc->txdw4 |= cpu_to_le32(HW_SSN);  /*  Hw set sequence number */
        }
 
-       ODM_SetTxAntByTxInfo_88E(&haldata->odmpriv, pmem, pattrib->mac_id);
+       rtl88eu_dm_set_tx_ant_by_tx_info(&haldata->odmpriv, pmem,
+                                        pattrib->mac_id);
 
        rtl8188eu_cal_txdesc_chksum(ptxdesc);
        _dbg_dump_tx_info(adapt, pxmitframe->frame_tag, ptxdesc);
index 7dc26985d28afab7ecc46408dac5e5e2b1bdf680..7a10101642c86ab7981d28b821176cfe21742acc 100644 (file)
@@ -33,8 +33,8 @@ void rtl88eu_dm_antenna_div_init(struct odm_dm_struct *dm_odm);
 
 void ODM_AntennaDiversity_88E(struct odm_dm_struct *pDM_Odm);
 
-void ODM_SetTxAntByTxInfo_88E(struct odm_dm_struct *pDM_Odm, u8 *pDesc,
-                             u8 macId);
+void rtl88eu_dm_set_tx_ant_by_tx_info(struct odm_dm_struct *dm_odm, u8 *desc,
+                                     u8 mac_id);
 
 void rtl88eu_dm_update_rx_idle_ant(struct odm_dm_struct *dm_odm, u8 ant);