This is a note to let you know that I've just added the patch titled

    rtlwifi: rtl8192de: Fix phy-based version calculation

to the 3.5-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rtlwifi-rtl8192de-fix-phy-based-version-calculation.patch
and it can be found in the queue-3.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From f1b00f4dab29b57bdf1bc03ef12020b280fd2a72 Mon Sep 17 00:00:00 2001
From: Forest Bond <[email protected]>
Date: Fri, 13 Jul 2012 12:26:06 -0400
Subject: rtlwifi: rtl8192de: Fix phy-based version calculation

From: Forest Bond <[email protected]>

commit f1b00f4dab29b57bdf1bc03ef12020b280fd2a72 upstream.

Commit d83579e2a50ac68389e6b4c58b845c702cf37516 incorporated some
changes from the vendor driver that made it newly important that the
calculated hardware version correctly include the CHIP_92D bit, as all
of the IS_92D_* macros were changed to depend on it.  However, this bit
was being unset for dual-mac, dual-phy devices.  The vendor driver
behavior was modified to not do this, but unfortunately this change was
not picked up along with the others.  This caused scanning in the 2.4GHz
band to be broken, and possibly other bugs as well.

This patch brings the version calculation logic in parity with the
vendor driver in this regard, and in doing so fixes the regression.
However, the version calculation code in general continues to be largely
incoherent and messy, and needs to be cleaned up.

Signed-off-by: Forest Bond <[email protected]>
Signed-off-by: Larry Finger <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/net/wireless/rtlwifi/rtl8192de/phy.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/drivers/net/wireless/rtlwifi/rtl8192de/phy.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192de/phy.c
@@ -3345,21 +3345,21 @@ void rtl92d_phy_config_macphymode_info(s
        switch (rtlhal->macphymode) {
        case DUALMAC_SINGLEPHY:
                rtlphy->rf_type = RF_2T2R;
-               rtlhal->version |= CHIP_92D_SINGLEPHY;
+               rtlhal->version |= RF_TYPE_2T2R;
                rtlhal->bandset = BAND_ON_BOTH;
                rtlhal->current_bandtype = BAND_ON_2_4G;
                break;
 
        case SINGLEMAC_SINGLEPHY:
                rtlphy->rf_type = RF_2T2R;
-               rtlhal->version |= CHIP_92D_SINGLEPHY;
+               rtlhal->version |= RF_TYPE_2T2R;
                rtlhal->bandset = BAND_ON_BOTH;
                rtlhal->current_bandtype = BAND_ON_2_4G;
                break;
 
        case DUALMAC_DUALPHY:
                rtlphy->rf_type = RF_1T1R;
-               rtlhal->version &= (~CHIP_92D_SINGLEPHY);
+               rtlhal->version &= RF_TYPE_1T1R;
                /* Now we let MAC0 run on 5G band. */
                if (rtlhal->interfaceindex == 0) {
                        rtlhal->bandset = BAND_ON_5G;


Patches currently in stable-queue which might be from 
[email protected] are

queue-3.5/rtlwifi-rtl8192de-fix-phy-based-version-calculation.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to