/* The GTK is stored in the last entry in the key table (the previous N_DEVICES entries are for the per-device PTKs).  */
int whc_set_gtk(struct wusbhc *wusbhc, u32 tkid, const void *gtk, size_t key_size)
/* The GTK is stored in the last entry in the key table (the previous N_DEVICES entries are for the per-device PTKs).  */
int whc_set_gtk(struct wusbhc *wusbhc, u32 tkid, const void *gtk, size_t key_size)
{
	struct whc *whc = wusbhc_to_whc(wusbhc);
	int ret;
	mutex_lock(&whc->mutex);
	ret = whc_set_key(whc, whc->n_devices, tkid, gtk, key_size, true);
	mutex_unlock(&whc->mutex);
	return ret;
}