Lines Matching defs:wk
232 struct ieee80211req_del_key wk;
234 os_memset(&wk, 0, sizeof(wk));
237 wk.idk_keyix = key_idx;
241 os_memcpy(wk.idk_macaddr, addr, IEEE80211_ADDR_LEN);
242 wk.idk_keyix = (u_int8_t) IEEE80211_KEYIX_NONE; /* XXX */
245 return set80211var(priv, IEEE80211_IOC_DELKEY, &wk, sizeof(wk));
292 struct ieee80211req_key wk;
307 os_memset(&wk, 0, sizeof(wk));
310 wk.ik_type = IEEE80211_CIPHER_WEP;
313 wk.ik_type = IEEE80211_CIPHER_TKIP;
316 wk.ik_type = IEEE80211_CIPHER_AES_CCM;
323 wk.ik_flags = IEEE80211_KEY_RECV;
325 wk.ik_flags |= IEEE80211_KEY_XMIT;
328 os_memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
329 wk.ik_keyix = key_idx;
331 os_memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
338 wk.ik_flags |= IEEE80211_KEY_GROUP;
339 wk.ik_keyix = key_idx;
341 wk.ik_keyix = key_idx == 0 ? IEEE80211_KEYIX_NONE :
345 if (wk.ik_keyix != IEEE80211_KEYIX_NONE && set_tx)
346 wk.ik_flags |= IEEE80211_KEY_DEFAULT;
347 wk.ik_keylen = key_len;
351 * wk.ik_keyrsc is in host byte order (big endian), need to
355 u8 *keyrsc = (u8 *) &wk.ik_keyrsc;
359 os_memcpy(&wk.ik_keyrsc, seq, seq_len);
362 os_memcpy(wk.ik_keydata, key, key_len);
364 return set80211var(priv, IEEE80211_IOC_WPAKEY, &wk, sizeof(wk));
647 struct ieee80211req_key wk;
652 memset(&wk, 0, sizeof(wk));
654 wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN);
656 memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN);
657 wk.ik_keyix = idx;
659 if (get80211var(priv, IEEE80211_IOC_WPAKEY, &wk, sizeof(wk)) < 0) {
667 * wk.ik_keytsc is in host byte order (big endian), need to
672 memcpy(tmp, &wk.ik_keytsc, sizeof(wk.ik_keytsc));
678 memcpy(seq, &wk.ik_keytsc, sizeof(wk.ik_keytsc));