main.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Device probe and register.
  4. *
  5. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
  6. * Copyright (c) 2010, ST-Ericsson
  7. * Copyright (c) 2008, Johannes Berg <[email protected]>
  8. * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
  9. * Copyright (c) 2007-2009, Christian Lamparter <[email protected]>
  10. * Copyright (c) 2006, Michael Wu <[email protected]>
  11. * Copyright (c) 2004-2006 Jean-Baptiste Note <[email protected]>, et al.
  12. */
  13. #include <linux/module.h>
  14. #include <linux/of.h>
  15. #include <linux/of_net.h>
  16. #include <linux/gpio/consumer.h>
  17. #include <linux/mmc/sdio_func.h>
  18. #include <linux/spi/spi.h>
  19. #include <linux/etherdevice.h>
  20. #include <linux/firmware.h>
  21. #include "main.h"
  22. #include "wfx.h"
  23. #include "fwio.h"
  24. #include "hwio.h"
  25. #include "bus.h"
  26. #include "bh.h"
  27. #include "sta.h"
  28. #include "key.h"
  29. #include "scan.h"
  30. #include "debug.h"
  31. #include "data_tx.h"
  32. #include "hif_tx_mib.h"
  33. #include "hif_api_cmd.h"
  34. #define WFX_PDS_TLV_TYPE 0x4450 // "PD" (Platform Data) in ascii little-endian
  35. #define WFX_PDS_MAX_CHUNK_SIZE 1500
  36. MODULE_DESCRIPTION("Silicon Labs 802.11 Wireless LAN driver for WF200");
  37. MODULE_AUTHOR("Jérôme Pouiller <[email protected]>");
  38. MODULE_LICENSE("GPL");
  39. #define RATETAB_ENT(_rate, _rateid, _flags) { \
  40. .bitrate = (_rate), \
  41. .hw_value = (_rateid), \
  42. .flags = (_flags), \
  43. }
  44. static struct ieee80211_rate wfx_rates[] = {
  45. RATETAB_ENT(10, 0, 0),
  46. RATETAB_ENT(20, 1, IEEE80211_RATE_SHORT_PREAMBLE),
  47. RATETAB_ENT(55, 2, IEEE80211_RATE_SHORT_PREAMBLE),
  48. RATETAB_ENT(110, 3, IEEE80211_RATE_SHORT_PREAMBLE),
  49. RATETAB_ENT(60, 6, 0),
  50. RATETAB_ENT(90, 7, 0),
  51. RATETAB_ENT(120, 8, 0),
  52. RATETAB_ENT(180, 9, 0),
  53. RATETAB_ENT(240, 10, 0),
  54. RATETAB_ENT(360, 11, 0),
  55. RATETAB_ENT(480, 12, 0),
  56. RATETAB_ENT(540, 13, 0),
  57. };
  58. #define CHAN2G(_channel, _freq, _flags) { \
  59. .band = NL80211_BAND_2GHZ, \
  60. .center_freq = (_freq), \
  61. .hw_value = (_channel), \
  62. .flags = (_flags), \
  63. .max_antenna_gain = 0, \
  64. .max_power = 30, \
  65. }
  66. static struct ieee80211_channel wfx_2ghz_chantable[] = {
  67. CHAN2G(1, 2412, 0),
  68. CHAN2G(2, 2417, 0),
  69. CHAN2G(3, 2422, 0),
  70. CHAN2G(4, 2427, 0),
  71. CHAN2G(5, 2432, 0),
  72. CHAN2G(6, 2437, 0),
  73. CHAN2G(7, 2442, 0),
  74. CHAN2G(8, 2447, 0),
  75. CHAN2G(9, 2452, 0),
  76. CHAN2G(10, 2457, 0),
  77. CHAN2G(11, 2462, 0),
  78. CHAN2G(12, 2467, 0),
  79. CHAN2G(13, 2472, 0),
  80. CHAN2G(14, 2484, 0),
  81. };
  82. static const struct ieee80211_supported_band wfx_band_2ghz = {
  83. .channels = wfx_2ghz_chantable,
  84. .n_channels = ARRAY_SIZE(wfx_2ghz_chantable),
  85. .bitrates = wfx_rates,
  86. .n_bitrates = ARRAY_SIZE(wfx_rates),
  87. .ht_cap = {
  88. /* Receive caps */
  89. .cap = IEEE80211_HT_CAP_GRN_FLD | IEEE80211_HT_CAP_SGI_20 |
  90. IEEE80211_HT_CAP_MAX_AMSDU | (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT),
  91. .ht_supported = 1,
  92. .ampdu_factor = IEEE80211_HT_MAX_AMPDU_16K,
  93. .ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE,
  94. .mcs = {
  95. .rx_mask = { 0xFF }, /* MCS0 to MCS7 */
  96. .rx_highest = cpu_to_le16(72),
  97. .tx_params = IEEE80211_HT_MCS_TX_DEFINED,
  98. },
  99. },
  100. };
  101. static const struct ieee80211_iface_limit wdev_iface_limits[] = {
  102. { .max = 1, .types = BIT(NL80211_IFTYPE_STATION) },
  103. { .max = 1, .types = BIT(NL80211_IFTYPE_AP) },
  104. };
  105. static const struct ieee80211_iface_combination wfx_iface_combinations[] = {
  106. {
  107. .num_different_channels = 2,
  108. .max_interfaces = 2,
  109. .limits = wdev_iface_limits,
  110. .n_limits = ARRAY_SIZE(wdev_iface_limits),
  111. }
  112. };
  113. static const struct ieee80211_ops wfx_ops = {
  114. .start = wfx_start,
  115. .stop = wfx_stop,
  116. .add_interface = wfx_add_interface,
  117. .remove_interface = wfx_remove_interface,
  118. .config = wfx_config,
  119. .tx = wfx_tx,
  120. .join_ibss = wfx_join_ibss,
  121. .leave_ibss = wfx_leave_ibss,
  122. .conf_tx = wfx_conf_tx,
  123. .hw_scan = wfx_hw_scan,
  124. .cancel_hw_scan = wfx_cancel_hw_scan,
  125. .start_ap = wfx_start_ap,
  126. .stop_ap = wfx_stop_ap,
  127. .sta_add = wfx_sta_add,
  128. .sta_remove = wfx_sta_remove,
  129. .set_tim = wfx_set_tim,
  130. .set_key = wfx_set_key,
  131. .set_rts_threshold = wfx_set_rts_threshold,
  132. .set_default_unicast_key = wfx_set_default_unicast_key,
  133. .bss_info_changed = wfx_bss_info_changed,
  134. .configure_filter = wfx_configure_filter,
  135. .ampdu_action = wfx_ampdu_action,
  136. .flush = wfx_flush,
  137. .add_chanctx = wfx_add_chanctx,
  138. .remove_chanctx = wfx_remove_chanctx,
  139. .change_chanctx = wfx_change_chanctx,
  140. .assign_vif_chanctx = wfx_assign_vif_chanctx,
  141. .unassign_vif_chanctx = wfx_unassign_vif_chanctx,
  142. };
  143. bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor)
  144. {
  145. if (wdev->hw_caps.api_version_major < major)
  146. return true;
  147. if (wdev->hw_caps.api_version_major > major)
  148. return false;
  149. if (wdev->hw_caps.api_version_minor < minor)
  150. return true;
  151. return false;
  152. }
  153. /* The device needs data about the antenna configuration. This information in provided by PDS
  154. * (Platform Data Set, this is the wording used in WF200 documentation) files. For hardware
  155. * integrators, the full process to create PDS files is described here:
  156. * https://github.com/SiliconLabs/wfx-firmware/blob/master/PDS/README.md
  157. *
  158. * The PDS file is an array of Time-Length-Value structs.
  159. */
  160. int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len)
  161. {
  162. int ret, chunk_type, chunk_len, chunk_num = 0;
  163. if (*buf == '{') {
  164. dev_err(wdev->dev, "PDS: malformed file (legacy format?)\n");
  165. return -EINVAL;
  166. }
  167. while (len > 0) {
  168. chunk_type = get_unaligned_le16(buf + 0);
  169. chunk_len = get_unaligned_le16(buf + 2);
  170. if (chunk_len < 4 || chunk_len > len) {
  171. dev_err(wdev->dev, "PDS:%d: corrupted file\n", chunk_num);
  172. return -EINVAL;
  173. }
  174. if (chunk_type != WFX_PDS_TLV_TYPE) {
  175. dev_info(wdev->dev, "PDS:%d: skip unknown data\n", chunk_num);
  176. goto next;
  177. }
  178. if (chunk_len > WFX_PDS_MAX_CHUNK_SIZE)
  179. dev_warn(wdev->dev, "PDS:%d: unexpectedly large chunk\n", chunk_num);
  180. if (buf[4] != '{' || buf[chunk_len - 1] != '}')
  181. dev_warn(wdev->dev, "PDS:%d: unexpected content\n", chunk_num);
  182. ret = wfx_hif_configuration(wdev, buf + 4, chunk_len - 4);
  183. if (ret > 0) {
  184. dev_err(wdev->dev, "PDS:%d: invalid data (unsupported options?)\n", chunk_num);
  185. return -EINVAL;
  186. }
  187. if (ret == -ETIMEDOUT) {
  188. dev_err(wdev->dev, "PDS:%d: chip didn't reply (corrupted file?)\n", chunk_num);
  189. return ret;
  190. }
  191. if (ret) {
  192. dev_err(wdev->dev, "PDS:%d: chip returned an unknown error\n", chunk_num);
  193. return -EIO;
  194. }
  195. next:
  196. chunk_num++;
  197. len -= chunk_len;
  198. buf += chunk_len;
  199. }
  200. return 0;
  201. }
  202. static int wfx_send_pdata_pds(struct wfx_dev *wdev)
  203. {
  204. int ret = 0;
  205. const struct firmware *pds;
  206. u8 *tmp_buf;
  207. ret = request_firmware(&pds, wdev->pdata.file_pds, wdev->dev);
  208. if (ret) {
  209. dev_err(wdev->dev, "can't load antenna parameters (PDS file %s). The device may be unstable.\n",
  210. wdev->pdata.file_pds);
  211. return ret;
  212. }
  213. tmp_buf = kmemdup(pds->data, pds->size, GFP_KERNEL);
  214. if (!tmp_buf) {
  215. ret = -ENOMEM;
  216. goto release_fw;
  217. }
  218. ret = wfx_send_pds(wdev, tmp_buf, pds->size);
  219. kfree(tmp_buf);
  220. release_fw:
  221. release_firmware(pds);
  222. return ret;
  223. }
  224. static void wfx_free_common(void *data)
  225. {
  226. struct wfx_dev *wdev = data;
  227. mutex_destroy(&wdev->tx_power_loop_info_lock);
  228. mutex_destroy(&wdev->rx_stats_lock);
  229. mutex_destroy(&wdev->conf_mutex);
  230. ieee80211_free_hw(wdev->hw);
  231. }
  232. struct wfx_dev *wfx_init_common(struct device *dev, const struct wfx_platform_data *pdata,
  233. const struct wfx_hwbus_ops *hwbus_ops, void *hwbus_priv)
  234. {
  235. struct ieee80211_hw *hw;
  236. struct wfx_dev *wdev;
  237. hw = ieee80211_alloc_hw(sizeof(struct wfx_dev), &wfx_ops);
  238. if (!hw)
  239. return NULL;
  240. SET_IEEE80211_DEV(hw, dev);
  241. ieee80211_hw_set(hw, TX_AMPDU_SETUP_IN_HW);
  242. ieee80211_hw_set(hw, AMPDU_AGGREGATION);
  243. ieee80211_hw_set(hw, CONNECTION_MONITOR);
  244. ieee80211_hw_set(hw, REPORTS_TX_ACK_STATUS);
  245. ieee80211_hw_set(hw, SUPPORTS_DYNAMIC_PS);
  246. ieee80211_hw_set(hw, SIGNAL_DBM);
  247. ieee80211_hw_set(hw, SUPPORTS_PS);
  248. ieee80211_hw_set(hw, MFP_CAPABLE);
  249. hw->vif_data_size = sizeof(struct wfx_vif);
  250. hw->sta_data_size = sizeof(struct wfx_sta_priv);
  251. hw->queues = 4;
  252. hw->max_rates = 8;
  253. hw->max_rate_tries = 8;
  254. hw->extra_tx_headroom = sizeof(struct wfx_hif_msg) + sizeof(struct wfx_hif_req_tx) +
  255. 4 /* alignment */ + 8 /* TKIP IV */;
  256. hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
  257. BIT(NL80211_IFTYPE_ADHOC) |
  258. BIT(NL80211_IFTYPE_AP);
  259. hw->wiphy->probe_resp_offload = NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS |
  260. NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 |
  261. NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P |
  262. NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U;
  263. hw->wiphy->features |= NL80211_FEATURE_AP_SCAN;
  264. hw->wiphy->flags |= WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD;
  265. hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
  266. hw->wiphy->max_ap_assoc_sta = HIF_LINK_ID_MAX;
  267. hw->wiphy->max_scan_ssids = 2;
  268. hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
  269. hw->wiphy->n_iface_combinations = ARRAY_SIZE(wfx_iface_combinations);
  270. hw->wiphy->iface_combinations = wfx_iface_combinations;
  271. hw->wiphy->bands[NL80211_BAND_2GHZ] = devm_kmalloc(dev, sizeof(wfx_band_2ghz), GFP_KERNEL);
  272. if (!hw->wiphy->bands[NL80211_BAND_2GHZ])
  273. goto err;
  274. /* FIXME: also copy wfx_rates and wfx_2ghz_chantable */
  275. memcpy(hw->wiphy->bands[NL80211_BAND_2GHZ], &wfx_band_2ghz, sizeof(wfx_band_2ghz));
  276. wdev = hw->priv;
  277. wdev->hw = hw;
  278. wdev->dev = dev;
  279. wdev->hwbus_ops = hwbus_ops;
  280. wdev->hwbus_priv = hwbus_priv;
  281. memcpy(&wdev->pdata, pdata, sizeof(*pdata));
  282. of_property_read_string(dev->of_node, "silabs,antenna-config-file", &wdev->pdata.file_pds);
  283. wdev->pdata.gpio_wakeup = devm_gpiod_get_optional(dev, "wakeup", GPIOD_OUT_LOW);
  284. if (IS_ERR(wdev->pdata.gpio_wakeup))
  285. goto err;
  286. if (wdev->pdata.gpio_wakeup)
  287. gpiod_set_consumer_name(wdev->pdata.gpio_wakeup, "wfx wakeup");
  288. mutex_init(&wdev->conf_mutex);
  289. mutex_init(&wdev->rx_stats_lock);
  290. mutex_init(&wdev->tx_power_loop_info_lock);
  291. init_completion(&wdev->firmware_ready);
  292. INIT_DELAYED_WORK(&wdev->cooling_timeout_work, wfx_cooling_timeout_work);
  293. skb_queue_head_init(&wdev->tx_pending);
  294. init_waitqueue_head(&wdev->tx_dequeue);
  295. wfx_init_hif_cmd(&wdev->hif_cmd);
  296. if (devm_add_action_or_reset(dev, wfx_free_common, wdev))
  297. return NULL;
  298. return wdev;
  299. err:
  300. ieee80211_free_hw(hw);
  301. return NULL;
  302. }
  303. int wfx_probe(struct wfx_dev *wdev)
  304. {
  305. int i;
  306. int err;
  307. struct gpio_desc *gpio_saved;
  308. /* During first part of boot, gpio_wakeup cannot yet been used. So prevent bh() to touch
  309. * it.
  310. */
  311. gpio_saved = wdev->pdata.gpio_wakeup;
  312. wdev->pdata.gpio_wakeup = NULL;
  313. wdev->poll_irq = true;
  314. wdev->bh_wq = alloc_workqueue("wfx_bh_wq", WQ_HIGHPRI, 0);
  315. if (!wdev->bh_wq)
  316. return -ENOMEM;
  317. wfx_bh_register(wdev);
  318. err = wfx_init_device(wdev);
  319. if (err)
  320. goto bh_unregister;
  321. wfx_bh_poll_irq(wdev);
  322. err = wait_for_completion_timeout(&wdev->firmware_ready, 1 * HZ);
  323. if (err <= 0) {
  324. if (err == 0) {
  325. dev_err(wdev->dev, "timeout while waiting for startup indication\n");
  326. err = -ETIMEDOUT;
  327. } else if (err == -ERESTARTSYS) {
  328. dev_info(wdev->dev, "probe interrupted by user\n");
  329. }
  330. goto bh_unregister;
  331. }
  332. /* FIXME: fill wiphy::hw_version */
  333. dev_info(wdev->dev, "started firmware %d.%d.%d \"%s\" (API: %d.%d, keyset: %02X, caps: 0x%.8X)\n",
  334. wdev->hw_caps.firmware_major, wdev->hw_caps.firmware_minor,
  335. wdev->hw_caps.firmware_build, wdev->hw_caps.firmware_label,
  336. wdev->hw_caps.api_version_major, wdev->hw_caps.api_version_minor,
  337. wdev->keyset, wdev->hw_caps.link_mode);
  338. snprintf(wdev->hw->wiphy->fw_version,
  339. sizeof(wdev->hw->wiphy->fw_version),
  340. "%d.%d.%d",
  341. wdev->hw_caps.firmware_major,
  342. wdev->hw_caps.firmware_minor,
  343. wdev->hw_caps.firmware_build);
  344. if (wfx_api_older_than(wdev, 1, 0)) {
  345. dev_err(wdev->dev, "unsupported firmware API version (expect 1 while firmware returns %d)\n",
  346. wdev->hw_caps.api_version_major);
  347. err = -EOPNOTSUPP;
  348. goto bh_unregister;
  349. }
  350. if (wdev->hw_caps.link_mode == SEC_LINK_ENFORCED) {
  351. dev_err(wdev->dev, "chip require secure_link, but can't negotiate it\n");
  352. goto bh_unregister;
  353. }
  354. if (wdev->hw_caps.region_sel_mode) {
  355. wdev->hw->wiphy->regulatory_flags |= REGULATORY_DISABLE_BEACON_HINTS;
  356. wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]->channels[11].flags |=
  357. IEEE80211_CHAN_NO_IR;
  358. wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]->channels[12].flags |=
  359. IEEE80211_CHAN_NO_IR;
  360. wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]->channels[13].flags |=
  361. IEEE80211_CHAN_DISABLED;
  362. }
  363. dev_dbg(wdev->dev, "sending configuration file %s\n", wdev->pdata.file_pds);
  364. err = wfx_send_pdata_pds(wdev);
  365. if (err < 0 && err != -ENOENT)
  366. goto bh_unregister;
  367. wdev->poll_irq = false;
  368. err = wdev->hwbus_ops->irq_subscribe(wdev->hwbus_priv);
  369. if (err)
  370. goto bh_unregister;
  371. err = wfx_hif_use_multi_tx_conf(wdev, true);
  372. if (err)
  373. dev_err(wdev->dev, "misconfigured IRQ?\n");
  374. wdev->pdata.gpio_wakeup = gpio_saved;
  375. if (wdev->pdata.gpio_wakeup) {
  376. dev_dbg(wdev->dev, "enable 'quiescent' power mode with wakeup GPIO and PDS file %s\n",
  377. wdev->pdata.file_pds);
  378. gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 1);
  379. wfx_control_reg_write(wdev, 0);
  380. wfx_hif_set_operational_mode(wdev, HIF_OP_POWER_MODE_QUIESCENT);
  381. } else {
  382. wfx_hif_set_operational_mode(wdev, HIF_OP_POWER_MODE_DOZE);
  383. }
  384. for (i = 0; i < ARRAY_SIZE(wdev->addresses); i++) {
  385. eth_zero_addr(wdev->addresses[i].addr);
  386. err = of_get_mac_address(wdev->dev->of_node, wdev->addresses[i].addr);
  387. if (!err)
  388. wdev->addresses[i].addr[ETH_ALEN - 1] += i;
  389. else
  390. ether_addr_copy(wdev->addresses[i].addr, wdev->hw_caps.mac_addr[i]);
  391. if (!is_valid_ether_addr(wdev->addresses[i].addr)) {
  392. dev_warn(wdev->dev, "using random MAC address\n");
  393. eth_random_addr(wdev->addresses[i].addr);
  394. }
  395. dev_info(wdev->dev, "MAC address %d: %pM\n", i, wdev->addresses[i].addr);
  396. }
  397. wdev->hw->wiphy->n_addresses = ARRAY_SIZE(wdev->addresses);
  398. wdev->hw->wiphy->addresses = wdev->addresses;
  399. if (!wfx_api_older_than(wdev, 3, 8))
  400. wdev->hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS;
  401. err = ieee80211_register_hw(wdev->hw);
  402. if (err)
  403. goto irq_unsubscribe;
  404. err = wfx_debug_init(wdev);
  405. if (err)
  406. goto ieee80211_unregister;
  407. return 0;
  408. ieee80211_unregister:
  409. ieee80211_unregister_hw(wdev->hw);
  410. irq_unsubscribe:
  411. wdev->hwbus_ops->irq_unsubscribe(wdev->hwbus_priv);
  412. bh_unregister:
  413. wfx_bh_unregister(wdev);
  414. destroy_workqueue(wdev->bh_wq);
  415. return err;
  416. }
  417. void wfx_release(struct wfx_dev *wdev)
  418. {
  419. ieee80211_unregister_hw(wdev->hw);
  420. wfx_hif_shutdown(wdev);
  421. wdev->hwbus_ops->irq_unsubscribe(wdev->hwbus_priv);
  422. wfx_bh_unregister(wdev);
  423. destroy_workqueue(wdev->bh_wq);
  424. }
  425. static int __init wfx_core_init(void)
  426. {
  427. int ret = 0;
  428. if (IS_ENABLED(CONFIG_SPI))
  429. ret = spi_register_driver(&wfx_spi_driver);
  430. if (IS_ENABLED(CONFIG_MMC) && !ret)
  431. ret = sdio_register_driver(&wfx_sdio_driver);
  432. return ret;
  433. }
  434. module_init(wfx_core_init);
  435. static void __exit wfx_core_exit(void)
  436. {
  437. if (IS_ENABLED(CONFIG_MMC))
  438. sdio_unregister_driver(&wfx_sdio_driver);
  439. if (IS_ENABLED(CONFIG_SPI))
  440. spi_unregister_driver(&wfx_spi_driver);
  441. }
  442. module_exit(wfx_core_exit);