refreshed madwifi patches
[openwrt.git] / package / madwifi / patches / 125-tpc_PR_1435.patch
index 5ecb9c6..8df9d87 100644 (file)
@@ -1,7 +1,7 @@
 Index: madwifi-ng-r2568-20070710/ath/if_ath.c
 ===================================================================
---- madwifi-ng-r2568-20070710.orig/ath/if_ath.c        2007-07-11 22:59:42.904293522 +0200
-+++ madwifi-ng-r2568-20070710/ath/if_ath.c     2007-07-11 22:59:44.052358947 +0200
+--- madwifi-ng-r2568-20070710.orig/ath/if_ath.c        2007-10-20 20:52:09.000000000 +0200
++++ madwifi-ng-r2568-20070710/ath/if_ath.c     2007-10-20 20:53:00.000000000 +0200
 @@ -273,9 +273,7 @@
  static char *autocreate = NULL;
  static char *ratectl = DEF_RATE_CTL;
@@ -55,7 +55,7 @@ Index: madwifi-ng-r2568-20070710/ath/if_ath.c
        ath_hal_settpc(ah, tpc);
  #endif
  
-@@ -8787,26 +8786,17 @@
+@@ -8787,26 +8786,16 @@
         * Search for the VAP that needs a txpow change, if any
         */
        TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) {
@@ -71,17 +71,30 @@ Index: madwifi-ng-r2568-20070710/ath/if_ath.c
 -#endif
        }
  
-       ic->ic_newtxpowlimit = sc->sc_curtxpow = clamped_txpow;
+-      ic->ic_newtxpowlimit = sc->sc_curtxpow = clamped_txpow;
++      sc->sc_curtxpow = clamped_txpow;
  
 -#ifdef ATH_CAP_TPC
 -      if (ic->ic_newtxpowlimit >= txpowlimit)
 -              ath_hal_settxpowlimit(ah, ic->ic_newtxpowlimit);
 -#else
 -      if (ic->ic_newtxpowlimit != txpowlimit)
-+      if ((tpc && ic->ic_newtxpowlimit >= txpowlimit) ||
-+          (ic->ic_newtxpowlimit != txpowlimit))
-               ath_hal_settxpowlimit(ah, ic->ic_newtxpowlimit);
+-              ath_hal_settxpowlimit(ah, ic->ic_newtxpowlimit);
 -#endif
++      if (clamped_txpow != txpowlimit)
++              ath_hal_settxpowlimit(ah, clamped_txpow);
  }
  
  
+Index: madwifi-ng-r2568-20070710/net80211/ieee80211_wireless.c
+===================================================================
+--- madwifi-ng-r2568-20070710.orig/net80211/ieee80211_wireless.c       2007-10-20 20:51:37.000000000 +0200
++++ madwifi-ng-r2568-20070710/net80211/ieee80211_wireless.c    2007-10-20 20:52:29.000000000 +0200
+@@ -1403,6 +1403,7 @@
+       } else {
+               if (!fixed)             /* no change */
+                       return 0;
++              ic->ic_newtxpowlimit = IEEE80211_TXPOWER_MAX;
+               ic->ic_flags &= ~IEEE80211_F_TXPOW_FIXED;
+       }
+ done:
This page took 0.024055 seconds and 4 git commands to generate.