Lines Matching defs:gtk

1436 	} gtk[WOWLAN_GTK_KEYS_NUM];
1799 new_key_id = status->gtk[0].flags &
1957 ((status->gtk[0].len && keyidx == status->gtk[0].id) ||
1958 (status->gtk[1].len && keyidx == status->gtk[1].id))) {
2162 BUILD_BUG_ON(sizeof(conf.key) < sizeof(status->gtk[0].key));
2179 for (i = 0; i < ARRAY_SIZE(status->gtk); i++) {
2180 if (!status->gtk[i].len)
2183 conf.conf.keyidx = status->gtk[i].id;
2187 memcpy(conf.conf.key, status->gtk[i].key,
2188 sizeof(status->gtk[i].key));
2372 BUILD_BUG_ON(sizeof(status->gtk[0].key) < sizeof(data->key));
2375 sizeof(status->gtk[0].key));
2377 status->gtk[0].len = data->key_len;
2378 status->gtk[0].flags = data->key_flags;
2380 memcpy(status->gtk[0].key, data->key, sizeof(data->key));
2383 if (status->gtk[0].len == NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY)
2384 memcpy(status->gtk[0].key + NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,
2393 BUILD_BUG_ON(sizeof(status->gtk[0].key) < sizeof(data[0].key));
2396 sizeof(status->gtk[0].key));
2397 BUILD_BUG_ON(ARRAY_SIZE(status->gtk) < WOWLAN_GTK_KEYS_NUM);
2398 for (data_idx = 0; data_idx < ARRAY_SIZE(status->gtk); data_idx++) {
2401 status->gtk[status_idx].len = data[data_idx].key_len;
2402 status->gtk[status_idx].flags = data[data_idx].key_flags;
2403 status->gtk[status_idx].id = status->gtk[status_idx].flags &
2406 memcpy(status->gtk[status_idx].key, data[data_idx].key,
2410 if (status->gtk[status_idx].len ==
2412 memcpy(status->gtk[status_idx].key +
2502 iwl_mvm_convert_key_counters_v5(status, &data->gtk[0].sc);
2503 iwl_mvm_convert_gtk_v3(status, data->gtk);
2549 iwl_mvm_convert_key_counters_v5(status, &data->gtk[0].sc);
2550 iwl_mvm_convert_gtk_v3(status, data->gtk);
2666 BUILD_BUG_ON(sizeof(v6->gtk.decrypt_key) >
2667 sizeof(status->gtk[0].key));
2669 sizeof(v6->gtk.tkip_mic_key) >
2670 sizeof(status->gtk[0].key));
2673 memcpy(status->gtk[0].key, v6->gtk.decrypt_key,
2674 sizeof(v6->gtk.decrypt_key));
2675 memcpy(status->gtk[0].key + NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,
2676 v6->gtk.tkip_mic_key,
2677 sizeof(v6->gtk.tkip_mic_key));
2679 iwl_mvm_convert_key_counters(status, &v6->gtk.rsc.all_tsc_rsc);
2682 status->gtk[0].len = 16;
2689 status->gtk[0].flags = v6->gtk.key_index | BIT(7);
2697 iwl_mvm_convert_key_counters(status, &v7->gtk[0].rsc.all_tsc_rsc);
2698 iwl_mvm_convert_gtk_v2(status, &v7->gtk[0]);
2710 iwl_mvm_convert_key_counters(status, &v9->gtk[0].rsc.all_tsc_rsc);
2711 iwl_mvm_convert_gtk_v2(status, &v9->gtk[0]);
2722 iwl_mvm_convert_key_counters_v5(status, &v12->gtk[0].sc);
2723 iwl_mvm_convert_gtk_v3(status, v12->gtk);