]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Merge branch 'upstream-fixes' into upstream
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Aug 2006 18:22:14 +0000 (14:22 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Aug 2006 18:22:14 +0000 (14:22 -0400)
drivers/net/wireless/hostap/hostap_hw.c
drivers/net/wireless/spectrum_cs.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;
 }
 
index 7f78b7801fb3de996a2ad1dff87cce905904efd7..bcc7038130f69a1355871e8abc5884ff2d386863 100644 (file)
@@ -242,7 +242,7 @@ spectrum_reset(struct pcmcia_device *link, int idle)
        u_int save_cor;
 
        /* Doing it if hardware is gone is guaranteed crash */
-       if (pcmcia_dev_present(link))
+       if (!pcmcia_dev_present(link))
                return -ENODEV;
 
        /* Save original COR value */