rt2x00: Implement HW encryption (rt2500usb)
rt2500usb supports hardware encryption. rt2500usb supports up to 4 shared and pairwise keys. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
0b927a0791
commit
dddfb478b2
@@ -79,10 +79,8 @@ static int rt2x00mac_tx_rts_cts(struct rt2x00_dev *rt2x00dev,
|
||||
* RTS/CTS frame should use the length of the frame plus any
|
||||
* encryption overhead that will be added by the hardware.
|
||||
*/
|
||||
#ifdef CONFIG_RT2X00_LIB_CRYPTO
|
||||
if (!frag_skb->do_not_encrypt)
|
||||
data_length += rt2x00crypto_tx_overhead(tx_info);
|
||||
#endif /* CONFIG_RT2X00_LIB_CRYPTO */
|
||||
|
||||
if (tx_info->control.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)
|
||||
ieee80211_ctstoself_get(rt2x00dev->hw, tx_info->control.vif,
|
||||
|
Reference in New Issue
Block a user