Lines Matching refs:nkey
974 NDIS_802_11_KEY *nkey; in wpa_driver_ndis_set_key() local
1001 nkey = os_zalloc(len); in wpa_driver_ndis_set_key()
1002 if (nkey == NULL) in wpa_driver_ndis_set_key()
1005 nkey->Length = len; in wpa_driver_ndis_set_key()
1006 nkey->KeyIndex = key_idx; in wpa_driver_ndis_set_key()
1008 nkey->KeyIndex |= 1 << 31; in wpa_driver_ndis_set_key()
1010 nkey->KeyIndex |= 1 << 30; in wpa_driver_ndis_set_key()
1012 nkey->KeyIndex |= 1 << 29; in wpa_driver_ndis_set_key()
1013 nkey->KeyLength = key_len; in wpa_driver_ndis_set_key()
1014 os_memcpy(nkey->BSSID, bssid, ETH_ALEN); in wpa_driver_ndis_set_key()
1017 nkey->KeyRSC |= (ULONGLONG) seq[i] << (i * 8); in wpa_driver_ndis_set_key()
1020 os_memcpy(nkey->KeyMaterial, key, 16); in wpa_driver_ndis_set_key()
1021 os_memcpy(nkey->KeyMaterial + 16, key + 24, 8); in wpa_driver_ndis_set_key()
1022 os_memcpy(nkey->KeyMaterial + 24, key + 16, 8); in wpa_driver_ndis_set_key()
1024 os_memcpy(nkey->KeyMaterial, key, key_len); in wpa_driver_ndis_set_key()
1028 (u8 *) nkey, len); in wpa_driver_ndis_set_key()
1029 res = ndis_set_oid(drv, OID_802_11_ADD_KEY, (char *) nkey, len); in wpa_driver_ndis_set_key()
1030 os_free(nkey); in wpa_driver_ndis_set_key()