Skip to content

Commit

Permalink
[wireless airo] reset card in init
Browse files Browse the repository at this point in the history
without this patch after an rmmod, modprobe the card won't work anymore
until the next reboot.

This patch seem safe to apply for all cards as the bsd driver already do
that.

I had to add a timeout because strange things happen (issuecommand will
fail) if the card is already reseted (after a reboot).

PS : it seems there are missing reset when leaving monitor mode...

Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
  • Loading branch information
Matthieu CASTET authored and Jeff Garzik committed Dec 1, 2005
1 parent 1096e87 commit 1d97f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2755,8 +2755,8 @@ static struct net_device *_init_airo_card( unsigned short irq, int port,
SET_NETDEV_DEV(dev, dmdev);


if (test_bit(FLAG_MPI,&ai->flags))
reset_card (dev, 1);
reset_card (dev, 1);
msleep(400);

rc = request_irq( dev->irq, airo_interrupt, SA_SHIRQ, dev->name, dev );
if (rc) {
Expand Down

0 comments on commit 1d97f38

Please sign in to comment.