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