• Home
  • Raw
  • Download

Lines Matching refs:hk

340 			   struct ath_keyval *hk, const u8 *addr,  in ath_setkey_tkip()  argument
356 memcpy(hk->kv_mic, key_txmic, sizeof(hk->kv_mic)); in ath_setkey_tkip()
357 memcpy(hk->kv_txmic, key_txmic, sizeof(hk->kv_mic)); in ath_setkey_tkip()
359 memcpy(hk->kv_mic, key_rxmic, sizeof(hk->kv_mic)); in ath_setkey_tkip()
360 memcpy(hk->kv_txmic, key_rxmic, sizeof(hk->kv_mic)); in ath_setkey_tkip()
362 return ath_hw_set_keycache_entry(common, keyix, hk, addr); in ath_setkey_tkip()
366 memcpy(hk->kv_mic, key_rxmic, sizeof(hk->kv_mic)); in ath_setkey_tkip()
367 memcpy(hk->kv_txmic, key_txmic, sizeof(hk->kv_txmic)); in ath_setkey_tkip()
368 return ath_hw_set_keycache_entry(common, keyix, hk, addr); in ath_setkey_tkip()
374 memcpy(hk->kv_mic, key_txmic, sizeof(hk->kv_mic)); in ath_setkey_tkip()
375 if (!ath_hw_set_keycache_entry(common, keyix, hk, NULL)) { in ath_setkey_tkip()
381 memcpy(hk->kv_mic, key_rxmic, sizeof(hk->kv_mic)); in ath_setkey_tkip()
383 return ath_hw_set_keycache_entry(common, keyix + 32, hk, addr); in ath_setkey_tkip()
478 struct ath_keyval hk; in ath_key_config() local
484 memset(&hk, 0, sizeof(hk)); in ath_key_config()
488 hk.kv_type = ATH_CIPHER_CLR; in ath_key_config()
492 hk.kv_type = ATH_CIPHER_WEP; in ath_key_config()
495 hk.kv_type = ATH_CIPHER_TKIP; in ath_key_config()
498 hk.kv_type = ATH_CIPHER_AES_CCM; in ath_key_config()
504 hk.kv_len = key->keylen; in ath_key_config()
506 memcpy(&hk.kv_values, key->key, key->keylen); in ath_key_config()
553 ret = ath_setkey_tkip(common, idx, key->key, &hk, mac, in ath_key_config()
556 ret = ath_hw_set_keycache_entry(common, idx, &hk, mac); in ath_key_config()