ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath10k: don't allow stand alone monitor mode for non-AP firmware
@ 2014-04-24  8:14 Chun-Yeow Yeoh
  2014-04-24  8:22 ` Kalle Valo
  2014-04-24  8:44 ` Michal Kazior
  0 siblings, 2 replies; 13+ messages in thread
From: Chun-Yeow Yeoh @ 2014-04-24  8:14 UTC (permalink / raw)
  To: linux-wireless; +Cc: kvalo, Chun-Yeow Yeoh, ath10k

Firmware 999.999.0.636 does not allow stand alone monitor
mode. This means that bridging the STA mode and put it into
promiscuous mode will also cause the firmware to crash. Avoid
this.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
---
 drivers/net/wireless/ath/ath10k/mac.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index e2c01dc..f640328 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -647,10 +647,15 @@ static int ath10k_monitor_vdev_delete(struct ath10k *ar)
 
 static int ath10k_monitor_start(struct ath10k *ar)
 {
-	int ret;
+	int ret = -1;
 
 	lockdep_assert_held(&ar->conf_mutex);
 
+	if (ar->fw_version_build == 636) {
+		ath10k_warn("stand alone monitor mode is not supported\n");
+		return ret;
+	}
+
 	if (!ath10k_monitor_is_enabled(ar)) {
 		ath10k_warn("trying to start monitor with no references\n");
 		return 0;
-- 
1.9.2


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-04-24 10:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24  8:14 [PATCH] ath10k: don't allow stand alone monitor mode for non-AP firmware Chun-Yeow Yeoh
2014-04-24  8:22 ` Kalle Valo
2014-04-24  8:40   ` Yeoh Chun-Yeow
2014-04-24  8:45     ` Kalle Valo
2014-04-24  9:19       ` Yeoh Chun-Yeow
2014-04-24  9:46         ` Kalle Valo
2014-04-24 10:14           ` Yeoh Chun-Yeow
2014-04-24  8:44 ` Michal Kazior
2014-04-24  8:50   ` Johannes Berg
2014-04-24  9:04     ` Michal Kazior
2014-04-24  8:50   ` Yeoh Chun-Yeow
2014-04-24  8:53     ` Michal Kazior
2014-04-24  9:09       ` Yeoh Chun-Yeow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox