Lines Matching refs:wk
391 struct ieee80211req_del_key wk;
397 memset(&wk, 0, sizeof(wk));
399 memcpy(wk.idk_macaddr, addr, IEEE80211_ADDR_LEN);
400 wk.idk_keyix = (u8) IEEE80211_KEYIX_NONE;
402 wk.idk_keyix = key_idx;
405 ret = set80211priv(drv, IEEE80211_IOCTL_DELKEY, &wk, sizeof(wk));
422 struct ieee80211req_key wk;
444 if (key_len > sizeof(wk.ik_keydata)) {
450 memset(&wk, 0, sizeof(wk));
451 wk.ik_type = cipher;
452 wk.ik_flags = IEEE80211_KEY_RECV | IEEE80211_KEY_XMIT;
454 memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
455 wk.ik_keyix = key_idx;
456 wk.ik_flags |= IEEE80211_KEY_DEFAULT;
458 memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
459 wk.ik_keyix = IEEE80211_KEYIX_NONE;
461 wk.ik_keylen = key_len;
462 memcpy(wk.ik_keydata, key, key_len);
464 ret = set80211priv(drv, IEEE80211_IOCTL_SETKEY, &wk, sizeof(wk));
468 __func__, ether_sprintf(wk.ik_macaddr), key_idx,
481 struct ieee80211req_key wk;
486 memset(&wk, 0, sizeof(wk));
488 memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
490 memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
491 wk.ik_keyix = idx;
493 if (set80211priv(drv, IEEE80211_IOCTL_GETKEY, &wk, sizeof(wk))) {
496 __func__, MAC2STR(wk.ik_macaddr), idx);
503 * wk.ik_keytsc is in host byte order (big endian), need to
508 memcpy(tmp, &wk.ik_keytsc, sizeof(wk.ik_keytsc));
514 memcpy(seq, &wk.ik_keytsc, sizeof(wk.ik_keytsc));