Skip to contentSkip to conversation

ath6kl: fix testmode when fw-2.bin or fw-3.bin is used

PATCH Applied Kalle Valo 1 participant 2 messages Jan 24, 2012 – Jan 30, 2012 Atheros ATH6KL wireless driver

lore
Share & tools
lore

Kalle Valo

author
#0 lore raw

PATCH 1/1 ath6kl: fix testmode when fw-2.bin or fw-3.bin is used

Testmode (TCMD and ART) was not enabled when fw-2.bin or fw-3.bin files were available, fix that by fetching testmode file just after the board file but before rest of the firmware files are fetched.

I also added testmode field to struct ath6kl and moved the module parameter to core.c. Now all module parameters are grouped in one place.

---
 drivers/net/wireless/ath/ath6kl/core.c |    4 ++
 drivers/net/wireless/ath/ath6kl/core.h |    1 
 drivers/net/wireless/ath/ath6kl/init.c |   74 ++++++++++++++++++++------------
 3 files changed, 51 insertions(+), 28 deletions(-)
drivers/net/wireless/ath/ath6kl/core.c +4 -0
index d764afe..a15966a 100644
@@ -28,11 +28,13 @@ unsigned int debug_mask;
 static bool suspend_cutpower;
 static unsigned int uart_debug;
 static unsigned int ath6kl_p2p;
+static unsigned int testmode;
 
 module_param(debug_mask, uint, 0644);
 module_param(suspend_cutpower, bool, 0444);
 module_param(uart_debug, uint, 0644);
 module_param(ath6kl_p2p, uint, 0644);
+module_param(testmode, uint, 0644);
 
 int ath6kl_core_init(struct ath6kl *ar)
 {
@@ -76,6 +78,8 @@ int ath6kl_core_init(struct ath6kl *ar)
 		goto err_power_off;
 	}
 
+	ar->testmode = testmode;
+
 	ret = ath6kl_init_fetch_firmwares(ar);
 	if (ret)
 		goto err_htc_cleanup;
drivers/net/wireless/ath/ath6kl/core.h +1 -0
index 67b22e4..3fba54e 100644
@@ -526,6 +526,7 @@ struct ath6kl {
 	struct wiphy *wiphy;
 
 	enum ath6kl_state state;
+	unsigned int testmode;
 
 	struct ath6kl_bmi bmi;
 	const struct ath6kl_hif_ops *hif_ops;
drivers/net/wireless/ath/ath6kl/init.c +46 -28

128 lines not on this page · raw message

author Applied
#1 lore raw
Quoted 8 lines · Kalle Valo

Testmode (TCMD and ART) was not enabled when fw-2.bin or fw-3.bin files were available, fix that by fetching testmode file just after the board file but before rest of the firmware files are fetched.

I also added testmode field to struct ath6kl and moved the module parameter to core.c. Now all module parameters are grouped in one place.

Applied.

Kalle