diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath9k/xmit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c index 3fc6641e8bf7..25929059c7dc 100644 --- a/drivers/net/wireless/ath9k/xmit.c +++ b/drivers/net/wireless/ath9k/xmit.c | |||
@@ -239,11 +239,11 @@ static int ath_tx_prepare(struct ath_softc *sc, | |||
239 | txctl->keyix = tx_info->control.hw_key->hw_key_idx; | 239 | txctl->keyix = tx_info->control.hw_key->hw_key_idx; |
240 | txctl->frmlen += tx_info->control.icv_len; | 240 | txctl->frmlen += tx_info->control.icv_len; |
241 | 241 | ||
242 | if (sc->sc_keytype == ATH9K_CIPHER_WEP) | 242 | if (tx_info->control.hw_key->alg == ALG_WEP) |
243 | txctl->keytype = ATH9K_KEY_TYPE_WEP; | 243 | txctl->keytype = ATH9K_KEY_TYPE_WEP; |
244 | else if (sc->sc_keytype == ATH9K_CIPHER_TKIP) | 244 | else if (tx_info->control.hw_key->alg == ALG_TKIP) |
245 | txctl->keytype = ATH9K_KEY_TYPE_TKIP; | 245 | txctl->keytype = ATH9K_KEY_TYPE_TKIP; |
246 | else if (sc->sc_keytype == ATH9K_CIPHER_AES_CCM) | 246 | else if (tx_info->control.hw_key->alg == ALG_CCMP) |
247 | txctl->keytype = ATH9K_KEY_TYPE_AES; | 247 | txctl->keytype = ATH9K_KEY_TYPE_AES; |
248 | } | 248 | } |
249 | 249 | ||