aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 4cf25b0eea74..939bf248ec73 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -95,13 +95,13 @@ u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len,
95 95
96void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx) 96void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx)
97{ 97{
98 struct sk_buff *skb = tx->skb; 98 struct sk_buff *skb;
99 struct ieee80211_hdr *hdr; 99 struct ieee80211_hdr *hdr;
100 100
101 do { 101 skb_queue_walk(&tx->skbs, skb) {
102 hdr = (struct ieee80211_hdr *) skb->data; 102 hdr = (struct ieee80211_hdr *) skb->data;
103 hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); 103 hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED);
104 } while ((skb = skb->next)); 104 }
105} 105}
106 106
107int ieee80211_frame_duration(struct ieee80211_local *local, size_t len, 107int ieee80211_frame_duration(struct ieee80211_local *local, size_t len,