Home | History | Annotate | Download | only in drivers

Lines Matching defs:wk

401 	struct ieee80211req_del_key wk;
407 memset(&wk, 0, sizeof(wk));
409 memcpy(wk.idk_macaddr, addr, IEEE80211_ADDR_LEN);
410 wk.idk_keyix = (u8) IEEE80211_KEYIX_NONE;
412 wk.idk_keyix = key_idx;
415 ret = set80211priv(drv, IEEE80211_IOCTL_DELKEY, &wk, sizeof(wk));
432 struct ieee80211req_key wk;
454 if (key_len > sizeof(wk.ik_keydata)) {
460 memset(&wk, 0, sizeof(wk));
461 wk.ik_type = cipher;
462 wk.ik_flags = IEEE80211_KEY_RECV | IEEE80211_KEY_XMIT;
464 memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
465 wk.ik_keyix = key_idx;
466 wk.ik_flags |= IEEE80211_KEY_DEFAULT;
468 memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
469 wk.ik_keyix = IEEE80211_KEYIX_NONE;
471 wk.ik_keylen = key_len;
472 memcpy(wk.ik_keydata, key, key_len);
474 ret = set80211priv(drv, IEEE80211_IOCTL_SETKEY, &wk, sizeof(wk));
478 __func__, ether_sprintf(wk.ik_macaddr), key_idx,
491 struct ieee80211req_key wk;
496 memset(&wk, 0, sizeof(wk));
498 memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
500 memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
501 wk.ik_keyix = idx;
503 if (set80211priv(drv, IEEE80211_IOCTL_GETKEY, &wk, sizeof(wk))) {
506 __func__, MAC2STR(wk.ik_macaddr), idx);
513 * wk.ik_keytsc is in host byte order (big endian), need to
518 memcpy(tmp, &wk.ik_keytsc, sizeof(wk.ik_keytsc));
524 memcpy(seq, &wk.ik_keytsc, sizeof(wk.ik_keytsc));