Commit:     ada50731c0346bf900dc387edd3a6961297bf2d3
Parent:     0cd67d48b519c3d8d89d238fab1cf68a5289638a
Author:     Stefano Brivio <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 2 19:15:57 2008 +0100
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Tue Feb 5 14:35:46 2008 -0500

    b43legacy: fix suspend/resume
    This patch makes suspend/resume work with the b43legacy driver.
    We must not overwrite the MAC addresses in the init function, as this
    would also overwrite the MAC on resume. With an all-zero MAC the device
    firmware is not able to ACK any received packets anymore.
    Fix this by moving the initializion stuff that must be done on init but
    not on resume to the start function.
    Also zero out filter_flags to make sure we don't have some flags
    from a previous instance for a tiny timeframe until mac80211 reconfigures
    This patch by Michael Buesch has been ported to b43legacy.
    Cc: Michael Buesch <[EMAIL PROTECTED]>
    Signed-off-by: Stefano Brivio <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
 drivers/net/wireless/b43legacy/main.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/b43legacy/main.c 
index aa20d5d..53f7f2e 100644
--- a/drivers/net/wireless/b43legacy/main.c
+++ b/drivers/net/wireless/b43legacy/main.c
@@ -3160,8 +3160,6 @@ static int b43legacy_wireless_core_init(struct 
b43legacy_wldev *dev)
        b43legacy_shm_write16(dev, B43legacy_SHM_SHARED, 0x0414, 0x01F4);
        ssb_bus_powerup(bus, 1); /* Enable dynamic PCTL */
-       memset(wl->bssid, 0, ETH_ALEN);
-       memset(wl->mac_addr, 0, ETH_ALEN);
@@ -3263,6 +3261,13 @@ static int b43legacy_op_start(struct ieee80211_hw *hw)
         * LEDs that are registered later depend on it. */
+       /* Kill all old instance specific information to make sure
+        * the card won't use it in the short timeframe between start
+        * and mac80211 reconfiguring it. */
+       memset(wl->bssid, 0, ETH_ALEN);
+       memset(wl->mac_addr, 0, ETH_ALEN);
+       wl->filter_flags = 0;
        if (b43legacy_status(dev) < B43legacy_STAT_INITIALIZED) {
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

Reply via email to