Lines Matching defs:wk
447 struct ieee80211req_del_key wk;
453 memset(&wk, 0, sizeof(wk));
455 memcpy(wk.idk_macaddr, addr, IEEE80211_ADDR_LEN);
456 wk.idk_keyix = (u8) IEEE80211_KEYIX_NONE;
458 wk.idk_keyix = key_idx;
461 ret = set80211priv(drv, IEEE80211_IOCTL_DELKEY, &wk, sizeof(wk));
477 struct ieee80211req_key wk;
530 if (key_len > sizeof(wk.ik_keydata)) {
536 memset(&wk, 0, sizeof(wk));
537 wk.ik_type = cipher;
538 wk.ik_flags = IEEE80211_KEY_RECV | IEEE80211_KEY_XMIT;
540 memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
541 wk.ik_keyix = key_idx;
543 wk.ik_flags |= IEEE80211_KEY_DEFAULT;
545 memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
546 wk.ik_keyix = IEEE80211_KEYIX_NONE;
548 wk.ik_keylen = key_len;
549 memcpy(wk.ik_keydata, key, key_len);
551 ret = set80211priv(drv, IEEE80211_IOCTL_SETKEY, &wk, sizeof(wk));
555 __func__, ether_sprintf(wk.ik_macaddr), key_idx,
568 struct ieee80211req_key wk;
573 memset(&wk, 0, sizeof(wk));
575 memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
577 memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
578 wk.ik_keyix = idx;
580 if (set80211priv(drv, IEEE80211_IOCTL_GETKEY, &wk, sizeof(wk))) {
583 __func__, MAC2STR(wk.ik_macaddr), idx);
590 * wk.ik_keytsc is in host byte order (big endian), need to
598 memcpy(tmp, &wk.ik_keytsc, sizeof(wk.ik_keytsc));
604 memcpy(seq, &wk.ik_keytsc, sizeof(wk.ik_keytsc));