blob: 4dc4573b686175eacbf585bf12b54d95855ab6af [file] [log] [blame]
Teemu Paasikivi5129dff2010-02-22 08:38:27 +02001/*
2 * This file is part of wl1271
3 *
4 * Copyright (C) 2009-2010 Nokia Corporation
5 *
6 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23
24#include <linux/irq.h>
25#include <linux/module.h>
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020026#include <linux/vmalloc.h>
27#include <linux/mmc/sdio_func.h>
28#include <linux/mmc/sdio_ids.h>
29#include <linux/mmc/card.h>
Ido Yariv11251e72011-02-28 00:13:58 +020030#include <linux/mmc/host.h>
Ohad Ben-Cohen19b87172010-05-13 12:43:24 +030031#include <linux/gpio.h>
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +020032#include <linux/wl12xx.h>
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +030033#include <linux/pm_runtime.h>
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020034
Shahar Levi00d20102010-11-08 11:20:10 +000035#include "wl12xx.h"
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020036#include "wl12xx_80211.h"
Shahar Levi00d20102010-11-08 11:20:10 +000037#include "io.h"
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020038
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020039#ifndef SDIO_VENDOR_ID_TI
40#define SDIO_VENDOR_ID_TI 0x0097
41#endif
42
43#ifndef SDIO_DEVICE_ID_TI_WL1271
44#define SDIO_DEVICE_ID_TI_WL1271 0x4076
45#endif
46
Felipe Balbi33dd74c2011-05-14 00:26:18 +030047static const struct sdio_device_id wl1271_devices[] __devinitconst = {
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020048 { SDIO_DEVICE(SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271) },
49 {}
50};
51MODULE_DEVICE_TABLE(sdio, wl1271_devices);
52
Ido Yariv0da13da2011-03-31 10:06:58 +020053static void wl1271_sdio_set_block_size(struct wl1271 *wl, unsigned int blksz)
Luciano Coelhoa81159e2011-03-14 14:05:13 +020054{
Luciano Coelhoa81159e2011-03-14 14:05:13 +020055 sdio_claim_host(wl->if_priv);
Ido Yariv0da13da2011-03-31 10:06:58 +020056 sdio_set_block_size(wl->if_priv, blksz);
Luciano Coelhoa81159e2011-03-14 14:05:13 +020057 sdio_release_host(wl->if_priv);
58}
59
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020060static inline struct sdio_func *wl_to_func(struct wl1271 *wl)
61{
62 return wl->if_priv;
63}
64
65static struct device *wl1271_sdio_wl_to_dev(struct wl1271 *wl)
66{
67 return &(wl_to_func(wl)->dev);
68}
69
Ido Yariva6208652011-03-01 15:14:41 +020070static irqreturn_t wl1271_hardirq(int irq, void *cookie)
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020071{
72 struct wl1271 *wl = cookie;
73 unsigned long flags;
74
75 wl1271_debug(DEBUG_IRQ, "IRQ");
76
77 /* complete the ELP completion */
78 spin_lock_irqsave(&wl->wl_lock, flags);
Ido Yariva6208652011-03-01 15:14:41 +020079 set_bit(WL1271_FLAG_IRQ_RUNNING, &wl->flags);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020080 if (wl->elp_compl) {
81 complete(wl->elp_compl);
82 wl->elp_compl = NULL;
83 }
Eliad Pellerf44e5862011-05-13 11:57:11 +030084
85 if (test_bit(WL1271_FLAG_SUSPENDED, &wl->flags)) {
86 /* don't enqueue a work right now. mark it as pending */
87 set_bit(WL1271_FLAG_PENDING_WORK, &wl->flags);
88 wl1271_debug(DEBUG_IRQ, "should not enqueue work");
89 disable_irq_nosync(wl->irq);
90 pm_wakeup_event(wl1271_sdio_wl_to_dev(wl), 0);
91 spin_unlock_irqrestore(&wl->wl_lock, flags);
92 return IRQ_HANDLED;
93 }
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020094 spin_unlock_irqrestore(&wl->wl_lock, flags);
95
Ido Yariva6208652011-03-01 15:14:41 +020096 return IRQ_WAKE_THREAD;
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020097}
98
99static void wl1271_sdio_disable_interrupts(struct wl1271 *wl)
100{
101 disable_irq(wl->irq);
102}
103
104static void wl1271_sdio_enable_interrupts(struct wl1271 *wl)
105{
106 enable_irq(wl->irq);
107}
108
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200109static void wl1271_sdio_raw_read(struct wl1271 *wl, int addr, void *buf,
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200110 size_t len, bool fixed)
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200111{
112 int ret;
113 struct sdio_func *func = wl_to_func(wl);
114
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200115 if (unlikely(addr == HW_ACCESS_ELP_CTRL_REG_ADDR)) {
116 ((u8 *)buf)[0] = sdio_f0_readb(func, addr, &ret);
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200117 wl1271_debug(DEBUG_SDIO, "sdio read 52 addr 0x%x, byte 0x%02x",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200118 addr, ((u8 *)buf)[0]);
119 } else {
120 if (fixed)
121 ret = sdio_readsb(func, buf, addr, len);
122 else
123 ret = sdio_memcpy_fromio(func, buf, addr, len);
124
Teemu Paasikivi99e50312010-03-26 12:53:16 +0200125 wl1271_debug(DEBUG_SDIO, "sdio read 53 addr 0x%x, %zu bytes",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200126 addr, len);
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200127 wl1271_dump_ascii(DEBUG_SDIO, "data: ", buf, len);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200128 }
129
130 if (ret)
131 wl1271_error("sdio read failed (%d)", ret);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200132}
133
134static void wl1271_sdio_raw_write(struct wl1271 *wl, int addr, void *buf,
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200135 size_t len, bool fixed)
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200136{
137 int ret;
138 struct sdio_func *func = wl_to_func(wl);
139
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200140 if (unlikely(addr == HW_ACCESS_ELP_CTRL_REG_ADDR)) {
141 sdio_f0_writeb(func, ((u8 *)buf)[0], addr, &ret);
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200142 wl1271_debug(DEBUG_SDIO, "sdio write 52 addr 0x%x, byte 0x%02x",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200143 addr, ((u8 *)buf)[0]);
144 } else {
Teemu Paasikivi99e50312010-03-26 12:53:16 +0200145 wl1271_debug(DEBUG_SDIO, "sdio write 53 addr 0x%x, %zu bytes",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200146 addr, len);
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200147 wl1271_dump_ascii(DEBUG_SDIO, "data: ", buf, len);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200148
149 if (fixed)
150 ret = sdio_writesb(func, addr, buf, len);
151 else
152 ret = sdio_memcpy_toio(func, addr, buf, len);
153 }
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300154
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200155 if (ret)
156 wl1271_error("sdio write failed (%d)", ret);
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300157}
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200158
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200159static int wl1271_sdio_power_on(struct wl1271 *wl)
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300160{
161 struct sdio_func *func = wl_to_func(wl);
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300162 int ret;
163
Ohad Ben-Cohen86046da2011-05-29 16:36:03 +0300164 /* If enabled, tell runtime PM not to power off the card */
165 if (pm_runtime_enabled(&func->dev)) {
166 ret = pm_runtime_get_sync(&func->dev);
167 if (ret)
168 goto out;
169 }
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300170
Ido Yariv11251e72011-02-28 00:13:58 +0200171 /* Runtime PM might be disabled, so power up the card manually */
172 ret = mmc_power_restore_host(func->card->host);
173 if (ret < 0)
174 goto out;
175
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300176 sdio_claim_host(func);
177 sdio_enable_func(func);
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200178
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300179out:
180 return ret;
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300181}
182
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200183static int wl1271_sdio_power_off(struct wl1271 *wl)
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300184{
185 struct sdio_func *func = wl_to_func(wl);
Ido Yariv11251e72011-02-28 00:13:58 +0200186 int ret;
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300187
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300188 sdio_disable_func(func);
189 sdio_release_host(func);
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200190
Ido Yariv11251e72011-02-28 00:13:58 +0200191 /* Runtime PM might be disabled, so power off the card manually */
192 ret = mmc_power_save_host(func->card->host);
193 if (ret < 0)
194 return ret;
195
Ohad Ben-Cohen86046da2011-05-29 16:36:03 +0300196 /* If enabled, let runtime PM know the card is powered off */
197 if (pm_runtime_enabled(&func->dev))
198 ret = pm_runtime_put_sync(&func->dev);
199
200 return ret;
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200201}
202
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200203static int wl1271_sdio_set_power(struct wl1271 *wl, bool enable)
Teemu Paasikivibecd5512010-03-18 12:26:27 +0200204{
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300205 if (enable)
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200206 return wl1271_sdio_power_on(wl);
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300207 else
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200208 return wl1271_sdio_power_off(wl);
Teemu Paasikivibecd5512010-03-18 12:26:27 +0200209}
210
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200211static struct wl1271_if_operations sdio_ops = {
212 .read = wl1271_sdio_raw_read,
213 .write = wl1271_sdio_raw_write,
Teemu Paasikivibecd5512010-03-18 12:26:27 +0200214 .power = wl1271_sdio_set_power,
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200215 .dev = wl1271_sdio_wl_to_dev,
216 .enable_irq = wl1271_sdio_enable_interrupts,
Luciano Coelhoa81159e2011-03-14 14:05:13 +0200217 .disable_irq = wl1271_sdio_disable_interrupts,
218 .set_block_size = wl1271_sdio_set_block_size,
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200219};
220
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200221static int __devinit wl1271_probe(struct sdio_func *func,
222 const struct sdio_device_id *id)
223{
224 struct ieee80211_hw *hw;
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +0200225 const struct wl12xx_platform_data *wlan_data;
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200226 struct wl1271 *wl;
Ido Yariv341b7cd2011-03-31 10:07:01 +0200227 unsigned long irqflags;
Eliad Pellerf795ea82011-05-13 11:57:12 +0300228 mmc_pm_flag_t mmcflags;
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200229 int ret;
230
231 /* We are only able to handle the wlan function */
232 if (func->num != 0x02)
233 return -ENODEV;
234
235 hw = wl1271_alloc_hw();
236 if (IS_ERR(hw))
237 return PTR_ERR(hw);
238
239 wl = hw->priv;
240
241 wl->if_priv = func;
242 wl->if_ops = &sdio_ops;
243
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200244 /* Grab access to FN0 for ELP reg. */
245 func->card->quirks |= MMC_QUIRK_LENIENT_FN0;
246
Arik Nemtsov1d732e82011-03-18 14:49:57 +0200247 /* Use block mode for transferring over one block size of data */
248 func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE;
249
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +0200250 wlan_data = wl12xx_get_platform_data();
251 if (IS_ERR(wlan_data)) {
252 ret = PTR_ERR(wlan_data);
253 wl1271_error("missing wlan platform data: %d", ret);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200254 goto out_free;
255 }
256
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +0200257 wl->irq = wlan_data->irq;
Ohad Ben-Cohen15cea992010-09-16 01:31:51 +0200258 wl->ref_clock = wlan_data->board_ref_clock;
Shahar Levi5ea417a2011-03-06 16:32:11 +0200259 wl->tcxo_clock = wlan_data->board_tcxo_clock;
Ido Yariv341b7cd2011-03-31 10:07:01 +0200260 wl->platform_quirks = wlan_data->platform_quirks;
261
262 if (wl->platform_quirks & WL12XX_PLATFORM_QUIRK_EDGE_IRQ)
263 irqflags = IRQF_TRIGGER_RISING;
264 else
265 irqflags = IRQF_TRIGGER_HIGH | IRQF_ONESHOT;
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +0200266
Ido Yariva6208652011-03-01 15:14:41 +0200267 ret = request_threaded_irq(wl->irq, wl1271_hardirq, wl1271_irq,
Ido Yariv341b7cd2011-03-31 10:07:01 +0200268 irqflags,
Ido Yariva6208652011-03-01 15:14:41 +0200269 DRIVER_NAME, wl);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200270 if (ret < 0) {
271 wl1271_error("request_irq() failed: %d", ret);
272 goto out_free;
273 }
274
Eliad Peller6bb04332011-06-06 12:21:55 +0300275 ret = enable_irq_wake(wl->irq);
276 if (!ret) {
277 wl->irq_wake_enabled = true;
278 device_init_wakeup(wl1271_sdio_wl_to_dev(wl), 1);
Eliad Peller2c0f2462011-05-13 11:57:08 +0300279
Eliad Peller6bb04332011-06-06 12:21:55 +0300280 /* if sdio can keep power while host is suspended, enable wow */
281 mmcflags = sdio_get_host_pm_caps(func);
282 wl1271_debug(DEBUG_SDIO, "sdio PM caps = 0x%x", mmcflags);
283
284 if (mmcflags & MMC_PM_KEEP_POWER)
285 hw->wiphy->wowlan.flags = WIPHY_WOWLAN_ANY;
286 }
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200287 disable_irq(wl->irq);
288
289 ret = wl1271_init_ieee80211(wl);
290 if (ret)
291 goto out_irq;
292
293 ret = wl1271_register_hw(wl);
294 if (ret)
295 goto out_irq;
296
Teemu Paasikivi49d7f6d2010-02-22 08:38:29 +0200297 sdio_set_drvdata(func, wl);
298
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300299 /* Tell PM core that we don't need the card to be powered now */
300 pm_runtime_put_noidle(&func->dev);
301
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200302 return 0;
303
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200304 out_irq:
305 free_irq(wl->irq, wl);
306
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200307 out_free:
Teemu Paasikivi3b56dd62010-03-18 12:26:46 +0200308 wl1271_free_hw(wl);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200309
310 return ret;
311}
312
313static void __devexit wl1271_remove(struct sdio_func *func)
314{
315 struct wl1271 *wl = sdio_get_drvdata(func);
316
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300317 /* Undo decrement done above in wl1271_probe */
318 pm_runtime_get_noresume(&func->dev);
319
Teemu Paasikivi3b56dd62010-03-18 12:26:46 +0200320 wl1271_unregister_hw(wl);
Eliad Peller6bb04332011-06-06 12:21:55 +0300321 if (wl->irq_wake_enabled) {
322 device_init_wakeup(wl1271_sdio_wl_to_dev(wl), 0);
323 disable_irq_wake(wl->irq);
324 }
Juuso Oikarinen4e23b112010-08-13 04:46:48 +0200325 free_irq(wl->irq, wl);
Teemu Paasikivi801a6732010-03-18 12:26:42 +0200326 wl1271_free_hw(wl);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200327}
328
Luciano Coelhof634a4e2011-05-18 16:51:26 -0400329#ifdef CONFIG_PM
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300330static int wl1271_suspend(struct device *dev)
331{
332 /* Tell MMC/SDIO core it's OK to power down the card
333 * (if it isn't already), but not to remove it completely */
Eliad Peller039bdb12011-05-13 11:57:10 +0300334 struct sdio_func *func = dev_to_sdio_func(dev);
335 struct wl1271 *wl = sdio_get_drvdata(func);
336 mmc_pm_flag_t sdio_flags;
337 int ret = 0;
338
339 wl1271_debug(DEBUG_MAC80211, "wl1271 suspend. wow_enabled: %d",
340 wl->wow_enabled);
341
342 /* check whether sdio should keep power */
343 if (wl->wow_enabled) {
344 sdio_flags = sdio_get_host_pm_caps(func);
345
346 if (!(sdio_flags & MMC_PM_KEEP_POWER)) {
347 wl1271_error("can't keep power while host "
348 "is suspended");
349 ret = -EINVAL;
350 goto out;
351 }
352
353 /* keep power while host suspended */
354 ret = sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER);
355 if (ret) {
356 wl1271_error("error while trying to keep power");
357 goto out;
358 }
Eliad Pellerf44e5862011-05-13 11:57:11 +0300359
360 /* release host */
361 sdio_release_host(func);
Eliad Peller039bdb12011-05-13 11:57:10 +0300362 }
363out:
364 return ret;
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300365}
366
367static int wl1271_resume(struct device *dev)
368{
Eliad Pellerf44e5862011-05-13 11:57:11 +0300369 struct sdio_func *func = dev_to_sdio_func(dev);
370 struct wl1271 *wl = sdio_get_drvdata(func);
371
372 wl1271_debug(DEBUG_MAC80211, "wl1271 resume");
373 if (wl->wow_enabled) {
374 /* claim back host */
375 sdio_claim_host(func);
376 }
377
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300378 return 0;
379}
380
381static const struct dev_pm_ops wl1271_sdio_pm_ops = {
382 .suspend = wl1271_suspend,
383 .resume = wl1271_resume,
384};
Luciano Coelhof634a4e2011-05-18 16:51:26 -0400385#endif
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300386
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200387static struct sdio_driver wl1271_sdio_driver = {
Luciano Coelhof4b5d8d2010-04-01 11:38:17 +0300388 .name = "wl1271_sdio",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200389 .id_table = wl1271_devices,
390 .probe = wl1271_probe,
391 .remove = __devexit_p(wl1271_remove),
Luciano Coelhof634a4e2011-05-18 16:51:26 -0400392#ifdef CONFIG_PM
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300393 .drv = {
394 .pm = &wl1271_sdio_pm_ops,
395 },
Luciano Coelhof634a4e2011-05-18 16:51:26 -0400396#endif
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200397};
398
399static int __init wl1271_init(void)
400{
Felipe Balbi6bdaf792011-05-14 00:26:20 +0300401 return sdio_register_driver(&wl1271_sdio_driver);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200402}
403
404static void __exit wl1271_exit(void)
405{
406 sdio_unregister_driver(&wl1271_sdio_driver);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200407}
408
409module_init(wl1271_init);
410module_exit(wl1271_exit);
411
412MODULE_LICENSE("GPL");
Luciano Coelho5245e3a2011-03-30 21:31:39 +0300413MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200414MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>");
415MODULE_FIRMWARE(WL1271_FW_NAME);
Shahar Levi5aa42342011-03-06 16:32:07 +0200416MODULE_FIRMWARE(WL128X_FW_NAME);
Arik Nemtsov1aed55f2011-03-06 16:32:18 +0200417MODULE_FIRMWARE(WL127X_AP_FW_NAME);
418MODULE_FIRMWARE(WL128X_AP_FW_NAME);