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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index ea79668c2e5f..df1bb7e16cfe 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1150,11 +1150,12 @@ void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata,
1150 int err; 1150 int err;
1151 1151
1152 /* 24 + 6 = header + auth_algo + auth_transaction + status_code */ 1152 /* 24 + 6 = header + auth_algo + auth_transaction + status_code */
1153 skb = dev_alloc_skb(local->hw.extra_tx_headroom + 24 + 6 + extra_len); 1153 skb = dev_alloc_skb(local->hw.extra_tx_headroom + IEEE80211_WEP_IV_LEN +
1154 24 + 6 + extra_len + IEEE80211_WEP_ICV_LEN);
1154 if (!skb) 1155 if (!skb)
1155 return; 1156 return;
1156 1157
1157 skb_reserve(skb, local->hw.extra_tx_headroom); 1158 skb_reserve(skb, local->hw.extra_tx_headroom + IEEE80211_WEP_IV_LEN);
1158 1159
1159 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24 + 6); 1160 mgmt = (struct ieee80211_mgmt *) skb_put(skb, 24 + 6);
1160 memset(mgmt, 0, 24 + 6); 1161 memset(mgmt, 0, 24 + 6);