diff options
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 | } |