aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-05-15 06:55:27 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:48:09 -0400
commit2e92e6f2c50b4baf85cca968f0e6f1b5c0df7d39 (patch)
treee845c2f3af6d29c807c540366b97b1d886b92c91 /net/mac80211/ieee80211_i.h
parent36d6825b91bc492b65b6333c369cd96a2fc8c903 (diff)
mac80211: use rate index in TX control
This patch modifies struct ieee80211_tx_control to give band info and the rate index (instead of rate pointers) to drivers. This mostly serves to reduce the TX control structure size to make it fit into skb->cb so that the fragmentation code can put it there and we can think about passing it to drivers that way in the future. The rt2x00 driver update was done by Ivo, thanks. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index ed0d9b35ae6f..a4cccd1b7d53 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -159,11 +159,11 @@ struct ieee80211_tx_data {
159 159
160 struct ieee80211_tx_control *control; 160 struct ieee80211_tx_control *control;
161 struct ieee80211_channel *channel; 161 struct ieee80211_channel *channel;
162 struct ieee80211_rate *rate; 162 s8 rate_idx;
163 /* use this rate (if set) for last fragment; rate can 163 /* use this rate (if set) for last fragment; rate can
164 * be set to lower rate for the first fragments, e.g., 164 * be set to lower rate for the first fragments, e.g.,
165 * when using CTS protection with IEEE 802.11g. */ 165 * when using CTS protection with IEEE 802.11g. */
166 struct ieee80211_rate *last_frag_rate; 166 s8 last_frag_rate_idx;
167 167
168 /* Extra fragments (in addition to the first fragment 168 /* Extra fragments (in addition to the first fragment
169 * in skb) */ 169 * in skb) */
@@ -225,9 +225,9 @@ struct ieee80211_tx_stored_packet {
225 struct ieee80211_tx_control control; 225 struct ieee80211_tx_control control;
226 struct sk_buff *skb; 226 struct sk_buff *skb;
227 struct sk_buff **extra_frag; 227 struct sk_buff **extra_frag;
228 struct ieee80211_rate *last_frag_rate; 228 s8 last_frag_rate_idx;
229 int num_extra_frag; 229 int num_extra_frag;
230 unsigned int last_frag_rate_ctrl_probe; 230 bool last_frag_rate_ctrl_probe;
231}; 231};
232 232
233struct beacon_data { 233struct beacon_data {