[PATCH] airo: start with radio off
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 29 Jun 2007 13:33:52 +0000 (15:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2007 18:11:29 +0000 (14:11 -0400)
Don't turn the radio on until the interface is up. This saves some power in
case the driver is loaded but the card is not used.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c

index 6a3917b..1c54908 100644 (file)
@@ -2831,7 +2831,7 @@ static struct net_device *_init_airo_card( unsigned short irq, int port,
 
        ai = dev->priv;
        ai->wifidev = NULL;
-       ai->flags = 0;
+       ai->flags = 1 << FLAG_RADIO_DOWN;
        ai->jobs = 0;
        ai->dev = dev;
        if (pci && (pci->device == 0x5000 || pci->device == 0xa504)) {