Commit 11c72f75 authored by Javier Achirica's avatar Javier Achirica Committed by Jeff Garzik

airo wireless: fix "non-probe mode" setup

parent 3c32c3e7
...@@ -1596,12 +1596,16 @@ struct net_device *init_airo_card( unsigned short irq, int port, int is_pcmcia ) ...@@ -1596,12 +1596,16 @@ struct net_device *init_airo_card( unsigned short irq, int port, int is_pcmcia )
} }
} }
if (probe && setup_card( ai, dev->dev_addr ) != SUCCESS ) { if (probe) {
if ( setup_card( ai, dev->dev_addr ) != SUCCESS ) {
printk( KERN_ERR "airo: MAC could not be enabled\n" ); printk( KERN_ERR "airo: MAC could not be enabled\n" );
rc = -EIO; rc = -EIO;
goto err_out_res; goto err_out_res;
} else }
} else {
ai->bap_read = fast_bap_read; ai->bap_read = fast_bap_read;
ai->flags |= FLAG_FLASHING;
}
rc = register_netdev(dev); rc = register_netdev(dev);
if (rc) if (rc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment