diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-02-25 10:27:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-06 15:30:46 -0500 |
commit | 5cf121c3cdb955583bf0c5d28c992b7968a4aa1a (patch) | |
tree | 7bfd1a667f4703f3e6627d176b9a3f374c2db069 /net/mac80211/util.c | |
parent | 7495883bdd07e6a233f8a7f3d85c085c1618a203 (diff) |
mac80211: split ieee80211_txrx_data
Split it into ieee80211_tx_data and ieee80211_rx_data to clarify
usage/flag usage and remove the stupid union thing.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index b46496fa2e10..57c404f3f6d0 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -165,17 +165,17 @@ int ieee80211_get_mesh_hdrlen(struct ieee80211s_hdr *meshhdr) | |||
165 | } | 165 | } |
166 | } | 166 | } |
167 | 167 | ||
168 | void ieee80211_tx_set_iswep(struct ieee80211_txrx_data *tx) | 168 | void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx) |
169 | { | 169 | { |
170 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) tx->skb->data; | 170 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) tx->skb->data; |
171 | 171 | ||
172 | hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); | 172 | hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); |
173 | if (tx->u.tx.extra_frag) { | 173 | if (tx->extra_frag) { |
174 | struct ieee80211_hdr *fhdr; | 174 | struct ieee80211_hdr *fhdr; |
175 | int i; | 175 | int i; |
176 | for (i = 0; i < tx->u.tx.num_extra_frag; i++) { | 176 | for (i = 0; i < tx->num_extra_frag; i++) { |
177 | fhdr = (struct ieee80211_hdr *) | 177 | fhdr = (struct ieee80211_hdr *) |
178 | tx->u.tx.extra_frag[i]->data; | 178 | tx->extra_frag[i]->data; |
179 | fhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); | 179 | fhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); |
180 | } | 180 | } |
181 | } | 181 | } |