tree 8f31ce7cd3da75ad255c1bedc2a16dee75dc21af
parent 53788015c736b9957448aebd7b7c286da217ee51
author Jiri Benc <[EMAIL PROTECTED]> Fri, 26 Aug 2005 04:07:01 -0400
committer Jeff Garzik <[EMAIL PROTECTED]> Fri, 26 Aug 2005 04:07:01 -0400

ipw2100: interface-up carrier state fix

From: Imre Deak <[EMAIL PROTECTED]>

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 <[EMAIL PROTECTED]>

 drivers/net/wireless/ipw2100.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -5685,8 +5685,10 @@ static int ipw2100_open(struct net_devic
        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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to