Skip to content

Commit

Permalink
rtlwifi: rtl8188ee: Convert macros that set descriptor
Browse files Browse the repository at this point in the history
As a first step in the conversion, the macros that set the RX and TX
descriptors are converted to static inline routines, and the names are
changed from upper to lower case. To minimize the changes in a given
step, the input descriptor information is left as as a byte array
(u8 *), even though it should be a little-endian word array (__le32 *).
That will be changed in the next patch.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Larry Finger authored and Kalle Valo committed Aug 6, 2019
1 parent 66b2b06 commit 36eda75
Show file tree
Hide file tree
Showing 3 changed files with 642 additions and 346 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,9 +1414,9 @@ void rtl88e_dm_set_tx_ant_by_tx_info(struct ieee80211_hw *hw,

if ((rtlefuse->antenna_div_type == CG_TRX_HW_ANTDIV) ||
(rtlefuse->antenna_div_type == CG_TRX_SMART_ANTDIV)) {
SET_TX_DESC_ANTSEL_A(pdesc, pfat_table->antsel_a[mac_id]);
SET_TX_DESC_ANTSEL_B(pdesc, pfat_table->antsel_b[mac_id]);
SET_TX_DESC_ANTSEL_C(pdesc, pfat_table->antsel_c[mac_id]);
set_tx_desc_antsel_a(pdesc, pfat_table->antsel_a[mac_id]);
set_tx_desc_antsel_b(pdesc, pfat_table->antsel_b[mac_id]);
set_tx_desc_antsel_c(pdesc, pfat_table->antsel_c[mac_id]);
}
}

Expand Down
Loading

0 comments on commit 36eda75

Please sign in to comment.