fw.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. /******************************************************************************
  2. *
  3. * This file is provided under a dual BSD/GPLv2 license. When using or
  4. * redistributing this file, you may do so under either license.
  5. *
  6. * GPL LICENSE SUMMARY
  7. *
  8. * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of version 2 of the GNU General Public License as
  12. * published by the Free Software Foundation.
  13. *
  14. * This program is distributed in the hope that it will be useful, but
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
  22. * USA
  23. *
  24. * The full GNU General Public License is included in this distribution
  25. * in the file called COPYING.
  26. *
  27. * Contact Information:
  28. * Intel Linux Wireless <ilw@linux.intel.com>
  29. * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  30. *
  31. * BSD LICENSE
  32. *
  33. * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
  34. * All rights reserved.
  35. *
  36. * Redistribution and use in source and binary forms, with or without
  37. * modification, are permitted provided that the following conditions
  38. * are met:
  39. *
  40. * * Redistributions of source code must retain the above copyright
  41. * notice, this list of conditions and the following disclaimer.
  42. * * Redistributions in binary form must reproduce the above copyright
  43. * notice, this list of conditions and the following disclaimer in
  44. * the documentation and/or other materials provided with the
  45. * distribution.
  46. * * Neither the name Intel Corporation nor the names of its
  47. * contributors may be used to endorse or promote products derived
  48. * from this software without specific prior written permission.
  49. *
  50. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  51. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  52. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  53. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  54. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  55. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  56. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  57. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  58. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  59. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  60. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  61. *
  62. *****************************************************************************/
  63. #include <net/mac80211.h>
  64. #include "iwl-trans.h"
  65. #include "iwl-op-mode.h"
  66. #include "iwl-fw.h"
  67. #include "iwl-debug.h"
  68. #include "iwl-csr.h" /* for iwl_mvm_rx_card_state_notif */
  69. #include "iwl-io.h" /* for iwl_mvm_rx_card_state_notif */
  70. #include "iwl-eeprom-parse.h"
  71. #include "mvm.h"
  72. #include "iwl-phy-db.h"
  73. #define MVM_UCODE_ALIVE_TIMEOUT HZ
  74. #define MVM_UCODE_CALIB_TIMEOUT (2*HZ)
  75. #define UCODE_VALID_OK cpu_to_le32(0x1)
  76. struct iwl_mvm_alive_data {
  77. bool valid;
  78. u32 scd_base_addr;
  79. };
  80. static inline const struct fw_img *
  81. iwl_get_ucode_image(struct iwl_mvm *mvm, enum iwl_ucode_type ucode_type)
  82. {
  83. if (ucode_type >= IWL_UCODE_TYPE_MAX)
  84. return NULL;
  85. return &mvm->fw->img[ucode_type];
  86. }
  87. static int iwl_send_tx_ant_cfg(struct iwl_mvm *mvm, u8 valid_tx_ant)
  88. {
  89. struct iwl_tx_ant_cfg_cmd tx_ant_cmd = {
  90. .valid = cpu_to_le32(valid_tx_ant),
  91. };
  92. IWL_DEBUG_FW(mvm, "select valid tx ant: %u\n", valid_tx_ant);
  93. return iwl_mvm_send_cmd_pdu(mvm, TX_ANT_CONFIGURATION_CMD, 0,
  94. sizeof(tx_ant_cmd), &tx_ant_cmd);
  95. }
  96. static bool iwl_alive_fn(struct iwl_notif_wait_data *notif_wait,
  97. struct iwl_rx_packet *pkt, void *data)
  98. {
  99. struct iwl_mvm *mvm =
  100. container_of(notif_wait, struct iwl_mvm, notif_wait);
  101. struct iwl_mvm_alive_data *alive_data = data;
  102. struct mvm_alive_resp *palive;
  103. struct mvm_alive_resp_ver2 *palive2;
  104. if (iwl_rx_packet_payload_len(pkt) == sizeof(*palive)) {
  105. palive = (void *)pkt->data;
  106. mvm->support_umac_log = false;
  107. mvm->error_event_table =
  108. le32_to_cpu(palive->error_event_table_ptr);
  109. mvm->log_event_table = le32_to_cpu(palive->log_event_table_ptr);
  110. alive_data->scd_base_addr = le32_to_cpu(palive->scd_base_ptr);
  111. alive_data->valid = le16_to_cpu(palive->status) ==
  112. IWL_ALIVE_STATUS_OK;
  113. IWL_DEBUG_FW(mvm,
  114. "Alive VER1 ucode status 0x%04x revision 0x%01X 0x%01X flags 0x%01X\n",
  115. le16_to_cpu(palive->status), palive->ver_type,
  116. palive->ver_subtype, palive->flags);
  117. } else {
  118. palive2 = (void *)pkt->data;
  119. mvm->error_event_table =
  120. le32_to_cpu(palive2->error_event_table_ptr);
  121. mvm->log_event_table =
  122. le32_to_cpu(palive2->log_event_table_ptr);
  123. alive_data->scd_base_addr = le32_to_cpu(palive2->scd_base_ptr);
  124. mvm->umac_error_event_table =
  125. le32_to_cpu(palive2->error_info_addr);
  126. mvm->sf_space.addr = le32_to_cpu(palive2->st_fwrd_addr);
  127. mvm->sf_space.size = le32_to_cpu(palive2->st_fwrd_size);
  128. alive_data->valid = le16_to_cpu(palive2->status) ==
  129. IWL_ALIVE_STATUS_OK;
  130. if (mvm->umac_error_event_table)
  131. mvm->support_umac_log = true;
  132. IWL_DEBUG_FW(mvm,
  133. "Alive VER2 ucode status 0x%04x revision 0x%01X 0x%01X flags 0x%01X\n",
  134. le16_to_cpu(palive2->status), palive2->ver_type,
  135. palive2->ver_subtype, palive2->flags);
  136. IWL_DEBUG_FW(mvm,
  137. "UMAC version: Major - 0x%x, Minor - 0x%x\n",
  138. palive2->umac_major, palive2->umac_minor);
  139. }
  140. return true;
  141. }
  142. static bool iwl_wait_phy_db_entry(struct iwl_notif_wait_data *notif_wait,
  143. struct iwl_rx_packet *pkt, void *data)
  144. {
  145. struct iwl_phy_db *phy_db = data;
  146. if (pkt->hdr.cmd != CALIB_RES_NOTIF_PHY_DB) {
  147. WARN_ON(pkt->hdr.cmd != INIT_COMPLETE_NOTIF);
  148. return true;
  149. }
  150. WARN_ON(iwl_phy_db_set_section(phy_db, pkt, GFP_ATOMIC));
  151. return false;
  152. }
  153. static int iwl_mvm_load_ucode_wait_alive(struct iwl_mvm *mvm,
  154. enum iwl_ucode_type ucode_type)
  155. {
  156. struct iwl_notification_wait alive_wait;
  157. struct iwl_mvm_alive_data alive_data;
  158. const struct fw_img *fw;
  159. int ret, i;
  160. enum iwl_ucode_type old_type = mvm->cur_ucode;
  161. static const u8 alive_cmd[] = { MVM_ALIVE };
  162. struct iwl_sf_region st_fwrd_space;
  163. fw = iwl_get_ucode_image(mvm, ucode_type);
  164. if (WARN_ON(!fw))
  165. return -EINVAL;
  166. mvm->cur_ucode = ucode_type;
  167. mvm->ucode_loaded = false;
  168. iwl_init_notification_wait(&mvm->notif_wait, &alive_wait,
  169. alive_cmd, ARRAY_SIZE(alive_cmd),
  170. iwl_alive_fn, &alive_data);
  171. ret = iwl_trans_start_fw(mvm->trans, fw, ucode_type == IWL_UCODE_INIT);
  172. if (ret) {
  173. mvm->cur_ucode = old_type;
  174. iwl_remove_notification(&mvm->notif_wait, &alive_wait);
  175. return ret;
  176. }
  177. /*
  178. * Some things may run in the background now, but we
  179. * just wait for the ALIVE notification here.
  180. */
  181. ret = iwl_wait_notification(&mvm->notif_wait, &alive_wait,
  182. MVM_UCODE_ALIVE_TIMEOUT);
  183. if (ret) {
  184. mvm->cur_ucode = old_type;
  185. return ret;
  186. }
  187. if (!alive_data.valid) {
  188. IWL_ERR(mvm, "Loaded ucode is not valid!\n");
  189. mvm->cur_ucode = old_type;
  190. return -EIO;
  191. }
  192. /*
  193. * update the sdio allocation according to the pointer we get in the
  194. * alive notification.
  195. */
  196. st_fwrd_space.addr = mvm->sf_space.addr;
  197. st_fwrd_space.size = mvm->sf_space.size;
  198. ret = iwl_trans_update_sf(mvm->trans, &st_fwrd_space);
  199. iwl_trans_fw_alive(mvm->trans, alive_data.scd_base_addr);
  200. /*
  201. * Note: all the queues are enabled as part of the interface
  202. * initialization, but in firmware restart scenarios they
  203. * could be stopped, so wake them up. In firmware restart,
  204. * mac80211 will have the queues stopped as well until the
  205. * reconfiguration completes. During normal startup, they
  206. * will be empty.
  207. */
  208. for (i = 0; i < IWL_MAX_HW_QUEUES; i++) {
  209. if (i < mvm->first_agg_queue && i != IWL_MVM_CMD_QUEUE)
  210. mvm->queue_to_mac80211[i] = i;
  211. else
  212. mvm->queue_to_mac80211[i] = IWL_INVALID_MAC80211_QUEUE;
  213. atomic_set(&mvm->queue_stop_count[i], 0);
  214. }
  215. mvm->transport_queue_stop = 0;
  216. mvm->ucode_loaded = true;
  217. return 0;
  218. }
  219. static int iwl_send_phy_cfg_cmd(struct iwl_mvm *mvm)
  220. {
  221. struct iwl_phy_cfg_cmd phy_cfg_cmd;
  222. enum iwl_ucode_type ucode_type = mvm->cur_ucode;
  223. /* Set parameters */
  224. phy_cfg_cmd.phy_cfg = cpu_to_le32(mvm->fw->phy_config);
  225. phy_cfg_cmd.calib_control.event_trigger =
  226. mvm->fw->default_calib[ucode_type].event_trigger;
  227. phy_cfg_cmd.calib_control.flow_trigger =
  228. mvm->fw->default_calib[ucode_type].flow_trigger;
  229. IWL_DEBUG_INFO(mvm, "Sending Phy CFG command: 0x%x\n",
  230. phy_cfg_cmd.phy_cfg);
  231. return iwl_mvm_send_cmd_pdu(mvm, PHY_CONFIGURATION_CMD, 0,
  232. sizeof(phy_cfg_cmd), &phy_cfg_cmd);
  233. }
  234. int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm)
  235. {
  236. struct iwl_notification_wait calib_wait;
  237. static const u8 init_complete[] = {
  238. INIT_COMPLETE_NOTIF,
  239. CALIB_RES_NOTIF_PHY_DB
  240. };
  241. int ret;
  242. lockdep_assert_held(&mvm->mutex);
  243. if (WARN_ON_ONCE(mvm->init_ucode_complete))
  244. return 0;
  245. iwl_init_notification_wait(&mvm->notif_wait,
  246. &calib_wait,
  247. init_complete,
  248. ARRAY_SIZE(init_complete),
  249. iwl_wait_phy_db_entry,
  250. mvm->phy_db);
  251. /* Will also start the device */
  252. ret = iwl_mvm_load_ucode_wait_alive(mvm, IWL_UCODE_INIT);
  253. if (ret) {
  254. IWL_ERR(mvm, "Failed to start INIT ucode: %d\n", ret);
  255. goto error;
  256. }
  257. ret = iwl_send_bt_init_conf(mvm);
  258. if (ret)
  259. goto error;
  260. /* Read the NVM only at driver load time, no need to do this twice */
  261. if (read_nvm) {
  262. /* Read nvm */
  263. ret = iwl_nvm_init(mvm, true);
  264. if (ret) {
  265. IWL_ERR(mvm, "Failed to read NVM: %d\n", ret);
  266. goto error;
  267. }
  268. }
  269. /* In case we read the NVM from external file, load it to the NIC */
  270. if (mvm->nvm_file_name)
  271. iwl_mvm_load_nvm_to_nic(mvm);
  272. ret = iwl_nvm_check_version(mvm->nvm_data, mvm->trans);
  273. WARN_ON(ret);
  274. /*
  275. * abort after reading the nvm in case RF Kill is on, we will complete
  276. * the init seq later when RF kill will switch to off
  277. */
  278. if (iwl_mvm_is_radio_killed(mvm)) {
  279. IWL_DEBUG_RF_KILL(mvm,
  280. "jump over all phy activities due to RF kill\n");
  281. iwl_remove_notification(&mvm->notif_wait, &calib_wait);
  282. ret = 1;
  283. goto out;
  284. }
  285. /* Send TX valid antennas before triggering calibrations */
  286. ret = iwl_send_tx_ant_cfg(mvm, mvm->fw->valid_tx_ant);
  287. if (ret)
  288. goto error;
  289. /*
  290. * Send phy configurations command to init uCode
  291. * to start the 16.0 uCode init image internal calibrations.
  292. */
  293. ret = iwl_send_phy_cfg_cmd(mvm);
  294. if (ret) {
  295. IWL_ERR(mvm, "Failed to run INIT calibrations: %d\n",
  296. ret);
  297. goto error;
  298. }
  299. /*
  300. * Some things may run in the background now, but we
  301. * just wait for the calibration complete notification.
  302. */
  303. ret = iwl_wait_notification(&mvm->notif_wait, &calib_wait,
  304. MVM_UCODE_CALIB_TIMEOUT);
  305. if (!ret)
  306. mvm->init_ucode_complete = true;
  307. goto out;
  308. error:
  309. iwl_remove_notification(&mvm->notif_wait, &calib_wait);
  310. out:
  311. if (iwlmvm_mod_params.init_dbg && !mvm->nvm_data) {
  312. /* we want to debug INIT and we have no NVM - fake */
  313. mvm->nvm_data = kzalloc(sizeof(struct iwl_nvm_data) +
  314. sizeof(struct ieee80211_channel) +
  315. sizeof(struct ieee80211_rate),
  316. GFP_KERNEL);
  317. if (!mvm->nvm_data)
  318. return -ENOMEM;
  319. mvm->nvm_data->bands[0].channels = mvm->nvm_data->channels;
  320. mvm->nvm_data->bands[0].n_channels = 1;
  321. mvm->nvm_data->bands[0].n_bitrates = 1;
  322. mvm->nvm_data->bands[0].bitrates =
  323. (void *)mvm->nvm_data->channels + 1;
  324. mvm->nvm_data->bands[0].bitrates->hw_value = 10;
  325. }
  326. return ret;
  327. }
  328. int iwl_mvm_up(struct iwl_mvm *mvm)
  329. {
  330. int ret, i;
  331. struct ieee80211_channel *chan;
  332. struct cfg80211_chan_def chandef;
  333. lockdep_assert_held(&mvm->mutex);
  334. ret = iwl_trans_start_hw(mvm->trans);
  335. if (ret)
  336. return ret;
  337. /*
  338. * If we haven't completed the run of the init ucode during
  339. * module loading, load init ucode now
  340. * (for example, if we were in RFKILL)
  341. */
  342. if (!mvm->init_ucode_complete) {
  343. ret = iwl_run_init_mvm_ucode(mvm, false);
  344. if (ret && !iwlmvm_mod_params.init_dbg) {
  345. IWL_ERR(mvm, "Failed to run INIT ucode: %d\n", ret);
  346. /* this can't happen */
  347. if (WARN_ON(ret > 0))
  348. ret = -ERFKILL;
  349. goto error;
  350. }
  351. if (!iwlmvm_mod_params.init_dbg) {
  352. /*
  353. * should stop and start HW since that INIT
  354. * image just loaded
  355. */
  356. iwl_trans_stop_device(mvm->trans);
  357. ret = iwl_trans_start_hw(mvm->trans);
  358. if (ret)
  359. return ret;
  360. }
  361. }
  362. if (iwlmvm_mod_params.init_dbg)
  363. return 0;
  364. ret = iwl_mvm_load_ucode_wait_alive(mvm, IWL_UCODE_REGULAR);
  365. if (ret) {
  366. IWL_ERR(mvm, "Failed to start RT ucode: %d\n", ret);
  367. goto error;
  368. }
  369. ret = iwl_mvm_sf_update(mvm, NULL, false);
  370. if (ret)
  371. IWL_ERR(mvm, "Failed to initialize Smart Fifo\n");
  372. ret = iwl_send_tx_ant_cfg(mvm, mvm->fw->valid_tx_ant);
  373. if (ret)
  374. goto error;
  375. ret = iwl_send_bt_init_conf(mvm);
  376. if (ret)
  377. goto error;
  378. /* Send phy db control command and then phy db calibration*/
  379. ret = iwl_send_phy_db_data(mvm->phy_db);
  380. if (ret)
  381. goto error;
  382. ret = iwl_send_phy_cfg_cmd(mvm);
  383. if (ret)
  384. goto error;
  385. /* init the fw <-> mac80211 STA mapping */
  386. for (i = 0; i < IWL_MVM_STATION_COUNT; i++)
  387. RCU_INIT_POINTER(mvm->fw_id_to_mac_id[i], NULL);
  388. /* Add auxiliary station for scanning */
  389. ret = iwl_mvm_add_aux_sta(mvm);
  390. if (ret)
  391. goto error;
  392. /* Add all the PHY contexts */
  393. chan = &mvm->hw->wiphy->bands[IEEE80211_BAND_2GHZ]->channels[0];
  394. cfg80211_chandef_create(&chandef, chan, NL80211_CHAN_NO_HT);
  395. for (i = 0; i < NUM_PHY_CTX; i++) {
  396. /*
  397. * The channel used here isn't relevant as it's
  398. * going to be overwritten in the other flows.
  399. * For now use the first channel we have.
  400. */
  401. ret = iwl_mvm_phy_ctxt_add(mvm, &mvm->phy_ctxts[i],
  402. &chandef, 1, 1);
  403. if (ret)
  404. goto error;
  405. }
  406. /* Initialize tx backoffs to the minimal possible */
  407. iwl_mvm_tt_tx_backoff(mvm, 0);
  408. ret = iwl_mvm_power_update_device(mvm);
  409. if (ret)
  410. goto error;
  411. /* allow FW/transport low power modes if not during restart */
  412. if (!test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status))
  413. iwl_mvm_unref(mvm, IWL_MVM_REF_UCODE_DOWN);
  414. IWL_DEBUG_INFO(mvm, "RT uCode started.\n");
  415. return 0;
  416. error:
  417. iwl_trans_stop_device(mvm->trans);
  418. return ret;
  419. }
  420. int iwl_mvm_load_d3_fw(struct iwl_mvm *mvm)
  421. {
  422. int ret, i;
  423. lockdep_assert_held(&mvm->mutex);
  424. ret = iwl_trans_start_hw(mvm->trans);
  425. if (ret)
  426. return ret;
  427. ret = iwl_mvm_load_ucode_wait_alive(mvm, IWL_UCODE_WOWLAN);
  428. if (ret) {
  429. IWL_ERR(mvm, "Failed to start WoWLAN firmware: %d\n", ret);
  430. goto error;
  431. }
  432. ret = iwl_send_tx_ant_cfg(mvm, mvm->fw->valid_tx_ant);
  433. if (ret)
  434. goto error;
  435. /* Send phy db control command and then phy db calibration*/
  436. ret = iwl_send_phy_db_data(mvm->phy_db);
  437. if (ret)
  438. goto error;
  439. ret = iwl_send_phy_cfg_cmd(mvm);
  440. if (ret)
  441. goto error;
  442. /* init the fw <-> mac80211 STA mapping */
  443. for (i = 0; i < IWL_MVM_STATION_COUNT; i++)
  444. RCU_INIT_POINTER(mvm->fw_id_to_mac_id[i], NULL);
  445. /* Add auxiliary station for scanning */
  446. ret = iwl_mvm_add_aux_sta(mvm);
  447. if (ret)
  448. goto error;
  449. return 0;
  450. error:
  451. iwl_trans_stop_device(mvm->trans);
  452. return ret;
  453. }
  454. int iwl_mvm_rx_card_state_notif(struct iwl_mvm *mvm,
  455. struct iwl_rx_cmd_buffer *rxb,
  456. struct iwl_device_cmd *cmd)
  457. {
  458. struct iwl_rx_packet *pkt = rxb_addr(rxb);
  459. struct iwl_card_state_notif *card_state_notif = (void *)pkt->data;
  460. u32 flags = le32_to_cpu(card_state_notif->flags);
  461. IWL_DEBUG_RF_KILL(mvm, "Card state received: HW:%s SW:%s CT:%s\n",
  462. (flags & HW_CARD_DISABLED) ? "Kill" : "On",
  463. (flags & SW_CARD_DISABLED) ? "Kill" : "On",
  464. (flags & CT_KILL_CARD_DISABLED) ?
  465. "Reached" : "Not reached");
  466. return 0;
  467. }
  468. int iwl_mvm_rx_radio_ver(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb,
  469. struct iwl_device_cmd *cmd)
  470. {
  471. struct iwl_rx_packet *pkt = rxb_addr(rxb);
  472. struct iwl_radio_version_notif *radio_version = (void *)pkt->data;
  473. /* TODO: what to do with that? */
  474. IWL_DEBUG_INFO(mvm,
  475. "Radio version: flavor: 0x%08x, step 0x%08x, dash 0x%08x\n",
  476. le32_to_cpu(radio_version->radio_flavor),
  477. le32_to_cpu(radio_version->radio_step),
  478. le32_to_cpu(radio_version->radio_dash));
  479. return 0;
  480. }