[PATCH] hostap: Restore antenna selection settings after port reset
authorPavel Roskin <proski@gnu.org>
Wed, 16 Aug 2006 01:41:39 +0000 (21:41 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Aug 2006 18:20:37 +0000 (14:20 -0400)
Intersil firmware 1.7.4 (and possibly others) loses the antenna
selection settings when the port is reset.

Signed-off-by: David Acker <dacker@roinet.com>
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_hw.c

index dafaa5ff5aa693d065f85cc4777e1c53c3c7054a..d500012fdc7a5446aef8315c5dc7172ee4b2eb8e 100644 (file)
@@ -1042,6 +1042,9 @@ static int prism2_reset_port(struct net_device *dev)
                       dev->name, local->fragm_threshold);
        }
 
+       /* Some firmwares lose antenna selection settings on reset */
+       (void) hostap_set_antsel(local);
+
        return res;
 }