Searched refs:ptk_pn (Results 1 – 8 of 8) sorted by relevance
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | mac80211.c | 2104 struct iwl_mld_ptk_pn **ptk_pn) in iwl_mld_alloc_ptk_pn() argument 2110 if (WARN_ON(keyidx >= ARRAY_SIZE(mld_sta->ptk_pn))) in iwl_mld_alloc_ptk_pn() 2113 WARN_ON(rcu_access_pointer(mld_sta->ptk_pn[keyidx])); in iwl_mld_alloc_ptk_pn() 2114 *ptk_pn = kzalloc_flex(**ptk_pn, q, num_rx_queues); in iwl_mld_alloc_ptk_pn() 2115 if (!*ptk_pn) in iwl_mld_alloc_ptk_pn() 2121 memcpy((*ptk_pn)->q[q].pn[tid], seq.ccmp.pn, in iwl_mld_alloc_ptk_pn() 2125 rcu_assign_pointer(mld_sta->ptk_pn[keyidx], *ptk_pn); in iwl_mld_alloc_ptk_pn() 2138 struct iwl_mld_ptk_pn *ptk_pn = NULL; in iwl_mld_set_key_add() local 2186 ret = iwl_mld_alloc_ptk_pn(mld, mld_sta, key, &ptk_pn); in iwl_mld_set_key_add() 2197 if (ptk_pn) { in iwl_mld_set_key_add() [all …]
|
| H A D | sta.h | 140 struct iwl_mld_ptk_pn __rcu *ptk_pn[IWL_NUM_DEFAULT_KEYS]; member
|
| H A D | rx.c | 56 struct iwl_mld_ptk_pn *ptk_pn; in iwl_mld_check_pn() local 86 ptk_pn = rcu_dereference(mld_sta->ptk_pn[keyidx]); in iwl_mld_check_pn() 87 if (!ptk_pn) in iwl_mld_check_pn() 107 res = memcmp(pn, ptk_pn->q[queue].pn[tid], IEEE80211_CCMP_PN_LEN); in iwl_mld_check_pn() 113 memcpy(ptk_pn->q[queue].pn[tid], pn, IEEE80211_CCMP_PN_LEN); in iwl_mld_check_pn()
|
| H A D | d3.c | 876 mld_sta->ptk_pn[key->keyidx]); in iwl_mld_update_ptk_rx_seq() 1487 if (WARN_ON(key->keyidx >= ARRAY_SIZE(mld_sta->ptk_pn))) in iwl_mld_suspend_set_ucast_pn() 1491 mld_sta->ptk_pn[key->keyidx]); in iwl_mld_suspend_set_ucast_pn()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | d3.c | 83 struct iwl_mvm_key_pn *ptk_pn, in iwl_mvm_find_max_pn() argument 95 const u8 *tmp = ptk_pn->q[i].pn[tid]; in iwl_mvm_find_max_pn() 289 struct iwl_mvm_key_pn *ptk_pn; in iwl_mvm_wowlan_get_rsc_tsc_data() local 294 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_tsc_data() 295 if (WARN_ON(!ptk_pn)) { in iwl_mvm_wowlan_get_rsc_tsc_data() 301 pn = iwl_mvm_find_max_pn(key, ptk_pn, &seq, i, in iwl_mvm_wowlan_get_rsc_tsc_data() 410 struct iwl_mvm_key_pn *ptk_pn; in iwl_mvm_wowlan_get_rsc_v5_data() local 415 ptk_pn = rcu_dereference(mvmsta->ptk_pn[key->keyidx]); in iwl_mvm_wowlan_get_rsc_v5_data() 416 if (WARN_ON(!ptk_pn)) { in iwl_mvm_wowlan_get_rsc_v5_data() 422 pn = iwl_mvm_find_max_pn(key, ptk_pn, &seq, i, in iwl_mvm_wowlan_get_rsc_v5_data() [all …]
|
| H A D | mac80211.c | 4223 struct iwl_mvm_key_pn *ptk_pn = NULL; in __iwl_mvm_mac_set_key() local 4350 WARN_ON(rcu_access_pointer(mvmsta->ptk_pn[keyidx])); in __iwl_mvm_mac_set_key() 4351 ptk_pn = kzalloc_flex(*ptk_pn, q, in __iwl_mvm_mac_set_key() 4353 if (!ptk_pn) { in __iwl_mvm_mac_set_key() 4361 memcpy(ptk_pn->q[q].pn[tid], in __iwl_mvm_mac_set_key() 4366 rcu_assign_pointer(mvmsta->ptk_pn[keyidx], ptk_pn); in __iwl_mvm_mac_set_key() 4389 if (ptk_pn) { in __iwl_mvm_mac_set_key() 4390 RCU_INIT_POINTER(mvmsta->ptk_pn[keyidx], NULL); in __iwl_mvm_mac_set_key() 4391 kfree(ptk_pn); in __iwl_mvm_mac_set_key() 4434 ptk_pn = rcu_dereference_protected( in __iwl_mvm_mac_set_key() [all …]
|
| H A D | rxmq.c | 20 struct iwl_mvm_key_pn *ptk_pn; in iwl_mvm_check_pn() local 57 ptk_pn = rcu_dereference(mvmsta->ptk_pn[keyidx]); in iwl_mvm_check_pn() 58 if (!ptk_pn) in iwl_mvm_check_pn() 78 res = memcmp(pn, ptk_pn->q[queue].pn[tid], IEEE80211_CCMP_PN_LEN); in iwl_mvm_check_pn() 84 memcpy(ptk_pn->q[queue].pn[tid], pn, IEEE80211_CCMP_PN_LEN); in iwl_mvm_check_pn()
|
| H A D | sta.h | 413 struct iwl_mvm_key_pn __rcu *ptk_pn[4]; member
|