aboutsummaryrefslogtreecommitdiffstats
path: root/crap
diff options
context:
space:
mode:
authorHauke Mehrtens2010-10-18 15:36:55 -0500
committerLuis R. Rodriguez2010-10-18 15:42:35 -0500
commitf8e7862f1125f0f4fc960c095c3173f61092be48 (patch)
treed4d3a2cdaf647be93666f80750f9c61b79c1ba36 /crap
parent73340347caef1654a2932dd597d2d01d1541581f (diff)
downloadcompat-wireless-f8e7862f1125f0f4fc960c095c3173f61092be48.tar.gz
compat-wireless-f8e7862f1125f0f4fc960c095c3173f61092be48.tar.xz
compat-wireless-f8e7862f1125f0f4fc960c095c3173f61092be48.zip
compat-wireless: make patches apply again
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'crap')
-rw-r--r--crap/0002-ath9k-Add-pktlog-support.patch50
1 files changed, 25 insertions, 25 deletions
diff --git a/crap/0002-ath9k-Add-pktlog-support.patch b/crap/0002-ath9k-Add-pktlog-support.patch
index ada8850..0cecf34 100644
--- a/crap/0002-ath9k-Add-pktlog-support.patch
+++ b/crap/0002-ath9k-Add-pktlog-support.patch
@@ -105,7 +105,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
105 105
106 /* 106 /*
107 * Header for the ath9k.ko driver core *only* -- hw code nor any other driver 107 * Header for the ath9k.ko driver core *only* -- hw code nor any other driver
108@@ -564,6 +565,7 @@ struct ath_ant_comb { 108@@ -563,6 +564,7 @@ struct ath_ant_comb {
109 #define SC_OP_BT_PRIORITY_DETECTED BIT(12) 109 #define SC_OP_BT_PRIORITY_DETECTED BIT(12)
110 #define SC_OP_BT_SCAN BIT(13) 110 #define SC_OP_BT_SCAN BIT(13)
111 #define SC_OP_ANI_RUN BIT(14) 111 #define SC_OP_ANI_RUN BIT(14)
@@ -113,7 +113,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
113 113
114 /* Powersave flags */ 114 /* Powersave flags */
115 #define PS_WAIT_FOR_BEACON BIT(0) 115 #define PS_WAIT_FOR_BEACON BIT(0)
116@@ -642,6 +644,10 @@ struct ath_softc { 116@@ -639,6 +641,10 @@ struct ath_softc {
117 #ifdef CONFIG_ATH9K_DEBUGFS 117 #ifdef CONFIG_ATH9K_DEBUGFS
118 struct ath9k_debug debug; 118 struct ath9k_debug debug;
119 #endif 119 #endif
@@ -126,7 +126,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
126 struct ath_btcoex btcoex; 126 struct ath_btcoex btcoex;
127--- a/drivers/net/wireless/ath/ath9k/debug.c 127--- a/drivers/net/wireless/ath/ath9k/debug.c
128+++ b/drivers/net/wireless/ath/ath9k/debug.c 128+++ b/drivers/net/wireless/ath/ath9k/debug.c
129@@ -1078,6 +1078,9 @@ int ath9k_init_debug(struct ath_hw *ah) 129@@ -984,6 +984,9 @@ int ath9k_init_debug(struct ath_hw *ah)
130 sc, &fops_regdump)) 130 sc, &fops_regdump))
131 goto err; 131 goto err;
132 132
@@ -136,7 +136,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
136 return 0; 136 return 0;
137 err: 137 err:
138 ath9k_exit_debug(ah); 138 ath9k_exit_debug(ah);
139@@ -1089,6 +1092,7 @@ void ath9k_exit_debug(struct ath_hw *ah) 139@@ -995,6 +998,7 @@ void ath9k_exit_debug(struct ath_hw *ah)
140 struct ath_common *common = ath9k_hw_common(ah); 140 struct ath_common *common = ath9k_hw_common(ah);
141 struct ath_softc *sc = (struct ath_softc *) common->priv; 141 struct ath_softc *sc = (struct ath_softc *) common->priv;
142 142
@@ -161,7 +161,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
161 static inline void ath9k_hw_set11n_txdesc(struct ath_hw *ah, void *ds, 161 static inline void ath9k_hw_set11n_txdesc(struct ath_hw *ah, void *ds,
162--- a/drivers/net/wireless/ath/ath9k/hw.c 162--- a/drivers/net/wireless/ath/ath9k/hw.c
163+++ b/drivers/net/wireless/ath/ath9k/hw.c 163+++ b/drivers/net/wireless/ath/ath9k/hw.c
164@@ -2155,7 +2155,7 @@ void ath9k_hw_setrxfilter(struct ath_hw 164@@ -2129,7 +2129,7 @@ void ath9k_hw_setrxfilter(struct ath_hw
165 phybits |= AR_PHY_ERR_RADAR; 165 phybits |= AR_PHY_ERR_RADAR;
166 if (bits & ATH9K_RX_FILTER_PHYERR) 166 if (bits & ATH9K_RX_FILTER_PHYERR)
167 phybits |= AR_PHY_ERR_OFDM_TIMING | AR_PHY_ERR_CCK_TIMING; 167 phybits |= AR_PHY_ERR_OFDM_TIMING | AR_PHY_ERR_CCK_TIMING;
@@ -172,7 +172,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
172 REG_WRITE(ah, AR_RXCFG, 172 REG_WRITE(ah, AR_RXCFG,
173--- a/drivers/net/wireless/ath/ath9k/hw.h 173--- a/drivers/net/wireless/ath/ath9k/hw.h
174+++ b/drivers/net/wireless/ath/ath9k/hw.h 174+++ b/drivers/net/wireless/ath/ath9k/hw.h
175@@ -584,7 +584,7 @@ struct ath_hw_ops { 175@@ -573,7 +573,7 @@ struct ath_hw_ops {
176 const void *ds0, dma_addr_t buf_addr, 176 const void *ds0, dma_addr_t buf_addr,
177 unsigned int qcu); 177 unsigned int qcu);
178 int (*proc_txdesc)(struct ath_hw *ah, void *ds, 178 int (*proc_txdesc)(struct ath_hw *ah, void *ds,
@@ -181,7 +181,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
181 void (*set11n_txdesc)(struct ath_hw *ah, void *ds, 181 void (*set11n_txdesc)(struct ath_hw *ah, void *ds,
182 u32 pktLen, enum ath9k_pkt_type type, 182 u32 pktLen, enum ath9k_pkt_type type,
183 u32 txPower, u32 keyIx, 183 u32 txPower, u32 keyIx,
184@@ -807,6 +807,8 @@ struct ath_hw { 184@@ -796,6 +796,8 @@ struct ath_hw {
185 * this register when in sleep states. 185 * this register when in sleep states.
186 */ 186 */
187 u32 WARegVal; 187 u32 WARegVal;
@@ -1223,7 +1223,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1223+#endif 1223+#endif
1224--- a/drivers/net/wireless/ath/ath9k/rc.c 1224--- a/drivers/net/wireless/ath/ath9k/rc.c
1225+++ b/drivers/net/wireless/ath/ath9k/rc.c 1225+++ b/drivers/net/wireless/ath/ath9k/rc.c
1226@@ -610,7 +610,7 @@ static u8 ath_rc_setvalid_htrates(struct 1226@@ -599,7 +599,7 @@ static u8 ath_rc_setvalid_htrates(struct
1227 static u8 ath_rc_get_highest_rix(struct ath_softc *sc, 1227 static u8 ath_rc_get_highest_rix(struct ath_softc *sc,
1228 struct ath_rate_priv *ath_rc_priv, 1228 struct ath_rate_priv *ath_rc_priv,
1229 const struct ath_rate_table *rate_table, 1229 const struct ath_rate_table *rate_table,
@@ -1232,7 +1232,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1232 { 1232 {
1233 u32 best_thruput, this_thruput, now_msec; 1233 u32 best_thruput, this_thruput, now_msec;
1234 u8 rate, next_rate, best_rate, maxindex, minindex; 1234 u8 rate, next_rate, best_rate, maxindex, minindex;
1235@@ -701,6 +701,8 @@ static u8 ath_rc_get_highest_rix(struct 1235@@ -690,6 +690,8 @@ static u8 ath_rc_get_highest_rix(struct
1236 1236
1237 rate = ath_rc_priv->valid_rate_index[0]; 1237 rate = ath_rc_priv->valid_rate_index[0];
1238 1238
@@ -1241,16 +1241,16 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1241 return rate; 1241 return rate;
1242 } 1242 }
1243 1243
1244@@ -792,7 +794,7 @@ static void ath_get_rate(void *priv, str 1244@@ -781,7 +783,7 @@ static void ath_get_rate(void *priv, str
1245 try_per_rate = 4; 1245 try_per_rate = 4;
1246 1246
1247 rate_table = sc->cur_rate_table; 1247 rate_table = ath_rc_priv->rate_table;
1248- rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe); 1248- rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe);
1249+ rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe, skb_get_queue_mapping(skb)); 1249+ rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe, skb_get_queue_mapping(skb));
1250 1250
1251 /* 1251 /*
1252 * If we're in HT mode and both us and our peer supports LDPC. 1252 * If we're in HT mode and both us and our peer supports LDPC.
1253@@ -1032,7 +1034,8 @@ static bool ath_rc_update_per(struct ath 1253@@ -1031,7 +1033,8 @@ static void ath_debug_stat_retries(struc
1254 static void ath_rc_update_ht(struct ath_softc *sc, 1254 static void ath_rc_update_ht(struct ath_softc *sc,
1255 struct ath_rate_priv *ath_rc_priv, 1255 struct ath_rate_priv *ath_rc_priv,
1256 struct ieee80211_tx_info *tx_info, 1256 struct ieee80211_tx_info *tx_info,
@@ -1260,8 +1260,8 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1260 { 1260 {
1261 u32 now_msec = jiffies_to_msecs(jiffies); 1261 u32 now_msec = jiffies_to_msecs(jiffies);
1262 int rate; 1262 int rate;
1263@@ -1101,6 +1104,9 @@ static void ath_rc_update_ht(struct ath_ 1263@@ -1100,6 +1103,9 @@ static void ath_rc_update_ht(struct ath_
1264 ath_debug_stat_retries(sc, tx_rate, xretries, retries, 1264 ath_debug_stat_retries(ath_rc_priv, tx_rate, xretries, retries,
1265 ath_rc_priv->per[tx_rate]); 1265 ath_rc_priv->per[tx_rate]);
1266 1266
1267+ ath9k_pktlog_rcupdate(sc, ath_rc_priv, tx_rate, 1267+ ath9k_pktlog_rcupdate(sc, ath_rc_priv, tx_rate,
@@ -1270,7 +1270,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1270 } 1270 }
1271 1271
1272 static int ath_rc_get_rateindex(const struct ath_rate_table *rate_table, 1272 static int ath_rc_get_rateindex(const struct ath_rate_table *rate_table,
1273@@ -1133,7 +1139,8 @@ static int ath_rc_get_rateindex(const st 1273@@ -1132,7 +1138,8 @@ static int ath_rc_get_rateindex(const st
1274 static void ath_rc_tx_status(struct ath_softc *sc, 1274 static void ath_rc_tx_status(struct ath_softc *sc,
1275 struct ath_rate_priv *ath_rc_priv, 1275 struct ath_rate_priv *ath_rc_priv,
1276 struct ieee80211_tx_info *tx_info, 1276 struct ieee80211_tx_info *tx_info,
@@ -1280,7 +1280,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1280 { 1280 {
1281 const struct ath_rate_table *rate_table; 1281 const struct ath_rate_table *rate_table;
1282 struct ieee80211_tx_rate *rates = tx_info->status.rates; 1282 struct ieee80211_tx_rate *rates = tx_info->status.rates;
1283@@ -1162,7 +1169,7 @@ static void ath_rc_tx_status(struct ath_ 1283@@ -1161,7 +1168,7 @@ static void ath_rc_tx_status(struct ath_
1284 rix = ath_rc_get_rateindex(rate_table, &rates[i]); 1284 rix = ath_rc_get_rateindex(rate_table, &rates[i]);
1285 ath_rc_update_ht(sc, ath_rc_priv, tx_info, 1285 ath_rc_update_ht(sc, ath_rc_priv, tx_info,
1286 rix, xretries ? 1 : 2, 1286 rix, xretries ? 1 : 2,
@@ -1289,7 +1289,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1289 } 1289 }
1290 } 1290 }
1291 } else { 1291 } else {
1292@@ -1184,7 +1191,7 @@ static void ath_rc_tx_status(struct ath_ 1292@@ -1183,7 +1190,7 @@ static void ath_rc_tx_status(struct ath_
1293 return; 1293 return;
1294 1294
1295 rix = ath_rc_get_rateindex(rate_table, &rates[i]); 1295 rix = ath_rc_get_rateindex(rate_table, &rates[i]);
@@ -1298,7 +1298,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1298 } 1298 }
1299 1299
1300 static const 1300 static const
1301@@ -1401,7 +1408,8 @@ static void ath_tx_status(void *priv, st 1301@@ -1393,7 +1400,8 @@ static void ath_tx_status(void *priv, st
1302 tx_status = 1; 1302 tx_status = 1;
1303 1303
1304 ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status, 1304 ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status,
@@ -1310,7 +1310,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1310 if (conf_is_ht(&sc->hw->conf) && 1310 if (conf_is_ht(&sc->hw->conf) &&
1311--- a/drivers/net/wireless/ath/ath9k/recv.c 1311--- a/drivers/net/wireless/ath/ath9k/recv.c
1312+++ b/drivers/net/wireless/ath/ath9k/recv.c 1312+++ b/drivers/net/wireless/ath/ath9k/recv.c
1313@@ -1627,6 +1627,7 @@ int ath_rx_tasklet(struct ath_softc *sc, 1313@@ -1630,6 +1630,7 @@ int ath_rx_tasklet(struct ath_softc *sc,
1314 struct ieee80211_rx_status *rxs; 1314 struct ieee80211_rx_status *rxs;
1315 struct ath_hw *ah = sc->sc_ah; 1315 struct ath_hw *ah = sc->sc_ah;
1316 struct ath_common *common = ath9k_hw_common(ah); 1316 struct ath_common *common = ath9k_hw_common(ah);
@@ -1318,7 +1318,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1318 /* 1318 /*
1319 * The hw can techncically differ from common->hw when using ath9k 1319 * The hw can techncically differ from common->hw when using ath9k
1320 * virtual wiphy so to account for that we iterate over the active 1320 * virtual wiphy so to account for that we iterate over the active
1321@@ -1719,12 +1720,24 @@ int ath_rx_tasklet(struct ath_softc *sc, 1321@@ -1722,12 +1723,24 @@ int ath_rx_tasklet(struct ath_softc *sc,
1322 dma_type); 1322 dma_type);
1323 1323
1324 skb_put(skb, rs.rs_datalen + ah->caps.rx_status_len); 1324 skb_put(skb, rs.rs_datalen + ah->caps.rx_status_len);
@@ -1346,7 +1346,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1346 bf->bf_buf_addr = dma_map_single(sc->dev, requeue_skb->data, 1346 bf->bf_buf_addr = dma_map_single(sc->dev, requeue_skb->data,
1347--- a/drivers/net/wireless/ath/ath9k/xmit.c 1347--- a/drivers/net/wireless/ath/ath9k/xmit.c
1348+++ b/drivers/net/wireless/ath/ath9k/xmit.c 1348+++ b/drivers/net/wireless/ath/ath9k/xmit.c
1349@@ -437,6 +437,8 @@ static void ath_tx_complete_aggr(struct 1349@@ -436,6 +436,8 @@ static void ath_tx_complete_aggr(struct
1350 list_move_tail(&bf->list, &bf_head); 1350 list_move_tail(&bf->list, &bf_head);
1351 } 1351 }
1352 1352
@@ -1355,7 +1355,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1355 if (!txpending || (tid->state & AGGR_CLEANUP)) { 1355 if (!txpending || (tid->state & AGGR_CLEANUP)) {
1356 /* 1356 /*
1357 * complete the acked-ones/xretried ones; update 1357 * complete the acked-ones/xretried ones; update
1358@@ -2075,7 +2077,7 @@ static void ath_tx_processq(struct ath_s 1358@@ -2078,7 +2080,7 @@ static void ath_tx_processq(struct ath_s
1359 ds = lastbf->bf_desc; 1359 ds = lastbf->bf_desc;
1360 1360
1361 memset(&ts, 0, sizeof(ts)); 1361 memset(&ts, 0, sizeof(ts));
@@ -1364,7 +1364,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1364 if (status == -EINPROGRESS) { 1364 if (status == -EINPROGRESS) {
1365 spin_unlock_bh(&txq->axq_lock); 1365 spin_unlock_bh(&txq->axq_lock);
1366 break; 1366 break;
1367@@ -2112,10 +2114,14 @@ static void ath_tx_processq(struct ath_s 1367@@ -2115,10 +2117,14 @@ static void ath_tx_processq(struct ath_s
1368 ath_tx_rc_status(bf, &ts, txok ? 0 : 1, txok, true); 1368 ath_tx_rc_status(bf, &ts, txok ? 0 : 1, txok, true);
1369 } 1369 }
1370 1370
@@ -1381,7 +1381,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1381 1381
1382 ath_wake_mac80211_queue(sc, txq); 1382 ath_wake_mac80211_queue(sc, txq);
1383 1383
1384@@ -2187,9 +2193,11 @@ void ath_tx_edma_tasklet(struct ath_soft 1384@@ -2190,9 +2196,11 @@ void ath_tx_edma_tasklet(struct ath_soft
1385 struct list_head bf_head; 1385 struct list_head bf_head;
1386 int status; 1386 int status;
1387 int txok; 1387 int txok;
@@ -1394,7 +1394,7 @@ Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
1394 if (status == -EINPROGRESS) 1394 if (status == -EINPROGRESS)
1395 break; 1395 break;
1396 if (status == -EIO) { 1396 if (status == -EIO) {
1397@@ -2230,14 +2238,18 @@ void ath_tx_edma_tasklet(struct ath_soft 1397@@ -2233,14 +2241,18 @@ void ath_tx_edma_tasklet(struct ath_soft
1398 ath_tx_rc_status(bf, &txs, txok ? 0 : 1, txok, true); 1398 ath_tx_rc_status(bf, &txs, txok ? 0 : 1, txok, true);
1399 } 1399 }
1400 1400