aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/wep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/wep.c b/net/mac80211/wep.c
index 0a4c641c9605..5d745f2d7236 100644
--- a/net/mac80211/wep.c
+++ b/net/mac80211/wep.c
@@ -310,9 +310,8 @@ static int wep_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb)
310 tx->key->conf.keylen, 310 tx->key->conf.keylen,
311 tx->key->conf.keyidx)) 311 tx->key->conf.keyidx))
312 return -1; 312 return -1;
313 } 313 } else if (info->control.hw_key->flags &
314 314 IEEE80211_KEY_FLAG_GENERATE_IV) {
315 if (info->control.hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) {
316 if (!ieee80211_wep_add_iv(tx->local, skb, 315 if (!ieee80211_wep_add_iv(tx->local, skb,
317 tx->key->conf.keylen, 316 tx->key->conf.keylen,
318 tx->key->conf.keyidx)) 317 tx->key->conf.keyidx))