lkml.org 
[lkml]   [2010]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 075/123] b43/b43legacy: Wake queues in wireless_core_start
    2.6.33-stable review patch.  If anyone has any objections, please let me know.

    -----------------

    From: Larry Finger <Larry.Finger@lwfinger.net>

    commit 0866b03c7d7dee8a34ffa527ecda426c0f405518 upstream.

    If b43 or b43legacy are deauthenticated or disconnected, there is a
    possibility that a reconnection is tried with the queues stopped in
    mac80211. To prevent this, start the queues before setting
    STAT_INITIALIZED.

    In b43, a similar change has been in place (twice) in the
    wireless_core_init() routine. Remove the duplicate and add similar
    code to b43legacy.

    Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/net/wireless/b43/main.c | 3 +--
    drivers/net/wireless/b43legacy/main.c | 2 ++
    2 files changed, 3 insertions(+), 2 deletions(-)

    --- a/drivers/net/wireless/b43/main.c
    +++ b/drivers/net/wireless/b43/main.c
    @@ -3970,6 +3970,7 @@ static int b43_wireless_core_start(struc
    }

    /* We are ready to run. */
    + ieee80211_wake_queues(dev->wl->hw);
    b43_set_status(dev, B43_STAT_STARTED);

    /* Start data flow (TX/RX). */
    @@ -4379,8 +4380,6 @@ static int b43_wireless_core_init(struct

    ieee80211_wake_queues(dev->wl->hw);

    - ieee80211_wake_queues(dev->wl->hw);
    -
    b43_set_status(dev, B43_STAT_INITIALIZED);

    out:
    --- a/drivers/net/wireless/b43legacy/main.c
    +++ b/drivers/net/wireless/b43legacy/main.c
    @@ -2921,6 +2921,7 @@ static int b43legacy_wireless_core_start
    goto out;
    }
    /* We are ready to run. */
    + ieee80211_wake_queues(dev->wl->hw);
    b43legacy_set_status(dev, B43legacy_STAT_STARTED);

    /* Start data flow (TX/RX) */
    @@ -3341,6 +3342,7 @@ static int b43legacy_wireless_core_init(
    b43legacy_security_init(dev);
    b43legacy_rng_init(wl);

    + ieee80211_wake_queues(dev->wl->hw);
    b43legacy_set_status(dev, B43legacy_STAT_INITIALIZED);

    b43legacy_leds_init(dev);



    \
     
     \ /
      Last update: 2010-03-13 02:23    [W:0.020 / U:30.428 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site