rf.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2009-2012 Realtek Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * The full GNU General Public License is included in this distribution in the
  15. * file called LICENSE.
  16. *
  17. * Contact Information:
  18. * wlanfae <wlanfae@realtek.com>
  19. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  20. * Hsinchu 300, Taiwan.
  21. *
  22. * Larry Finger <Larry.Finger@lwfinger.net>
  23. *
  24. *****************************************************************************/
  25. #include "../wifi.h"
  26. #include "reg.h"
  27. #include "def.h"
  28. #include "phy.h"
  29. #include "rf.h"
  30. #include "dm.h"
  31. static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw);
  32. void rtl92cu_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth)
  33. {
  34. struct rtl_priv *rtlpriv = rtl_priv(hw);
  35. struct rtl_phy *rtlphy = &(rtlpriv->phy);
  36. switch (bandwidth) {
  37. case HT_CHANNEL_WIDTH_20:
  38. rtlphy->rfreg_chnlval[0] = ((rtlphy->rfreg_chnlval[0] &
  39. 0xfffff3ff) | 0x0400);
  40. rtl_set_rfreg(hw, RF90_PATH_A, RF_CHNLBW, RFREG_OFFSET_MASK,
  41. rtlphy->rfreg_chnlval[0]);
  42. break;
  43. case HT_CHANNEL_WIDTH_20_40:
  44. rtlphy->rfreg_chnlval[0] = ((rtlphy->rfreg_chnlval[0] &
  45. 0xfffff3ff));
  46. rtl_set_rfreg(hw, RF90_PATH_A, RF_CHNLBW, RFREG_OFFSET_MASK,
  47. rtlphy->rfreg_chnlval[0]);
  48. break;
  49. default:
  50. pr_err("unknown bandwidth: %#X\n", bandwidth);
  51. break;
  52. }
  53. }
  54. void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
  55. u8 *ppowerlevel)
  56. {
  57. struct rtl_priv *rtlpriv = rtl_priv(hw);
  58. struct rtl_phy *rtlphy = &(rtlpriv->phy);
  59. struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
  60. struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
  61. u32 tx_agc[2] = { 0, 0 }, tmpval = 0;
  62. bool turbo_scanoff = false;
  63. u8 idx1, idx2;
  64. u8 *ptr;
  65. if ((rtlefuse->eeprom_regulatory != 0) || (rtlefuse->external_pa))
  66. turbo_scanoff = true;
  67. if (mac->act_scanning) {
  68. tx_agc[RF90_PATH_A] = 0x3f3f3f3f;
  69. tx_agc[RF90_PATH_B] = 0x3f3f3f3f;
  70. for (idx1 = RF90_PATH_A; idx1 <= RF90_PATH_B; idx1++) {
  71. tx_agc[idx1] = ppowerlevel[idx1] |
  72. (ppowerlevel[idx1] << 8) |
  73. (ppowerlevel[idx1] << 16) |
  74. (ppowerlevel[idx1] << 24);
  75. if (tx_agc[idx1] > 0x20 && rtlefuse->external_pa)
  76. tx_agc[idx1] = 0x20;
  77. }
  78. } else {
  79. if (rtlpriv->dm.dynamic_txhighpower_lvl ==
  80. TXHIGHPWRLEVEL_LEVEL1) {
  81. tx_agc[RF90_PATH_A] = 0x10101010;
  82. tx_agc[RF90_PATH_B] = 0x10101010;
  83. } else if (rtlpriv->dm.dynamic_txhighpower_lvl ==
  84. TXHIGHPWRLEVEL_LEVEL2) {
  85. tx_agc[RF90_PATH_A] = 0x00000000;
  86. tx_agc[RF90_PATH_B] = 0x00000000;
  87. } else {
  88. for (idx1 = RF90_PATH_A; idx1 <= RF90_PATH_B; idx1++) {
  89. tx_agc[idx1] = ppowerlevel[idx1] |
  90. (ppowerlevel[idx1] << 8) |
  91. (ppowerlevel[idx1] << 16) |
  92. (ppowerlevel[idx1] << 24);
  93. }
  94. if (rtlefuse->eeprom_regulatory == 0) {
  95. tmpval = (rtlphy->mcs_offset[0][6]) +
  96. (rtlphy->mcs_offset[0][7] << 8);
  97. tx_agc[RF90_PATH_A] += tmpval;
  98. tmpval = (rtlphy->mcs_offset[0][14]) +
  99. (rtlphy->mcs_offset[0][15] << 24);
  100. tx_agc[RF90_PATH_B] += tmpval;
  101. }
  102. }
  103. }
  104. for (idx1 = RF90_PATH_A; idx1 <= RF90_PATH_B; idx1++) {
  105. ptr = (u8 *) (&(tx_agc[idx1]));
  106. for (idx2 = 0; idx2 < 4; idx2++) {
  107. if (*ptr > RF6052_MAX_TX_PWR)
  108. *ptr = RF6052_MAX_TX_PWR;
  109. ptr++;
  110. }
  111. }
  112. tmpval = tx_agc[RF90_PATH_A] & 0xff;
  113. rtl_set_bbreg(hw, RTXAGC_A_CCK1_MCS32, MASKBYTE1, tmpval);
  114. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  115. "CCK PWR 1M (rf-A) = 0x%x (reg 0x%x)\n",
  116. tmpval, RTXAGC_A_CCK1_MCS32);
  117. tmpval = tx_agc[RF90_PATH_A] >> 8;
  118. if (mac->mode == WIRELESS_MODE_B)
  119. tmpval = tmpval & 0xff00ffff;
  120. rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval);
  121. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  122. "CCK PWR 2~11M (rf-A) = 0x%x (reg 0x%x)\n",
  123. tmpval, RTXAGC_B_CCK11_A_CCK2_11);
  124. tmpval = tx_agc[RF90_PATH_B] >> 24;
  125. rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, MASKBYTE0, tmpval);
  126. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  127. "CCK PWR 11M (rf-B) = 0x%x (reg 0x%x)\n",
  128. tmpval, RTXAGC_B_CCK11_A_CCK2_11);
  129. tmpval = tx_agc[RF90_PATH_B] & 0x00ffffff;
  130. rtl_set_bbreg(hw, RTXAGC_B_CCK1_55_MCS32, 0xffffff00, tmpval);
  131. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  132. "CCK PWR 1~5.5M (rf-B) = 0x%x (reg 0x%x)\n",
  133. tmpval, RTXAGC_B_CCK1_55_MCS32);
  134. }
  135. static void rtl92c_phy_get_power_base(struct ieee80211_hw *hw,
  136. u8 *ppowerlevel, u8 channel,
  137. u32 *ofdmbase, u32 *mcsbase)
  138. {
  139. struct rtl_priv *rtlpriv = rtl_priv(hw);
  140. struct rtl_phy *rtlphy = &(rtlpriv->phy);
  141. struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
  142. u32 powerBase0, powerBase1;
  143. u8 legacy_pwrdiff = 0, ht20_pwrdiff = 0;
  144. u8 i, powerlevel[2];
  145. for (i = 0; i < 2; i++) {
  146. powerlevel[i] = ppowerlevel[i];
  147. legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff[i][channel - 1];
  148. powerBase0 = powerlevel[i] + legacy_pwrdiff;
  149. powerBase0 = (powerBase0 << 24) | (powerBase0 << 16) |
  150. (powerBase0 << 8) | powerBase0;
  151. *(ofdmbase + i) = powerBase0;
  152. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  153. " [OFDM power base index rf(%c) = 0x%x]\n",
  154. i == 0 ? 'A' : 'B', *(ofdmbase + i));
  155. }
  156. for (i = 0; i < 2; i++) {
  157. if (rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20) {
  158. ht20_pwrdiff = rtlefuse->txpwr_ht20diff[i][channel - 1];
  159. powerlevel[i] += ht20_pwrdiff;
  160. }
  161. powerBase1 = powerlevel[i];
  162. powerBase1 = (powerBase1 << 24) |
  163. (powerBase1 << 16) | (powerBase1 << 8) | powerBase1;
  164. *(mcsbase + i) = powerBase1;
  165. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  166. " [MCS power base index rf(%c) = 0x%x]\n",
  167. i == 0 ? 'A' : 'B', *(mcsbase + i));
  168. }
  169. }
  170. static void _rtl92c_get_txpower_writeval_by_regulatory(struct ieee80211_hw *hw,
  171. u8 channel, u8 index,
  172. u32 *powerBase0,
  173. u32 *powerBase1,
  174. u32 *p_outwriteval)
  175. {
  176. struct rtl_priv *rtlpriv = rtl_priv(hw);
  177. struct rtl_phy *rtlphy = &(rtlpriv->phy);
  178. struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
  179. u8 i, chnlgroup = 0, pwr_diff_limit[4];
  180. u32 writeVal, customer_limit, rf;
  181. for (rf = 0; rf < 2; rf++) {
  182. switch (rtlefuse->eeprom_regulatory) {
  183. case 0:
  184. chnlgroup = 0;
  185. writeVal = rtlphy->mcs_offset
  186. [chnlgroup][index + (rf ? 8 : 0)]
  187. + ((index < 2) ? powerBase0[rf] : powerBase1[rf]);
  188. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  189. "RTK better performance,writeVal(%c) = 0x%x\n",
  190. rf == 0 ? 'A' : 'B', writeVal);
  191. break;
  192. case 1:
  193. if (rtlphy->pwrgroup_cnt == 1)
  194. chnlgroup = 0;
  195. if (rtlphy->pwrgroup_cnt >= 3) {
  196. if (channel <= 3)
  197. chnlgroup = 0;
  198. else if (channel >= 4 && channel <= 9)
  199. chnlgroup = 1;
  200. else if (channel > 9)
  201. chnlgroup = 2;
  202. if (rtlphy->current_chan_bw ==
  203. HT_CHANNEL_WIDTH_20)
  204. chnlgroup++;
  205. else
  206. chnlgroup += 4;
  207. }
  208. writeVal = rtlphy->mcs_offset[chnlgroup][index +
  209. (rf ? 8 : 0)] +
  210. ((index < 2) ? powerBase0[rf] :
  211. powerBase1[rf]);
  212. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  213. "Realtek regulatory, 20MHz, writeVal(%c) = 0x%x\n",
  214. rf == 0 ? 'A' : 'B', writeVal);
  215. break;
  216. case 2:
  217. writeVal = ((index < 2) ? powerBase0[rf] :
  218. powerBase1[rf]);
  219. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  220. "Better regulatory,writeVal(%c) = 0x%x\n",
  221. rf == 0 ? 'A' : 'B', writeVal);
  222. break;
  223. case 3:
  224. chnlgroup = 0;
  225. if (rtlphy->current_chan_bw ==
  226. HT_CHANNEL_WIDTH_20_40) {
  227. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  228. "customer's limit, 40MHzrf(%c) = 0x%x\n",
  229. rf == 0 ? 'A' : 'B',
  230. rtlefuse->pwrgroup_ht40[rf]
  231. [channel - 1]);
  232. } else {
  233. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  234. "customer's limit, 20MHz rf(%c) = 0x%x\n",
  235. rf == 0 ? 'A' : 'B',
  236. rtlefuse->pwrgroup_ht20[rf]
  237. [channel - 1]);
  238. }
  239. for (i = 0; i < 4; i++) {
  240. pwr_diff_limit[i] = (u8) ((rtlphy->mcs_offset
  241. [chnlgroup][index + (rf ? 8 : 0)]
  242. & (0x7f << (i * 8))) >> (i * 8));
  243. if (rtlphy->current_chan_bw ==
  244. HT_CHANNEL_WIDTH_20_40) {
  245. if (pwr_diff_limit[i] >
  246. rtlefuse->pwrgroup_ht40[rf]
  247. [channel - 1])
  248. pwr_diff_limit[i] = rtlefuse->
  249. pwrgroup_ht40[rf]
  250. [channel - 1];
  251. } else {
  252. if (pwr_diff_limit[i] >
  253. rtlefuse->pwrgroup_ht20[rf]
  254. [channel - 1])
  255. pwr_diff_limit[i] =
  256. rtlefuse->pwrgroup_ht20[rf]
  257. [channel - 1];
  258. }
  259. }
  260. customer_limit = (pwr_diff_limit[3] << 24) |
  261. (pwr_diff_limit[2] << 16) |
  262. (pwr_diff_limit[1] << 8) | (pwr_diff_limit[0]);
  263. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  264. "Customer's limit rf(%c) = 0x%x\n",
  265. rf == 0 ? 'A' : 'B', customer_limit);
  266. writeVal = customer_limit + ((index < 2) ?
  267. powerBase0[rf] : powerBase1[rf]);
  268. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  269. "Customer, writeVal rf(%c)= 0x%x\n",
  270. rf == 0 ? 'A' : 'B', writeVal);
  271. break;
  272. default:
  273. chnlgroup = 0;
  274. writeVal = rtlphy->mcs_offset[chnlgroup]
  275. [index + (rf ? 8 : 0)] + ((index < 2) ?
  276. powerBase0[rf] : powerBase1[rf]);
  277. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  278. "RTK better performance, writeValrf(%c) = 0x%x\n",
  279. rf == 0 ? 'A' : 'B', writeVal);
  280. break;
  281. }
  282. if (rtlpriv->dm.dynamic_txhighpower_lvl ==
  283. TXHIGHPWRLEVEL_LEVEL1)
  284. writeVal = 0x14141414;
  285. else if (rtlpriv->dm.dynamic_txhighpower_lvl ==
  286. TXHIGHPWRLEVEL_LEVEL2)
  287. writeVal = 0x00000000;
  288. if (rtlpriv->dm.dynamic_txhighpower_lvl == TXHIGHPWRLEVEL_BT1)
  289. writeVal = writeVal - 0x06060606;
  290. else if (rtlpriv->dm.dynamic_txhighpower_lvl ==
  291. TXHIGHPWRLEVEL_BT2)
  292. writeVal = writeVal;
  293. *(p_outwriteval + rf) = writeVal;
  294. }
  295. }
  296. static void _rtl92c_write_ofdm_power_reg(struct ieee80211_hw *hw,
  297. u8 index, u32 *pValue)
  298. {
  299. struct rtl_priv *rtlpriv = rtl_priv(hw);
  300. struct rtl_phy *rtlphy = &(rtlpriv->phy);
  301. u16 regoffset_a[6] = {
  302. RTXAGC_A_RATE18_06, RTXAGC_A_RATE54_24,
  303. RTXAGC_A_MCS03_MCS00, RTXAGC_A_MCS07_MCS04,
  304. RTXAGC_A_MCS11_MCS08, RTXAGC_A_MCS15_MCS12
  305. };
  306. u16 regoffset_b[6] = {
  307. RTXAGC_B_RATE18_06, RTXAGC_B_RATE54_24,
  308. RTXAGC_B_MCS03_MCS00, RTXAGC_B_MCS07_MCS04,
  309. RTXAGC_B_MCS11_MCS08, RTXAGC_B_MCS15_MCS12
  310. };
  311. u8 i, rf, pwr_val[4];
  312. u32 writeVal;
  313. u16 regoffset;
  314. for (rf = 0; rf < 2; rf++) {
  315. writeVal = pValue[rf];
  316. for (i = 0; i < 4; i++) {
  317. pwr_val[i] = (u8)((writeVal & (0x7f << (i * 8))) >>
  318. (i * 8));
  319. if (pwr_val[i] > RF6052_MAX_TX_PWR)
  320. pwr_val[i] = RF6052_MAX_TX_PWR;
  321. }
  322. writeVal = (pwr_val[3] << 24) | (pwr_val[2] << 16) |
  323. (pwr_val[1] << 8) | pwr_val[0];
  324. if (rf == 0)
  325. regoffset = regoffset_a[index];
  326. else
  327. regoffset = regoffset_b[index];
  328. rtl_set_bbreg(hw, regoffset, MASKDWORD, writeVal);
  329. RTPRINT(rtlpriv, FPHY, PHY_TXPWR,
  330. "Set 0x%x = %08x\n", regoffset, writeVal);
  331. if (((get_rf_type(rtlphy) == RF_2T2R) &&
  332. (regoffset == RTXAGC_A_MCS15_MCS12 ||
  333. regoffset == RTXAGC_B_MCS15_MCS12)) ||
  334. ((get_rf_type(rtlphy) != RF_2T2R) &&
  335. (regoffset == RTXAGC_A_MCS07_MCS04 ||
  336. regoffset == RTXAGC_B_MCS07_MCS04))) {
  337. writeVal = pwr_val[3];
  338. if (regoffset == RTXAGC_A_MCS15_MCS12 ||
  339. regoffset == RTXAGC_A_MCS07_MCS04)
  340. regoffset = 0xc90;
  341. if (regoffset == RTXAGC_B_MCS15_MCS12 ||
  342. regoffset == RTXAGC_B_MCS07_MCS04)
  343. regoffset = 0xc98;
  344. for (i = 0; i < 3; i++) {
  345. if (i != 2)
  346. writeVal = (writeVal > 8) ?
  347. (writeVal - 8) : 0;
  348. else
  349. writeVal = (writeVal > 6) ?
  350. (writeVal - 6) : 0;
  351. rtl_write_byte(rtlpriv, (u32)(regoffset + i),
  352. (u8)writeVal);
  353. }
  354. }
  355. }
  356. }
  357. void rtl92cu_phy_rf6052_set_ofdm_txpower(struct ieee80211_hw *hw,
  358. u8 *ppowerlevel, u8 channel)
  359. {
  360. u32 writeVal[2], powerBase0[2], powerBase1[2];
  361. u8 index = 0;
  362. rtl92c_phy_get_power_base(hw, ppowerlevel,
  363. channel, &powerBase0[0], &powerBase1[0]);
  364. for (index = 0; index < 6; index++) {
  365. _rtl92c_get_txpower_writeval_by_regulatory(hw,
  366. channel, index,
  367. &powerBase0[0],
  368. &powerBase1[0],
  369. &writeVal[0]);
  370. _rtl92c_write_ofdm_power_reg(hw, index, &writeVal[0]);
  371. }
  372. }
  373. bool rtl92cu_phy_rf6052_config(struct ieee80211_hw *hw)
  374. {
  375. struct rtl_priv *rtlpriv = rtl_priv(hw);
  376. struct rtl_phy *rtlphy = &(rtlpriv->phy);
  377. bool rtstatus = true;
  378. u8 b_reg_hwparafile = 1;
  379. if (rtlphy->rf_type == RF_1T1R)
  380. rtlphy->num_total_rfpath = 1;
  381. else
  382. rtlphy->num_total_rfpath = 2;
  383. if (b_reg_hwparafile == 1)
  384. rtstatus = _rtl92c_phy_rf6052_config_parafile(hw);
  385. return rtstatus;
  386. }
  387. static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw)
  388. {
  389. struct rtl_priv *rtlpriv = rtl_priv(hw);
  390. struct rtl_phy *rtlphy = &(rtlpriv->phy);
  391. u32 u4_regvalue = 0;
  392. u8 rfpath;
  393. bool rtstatus = true;
  394. struct bb_reg_def *pphyreg;
  395. for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) {
  396. pphyreg = &rtlphy->phyreg_def[rfpath];
  397. switch (rfpath) {
  398. case RF90_PATH_A:
  399. case RF90_PATH_C:
  400. u4_regvalue = rtl_get_bbreg(hw, pphyreg->rfintfs,
  401. BRFSI_RFENV);
  402. break;
  403. case RF90_PATH_B:
  404. case RF90_PATH_D:
  405. u4_regvalue = rtl_get_bbreg(hw, pphyreg->rfintfs,
  406. BRFSI_RFENV << 16);
  407. break;
  408. }
  409. rtl_set_bbreg(hw, pphyreg->rfintfe, BRFSI_RFENV << 16, 0x1);
  410. udelay(1);
  411. rtl_set_bbreg(hw, pphyreg->rfintfo, BRFSI_RFENV, 0x1);
  412. udelay(1);
  413. rtl_set_bbreg(hw, pphyreg->rfhssi_para2,
  414. B3WIREADDREAALENGTH, 0x0);
  415. udelay(1);
  416. rtl_set_bbreg(hw, pphyreg->rfhssi_para2, B3WIREDATALENGTH, 0x0);
  417. udelay(1);
  418. switch (rfpath) {
  419. case RF90_PATH_A:
  420. case RF90_PATH_B:
  421. rtstatus = rtl92cu_phy_config_rf_with_headerfile(hw,
  422. (enum radio_path) rfpath);
  423. break;
  424. case RF90_PATH_C:
  425. break;
  426. case RF90_PATH_D:
  427. break;
  428. }
  429. switch (rfpath) {
  430. case RF90_PATH_A:
  431. case RF90_PATH_C:
  432. rtl_set_bbreg(hw, pphyreg->rfintfs,
  433. BRFSI_RFENV, u4_regvalue);
  434. break;
  435. case RF90_PATH_B:
  436. case RF90_PATH_D:
  437. rtl_set_bbreg(hw, pphyreg->rfintfs,
  438. BRFSI_RFENV << 16, u4_regvalue);
  439. break;
  440. }
  441. if (!rtstatus) {
  442. RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
  443. "Radio[%d] Fail!!\n", rfpath);
  444. goto phy_rf_cfg_fail;
  445. }
  446. }
  447. RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "<---\n");
  448. phy_rf_cfg_fail:
  449. return rtstatus;
  450. }