• Home
  • Raw
  • Download

Lines Matching refs:idx

356 					int idx, bool uni, bool multi)  in __ieee80211_set_default_key()  argument
363 if (idx >= 0 && idx < NUM_DEFAULT_KEYS) { in __ieee80211_set_default_key()
364 key = key_mtx_dereference(sdata->local, sdata->keys[idx]); in __ieee80211_set_default_key()
366 key = key_mtx_dereference(sdata->local, link->gtk[idx]); in __ieee80211_set_default_key()
373 drv_set_default_unicast_key(sdata->local, sdata, idx); in __ieee80211_set_default_key()
382 void ieee80211_set_default_key(struct ieee80211_link_data *link, int idx, in ieee80211_set_default_key() argument
386 __ieee80211_set_default_key(link, idx, uni, multi); in ieee80211_set_default_key()
391 __ieee80211_set_default_mgmt_key(struct ieee80211_link_data *link, int idx) in __ieee80211_set_default_mgmt_key() argument
398 if (idx >= NUM_DEFAULT_KEYS && in __ieee80211_set_default_mgmt_key()
399 idx < NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS) in __ieee80211_set_default_mgmt_key()
400 key = key_mtx_dereference(sdata->local, link->gtk[idx]); in __ieee80211_set_default_mgmt_key()
408 int idx) in ieee80211_set_default_mgmt_key() argument
411 __ieee80211_set_default_mgmt_key(link, idx); in ieee80211_set_default_mgmt_key()
416 __ieee80211_set_default_beacon_key(struct ieee80211_link_data *link, int idx) in __ieee80211_set_default_beacon_key() argument
423 if (idx >= NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS && in __ieee80211_set_default_beacon_key()
424 idx < NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS + in __ieee80211_set_default_beacon_key()
426 key = key_mtx_dereference(sdata->local, link->gtk[idx]); in __ieee80211_set_default_beacon_key()
434 int idx) in ieee80211_set_default_beacon_key() argument
437 __ieee80211_set_default_beacon_key(link, idx); in ieee80211_set_default_beacon_key()
450 int idx; in ieee80211_key_replace() local
460 idx = new->conf.keyidx; in ieee80211_key_replace()
465 idx = old->conf.keyidx; in ieee80211_key_replace()
493 if ((is_wep || pairwise) && idx >= NUM_DEFAULT_KEYS) in ieee80211_key_replace()
529 rcu_assign_pointer(sta->ptk[idx], new); in ieee80211_key_replace()
534 rcu_assign_pointer(link_sta->gtk[idx], new); in ieee80211_key_replace()
566 rcu_assign_pointer(sdata->keys[idx], new); in ieee80211_key_replace()
568 rcu_assign_pointer(link->gtk[idx], new); in ieee80211_key_replace()
591 ieee80211_key_alloc(u32 cipher, int idx, size_t key_len, in ieee80211_key_alloc() argument
598 if (WARN_ON(idx < 0 || in ieee80211_key_alloc()
599 idx >= NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS + in ieee80211_key_alloc()
616 key->conf.keyidx = idx; in ieee80211_key_alloc()
852 int idx = key->conf.keyidx; in ieee80211_key_link() local
867 old_key = key_mtx_dereference(sdata->local, sta->ptk[idx]); in ieee80211_key_link()
868 alt_key = key_mtx_dereference(sdata->local, sta->ptk[idx ^ 1]); in ieee80211_key_link()
891 old_key = key_mtx_dereference(sdata->local, link_sta->gtk[idx]); in ieee80211_key_link()
893 if (idx < NUM_DEFAULT_KEYS) in ieee80211_key_link()
895 sdata->keys[idx]); in ieee80211_key_link()
898 link->gtk[idx]); in ieee80211_key_link()