[PATCH] Restore antenna selection settings after port reset

Pavel Roskin proski
Tue Aug 15 18:41:39 PDT 2006


From: Pavel Roskin <proski at gnu.org>

Intersil firmware 1.7.4 (and possibly others) loses the antenna
selection settings when the port is reset.

Signed-off-by: David Acker <dacker at roinet.com>
Signed-off-by: Pavel Roskin <proski at gnu.org>
---

 drivers/net/wireless/hostap/hostap_hw.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c
index dafaa5f..d500012 100644
--- a/drivers/net/wireless/hostap/hostap_hw.c
+++ b/drivers/net/wireless/hostap/hostap_hw.c
@@ -1042,6 +1042,9 @@ static int prism2_reset_port(struct net_
 		       dev->name, local->fragm_threshold);
 	}
 
+	/* Some firmwares lose antenna selection settings on reset */
+	(void) hostap_set_antsel(local);
+
 	return res;
 }
 




More information about the Hostap mailing list