diff options
author | David S. Miller <davem@davemloft.net> | 2012-01-17 12:11:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-17 12:11:52 -0500 |
commit | 4144cb2ade46d97b9c41682fd2e9064a59f23a98 (patch) | |
tree | 4b5ef937b4d0dcede6b1669f03c3b6dccf57d5bc /net/mac80211/wpa.c | |
parent | 59f608d84f937cb5e2fd3a0b9f848f200d47ba85 (diff) | |
parent | 604c4ef1c453a1b2ea2cdf04d2b49afec421ebfa (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'net/mac80211/wpa.c')
-rw-r--r-- | net/mac80211/wpa.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/mac80211/wpa.c b/net/mac80211/wpa.c index 422b79851ec5..b758350919ff 100644 --- a/net/mac80211/wpa.c +++ b/net/mac80211/wpa.c @@ -643,3 +643,22 @@ ieee80211_crypto_aes_cmac_decrypt(struct ieee80211_rx_data *rx) return RX_CONTINUE; } + +ieee80211_tx_result +ieee80211_crypto_hw_encrypt(struct ieee80211_tx_data *tx) +{ + struct sk_buff *skb; + struct ieee80211_tx_info *info = NULL; + + skb_queue_walk(&tx->skbs, skb) { + info = IEEE80211_SKB_CB(skb); + + /* handle hw-only algorithm */ + if (!info->control.hw_key) + return TX_DROP; + } + + ieee80211_tx_set_protected(tx); + + return TX_CONTINUE; +} |