Skip to content

Commit

Permalink
ipw2100: interface-up carrier state fix
Browse files Browse the repository at this point in the history
From: Imre Deak <imre.deak@nokia.com>

I had a problem where doing an open after a close left the device
unusable. netif_carrier_on should be called whenever we go to the
associated state, but this is not so in case of a close->open sequence.

Signed-off-by: Jiri Benc <jbenc@suse.cz>
  • Loading branch information
Jiri Benc authored and Jeff Garzik committed Aug 26, 2005
1 parent 5378801 commit 3ce329c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/ipw2100.c
Original file line number Diff line number Diff line change
@@ -5685,8 +5685,10 @@ static int ipw2100_open(struct net_device *dev)
IPW_DEBUG_INFO("dev->open\n");

spin_lock_irqsave(&priv->low_lock, flags);
if (priv->status & STATUS_ASSOCIATED)
if (priv->status & STATUS_ASSOCIATED) {
netif_carrier_on(dev);
netif_start_queue(dev);
}
spin_unlock_irqrestore(&priv->low_lock, flags);

return 0;

0 comments on commit 3ce329c

Please sign in to comment.