diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-08-28 17:01:54 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:48:49 -0400 |
commit | badffb725c86cc2d46f7cb3f520f58f1c863b56c (patch) | |
tree | 41a49288c79274a76e515ff6c4674a370bb6943d /net/mac80211/ieee80211_i.h | |
parent | e8bf96495cd67090b4900ddaf8e8672a17ec39fa (diff) |
[MAC80211]: Remove bitfields from struct ieee80211_txrx_data
mac80211, remove bitfields from struct ieee80211_txrx_data
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index a2b018bae180..9888611660b7 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -113,6 +113,15 @@ typedef enum { | |||
113 | TXRX_CONTINUE, TXRX_DROP, TXRX_QUEUED | 113 | TXRX_CONTINUE, TXRX_DROP, TXRX_QUEUED |
114 | } ieee80211_txrx_result; | 114 | } ieee80211_txrx_result; |
115 | 115 | ||
116 | /* flags used in struct ieee80211_txrx_data.flags */ | ||
117 | /* whether the MSDU was fragmented */ | ||
118 | #define IEEE80211_TXRXD_FRAGMENTED BIT(0) | ||
119 | #define IEEE80211_TXRXD_TXUNICAST BIT(1) | ||
120 | #define IEEE80211_TXRXD_TXPS_BUFFERED BIT(2) | ||
121 | #define IEEE80211_TXRXD_TXPROBE_LAST_FRAG BIT(3) | ||
122 | #define IEEE80211_TXRXD_RXIN_SCAN BIT(4) | ||
123 | /* frame is destined to interface currently processed (incl. multicast frames) */ | ||
124 | #define IEEE80211_TXRXD_RXRA_MATCH BIT(5) | ||
116 | struct ieee80211_txrx_data { | 125 | struct ieee80211_txrx_data { |
117 | struct sk_buff *skb; | 126 | struct sk_buff *skb; |
118 | struct net_device *dev; | 127 | struct net_device *dev; |
@@ -121,13 +130,10 @@ struct ieee80211_txrx_data { | |||
121 | struct sta_info *sta; | 130 | struct sta_info *sta; |
122 | u16 fc, ethertype; | 131 | u16 fc, ethertype; |
123 | struct ieee80211_key *key; | 132 | struct ieee80211_key *key; |
124 | unsigned int fragmented:1; /* whether the MSDU was fragmented */ | 133 | unsigned int flags; |
125 | union { | 134 | union { |
126 | struct { | 135 | struct { |
127 | struct ieee80211_tx_control *control; | 136 | struct ieee80211_tx_control *control; |
128 | unsigned int unicast:1; | ||
129 | unsigned int ps_buffered:1; | ||
130 | unsigned int probe_last_frag:1; | ||
131 | struct ieee80211_hw_mode *mode; | 137 | struct ieee80211_hw_mode *mode; |
132 | struct ieee80211_rate *rate; | 138 | struct ieee80211_rate *rate; |
133 | /* use this rate (if set) for last fragment; rate can | 139 | /* use this rate (if set) for last fragment; rate can |
@@ -147,10 +153,6 @@ struct ieee80211_txrx_data { | |||
147 | int sent_ps_buffered; | 153 | int sent_ps_buffered; |
148 | int queue; | 154 | int queue; |
149 | int load; | 155 | int load; |
150 | unsigned int in_scan:1; | ||
151 | /* frame is destined to interface currently processed | ||
152 | * (including multicast frames) */ | ||
153 | unsigned int ra_match:1; | ||
154 | } rx; | 156 | } rx; |
155 | } u; | 157 | } u; |
156 | }; | 158 | }; |
@@ -176,7 +178,7 @@ struct ieee80211_tx_stored_packet { | |||
176 | int last_frag_rateidx; | 178 | int last_frag_rateidx; |
177 | int last_frag_hwrate; | 179 | int last_frag_hwrate; |
178 | struct ieee80211_rate *last_frag_rate; | 180 | struct ieee80211_rate *last_frag_rate; |
179 | unsigned int last_frag_rate_ctrl_probe:1; | 181 | unsigned int last_frag_rate_ctrl_probe; |
180 | }; | 182 | }; |
181 | 183 | ||
182 | typedef ieee80211_txrx_result (*ieee80211_tx_handler) | 184 | typedef ieee80211_txrx_result (*ieee80211_tx_handler) |