• Home
  • Raw
  • Download

Lines Matching refs:wk

269 	struct ieee80211req_del_key wk;  in bsd_del_key()  local
271 os_memset(&wk, 0, sizeof(wk)); in bsd_del_key()
274 wk.idk_keyix = key_idx; in bsd_del_key()
278 os_memcpy(wk.idk_macaddr, addr, IEEE80211_ADDR_LEN); in bsd_del_key()
279 wk.idk_keyix = (u_int8_t) IEEE80211_KEYIX_NONE; /* XXX */ in bsd_del_key()
282 return set80211var(priv, IEEE80211_IOC_DELKEY, &wk, sizeof(wk)); in bsd_del_key()
338 struct ieee80211req_key wk; in bsd_set_key() local
356 os_memset(&wk, 0, sizeof(wk)); in bsd_set_key()
359 wk.ik_type = IEEE80211_CIPHER_WEP; in bsd_set_key()
362 wk.ik_type = IEEE80211_CIPHER_TKIP; in bsd_set_key()
365 wk.ik_type = IEEE80211_CIPHER_AES_CCM; in bsd_set_key()
372 wk.ik_flags = IEEE80211_KEY_RECV; in bsd_set_key()
374 wk.ik_flags |= IEEE80211_KEY_XMIT; in bsd_set_key()
377 os_memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN); in bsd_set_key()
378 wk.ik_keyix = key_idx; in bsd_set_key()
380 os_memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN); in bsd_set_key()
387 wk.ik_flags |= IEEE80211_KEY_GROUP; in bsd_set_key()
388 wk.ik_keyix = key_idx; in bsd_set_key()
390 wk.ik_keyix = key_idx == 0 ? IEEE80211_KEYIX_NONE : in bsd_set_key()
394 if (wk.ik_keyix != IEEE80211_KEYIX_NONE && set_tx) in bsd_set_key()
395 wk.ik_flags |= IEEE80211_KEY_DEFAULT; in bsd_set_key()
403 wk.ik_flags |= IEEE80211_KEY_NOREPLAY; in bsd_set_key()
406 wk.ik_keylen = key_len; in bsd_set_key()
414 u8 *keyrsc = (u8 *) &wk.ik_keyrsc; in bsd_set_key()
418 os_memcpy(&wk.ik_keyrsc, seq, seq_len); in bsd_set_key()
421 os_memcpy(wk.ik_keydata, key, key_len); in bsd_set_key()
423 return set80211var(priv, IEEE80211_IOC_WPAKEY, &wk, sizeof(wk)); in bsd_set_key()
692 struct ieee80211req_key wk; in bsd_get_seqnum() local
697 memset(&wk, 0, sizeof(wk)); in bsd_get_seqnum()
699 memset(wk.ik_macaddr, 0xff, IEEE80211_ADDR_LEN); in bsd_get_seqnum()
701 memcpy(wk.ik_macaddr, addr, IEEE80211_ADDR_LEN); in bsd_get_seqnum()
702 wk.ik_keyix = idx; in bsd_get_seqnum()
704 if (get80211var(priv, IEEE80211_IOC_WPAKEY, &wk, sizeof(wk)) < 0) { in bsd_get_seqnum()
717 memcpy(tmp, &wk.ik_keytsc, sizeof(wk.ik_keytsc)); in bsd_get_seqnum()
723 memcpy(seq, &wk.ik_keytsc, sizeof(wk.ik_keytsc)); in bsd_get_seqnum()