Lines Matching refs:wk

452 	struct ieee80211req_del_key wk;  in atheros_del_key()  local
458 os_memset(&wk, 0, sizeof(wk)); in atheros_del_key()
460 os_memcpy(wk.idk_macaddr, addr, IEEE80211_ADDR_LEN); in atheros_del_key()
461 wk.idk_keyix = (u8) IEEE80211_KEYIX_NONE; in atheros_del_key()
463 wk.idk_keyix = key_idx; in atheros_del_key()
466 ret = set80211priv(drv, IEEE80211_IOCTL_DELKEY, &wk, sizeof(wk)); in atheros_del_key()
482 struct ieee80211req_key wk; in atheros_set_key() local
535 if (key_len > sizeof(wk.ik_keydata)) { in atheros_set_key()
541 os_memset(&wk, 0, sizeof(wk)); in atheros_set_key()
542 wk.ik_type = cipher; in atheros_set_key()
543 wk.ik_flags = IEEE80211_KEY_RECV | IEEE80211_KEY_XMIT; in atheros_set_key()
545 os_memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN); in atheros_set_key()
546 wk.ik_keyix = key_idx; in atheros_set_key()
548 wk.ik_flags |= IEEE80211_KEY_DEFAULT; in atheros_set_key()
550 os_memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN); in atheros_set_key()
551 wk.ik_keyix = IEEE80211_KEYIX_NONE; in atheros_set_key()
553 wk.ik_keylen = key_len; in atheros_set_key()
554 os_memcpy(wk.ik_keydata, key, key_len); in atheros_set_key()
556 ret = set80211priv(drv, IEEE80211_IOCTL_SETKEY, &wk, sizeof(wk)); in atheros_set_key()
560 __func__, ether_sprintf(wk.ik_macaddr), key_idx, in atheros_set_key()
573 struct ieee80211req_key wk; in atheros_get_seqnum() local
578 os_memset(&wk, 0, sizeof(wk)); in atheros_get_seqnum()
580 os_memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN); in atheros_get_seqnum()
582 os_memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN); in atheros_get_seqnum()
583 wk.ik_keyix = idx; in atheros_get_seqnum()
585 if (set80211priv(drv, IEEE80211_IOCTL_GETKEY, &wk, sizeof(wk))) { in atheros_get_seqnum()
588 __func__, MAC2STR(wk.ik_macaddr), idx); in atheros_get_seqnum()
603 os_memcpy(tmp, &wk.ik_keytsc, sizeof(wk.ik_keytsc)); in atheros_get_seqnum()
609 os_memcpy(seq, &wk.ik_keytsc, sizeof(wk.ik_keytsc)); in atheros_get_seqnum()