diff options
Diffstat (limited to 'drivers/net/wireless/libertas/fw.c')
-rw-r--r-- | drivers/net/wireless/libertas/fw.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/wireless/libertas/fw.c b/drivers/net/wireless/libertas/fw.c index aa63a967635e..08c914b62bae 100644 --- a/drivers/net/wireless/libertas/fw.c +++ b/drivers/net/wireless/libertas/fw.c | |||
@@ -1,7 +1,6 @@ | |||
1 | /** | 1 | /** |
2 | * This file contains the initialization for FW and HW | 2 | * This file contains the initialization for FW and HW |
3 | */ | 3 | */ |
4 | #include <linux/moduleparam.h> | ||
5 | #include <linux/firmware.h> | 4 | #include <linux/firmware.h> |
6 | 5 | ||
7 | #include "host.h" | 6 | #include "host.h" |
@@ -11,9 +10,6 @@ | |||
11 | #include "wext.h" | 10 | #include "wext.h" |
12 | #include "if_usb.h" | 11 | #include "if_usb.h" |
13 | 12 | ||
14 | char *libertas_fw_name = NULL; | ||
15 | module_param_named(fw_name, libertas_fw_name, charp, 0644); | ||
16 | |||
17 | /** | 13 | /** |
18 | * @brief This function checks the validity of Boot2/FW image. | 14 | * @brief This function checks the validity of Boot2/FW image. |
19 | * | 15 | * |
@@ -67,18 +63,18 @@ static int check_fwfile_format(u8 *data, u32 totlen) | |||
67 | * @param priv A pointer to wlan_private structure | 63 | * @param priv A pointer to wlan_private structure |
68 | * @return 0 or -1 | 64 | * @return 0 or -1 |
69 | */ | 65 | */ |
70 | static int wlan_setup_station_hw(wlan_private * priv) | 66 | static int wlan_setup_station_hw(wlan_private * priv, char *fw_name) |
71 | { | 67 | { |
72 | int ret = -1; | 68 | int ret = -1; |
73 | wlan_adapter *adapter = priv->adapter; | 69 | wlan_adapter *adapter = priv->adapter; |
74 | 70 | ||
75 | lbs_deb_enter(LBS_DEB_FW); | 71 | lbs_deb_enter(LBS_DEB_FW); |
76 | 72 | ||
77 | if ((ret = request_firmware(&priv->firmware, libertas_fw_name, | 73 | if ((ret = request_firmware(&priv->firmware, fw_name, |
78 | priv->hotplug_device)) < 0) { | 74 | priv->hotplug_device)) < 0) { |
79 | lbs_pr_err("request_firmware() failed with %#x\n", | 75 | lbs_pr_err("request_firmware() failed with %#x\n", |
80 | ret); | 76 | ret); |
81 | lbs_pr_err("firmware %s not found\n", libertas_fw_name); | 77 | lbs_pr_err("firmware %s not found\n", fw_name); |
82 | goto done; | 78 | goto done; |
83 | } | 79 | } |
84 | 80 | ||
@@ -247,7 +243,7 @@ static void wlan_init_adapter(wlan_private * priv) | |||
247 | 243 | ||
248 | static void command_timer_fn(unsigned long data); | 244 | static void command_timer_fn(unsigned long data); |
249 | 245 | ||
250 | int libertas_init_fw(wlan_private * priv) | 246 | int libertas_init_fw(wlan_private * priv, char *fw_name) |
251 | { | 247 | { |
252 | int ret = -1; | 248 | int ret = -1; |
253 | wlan_adapter *adapter = priv->adapter; | 249 | wlan_adapter *adapter = priv->adapter; |
@@ -266,7 +262,7 @@ int libertas_init_fw(wlan_private * priv) | |||
266 | (unsigned long)priv); | 262 | (unsigned long)priv); |
267 | 263 | ||
268 | /* download fimrware etc. */ | 264 | /* download fimrware etc. */ |
269 | if ((ret = wlan_setup_station_hw(priv)) != 0) { | 265 | if ((ret = wlan_setup_station_hw(priv, fw_name)) != 0) { |
270 | del_timer_sync(&adapter->command_timer); | 266 | del_timer_sync(&adapter->command_timer); |
271 | goto done; | 267 | goto done; |
272 | } | 268 | } |