Home
last modified time | relevance | path

Searched refs:hw_key_idx (Results 1 – 25 of 76) sorted by relevance

1234

/linux/drivers/net/wireless/realtek/rtw88/
H A Dsec.c26 u8 hw_key_type, u8 hw_key_idx) in rtw_sec_write_cam() argument
28 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_write_cam()
35 set_bit(hw_key_idx, sec->cam_map); in rtw_sec_write_cam()
46 addr = hw_key_idx << RTW_SEC_CAM_ENTRY_SHIFT; in rtw_sec_write_cam()
84 u8 hw_key_idx) in rtw_sec_clear_cam() argument
86 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_clear_cam()
91 clear_bit(hw_key_idx, sec->cam_map); in rtw_sec_clear_cam()
97 addr = hw_key_idx << RTW_SEC_CAM_ENTRY_SHIFT; in rtw_sec_clear_cam()
H A Dsec.h33 u8 hw_key_type, u8 hw_key_idx);
36 u8 hw_key_idx);
H A Dmac80211.c556 u8 hw_key_idx; in rtw_ops_set_key() local
592 hw_key_idx = rtw_sec_get_free_cam(sec); in rtw_ops_set_key()
595 hw_key_idx = key->keyidx; in rtw_ops_set_key()
598 if (hw_key_idx > sec->total_cam_num) { in rtw_ops_set_key()
607 key->hw_key_idx = hw_key_idx; in rtw_ops_set_key()
609 hw_key_type, hw_key_idx); in rtw_ops_set_key()
614 rtw_sec_clear_cam(rtwdev, sec, key->hw_key_idx); in rtw_ops_set_key()
/linux/drivers/net/wireless/ath/
H A Dkey.c584 void ath_key_delete(struct ath_common *common, u8 hw_key_idx) in ath_key_delete() argument
591 if (test_bit(hw_key_idx, common->ccmp_keymap) || in ath_key_delete()
592 test_bit(hw_key_idx, common->tkip_keymap)) in ath_key_delete()
593 ath_hw_keysetmac(common, hw_key_idx, NULL); in ath_key_delete()
595 ath_hw_keyreset(common, hw_key_idx); in ath_key_delete()
596 if (hw_key_idx < IEEE80211_WEP_NKID) in ath_key_delete()
599 clear_bit(hw_key_idx, common->keymap); in ath_key_delete()
600 clear_bit(hw_key_idx, common->ccmp_keymap); in ath_key_delete()
601 if (!test_bit(hw_key_idx, common->tkip_keymap)) in ath_key_delete()
604 clear_bit(hw_key_idx + 64, common->keymap); in ath_key_delete()
[all …]
H A Dath.h204 void ath_key_delete(struct ath_common *common, u8 hw_key_idx);
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dmain.c66 mvif->group_wcid.hw_key_idx = -1; in mt7601u_add_interface()
227 msta->wcid.hw_key_idx = -1; in mt7601u_sta_add()
315 key->hw_key_idx = wcid->idx; in mt7601u_set_key()
316 wcid->hw_key_idx = idx; in mt7601u_set_key()
318 if (idx == wcid->hw_key_idx) in mt7601u_set_key()
319 wcid->hw_key_idx = -1; in mt7601u_set_key()
325 if (key || wcid->hw_key_idx == idx) { in mt7601u_set_key()
/linux/drivers/staging/vt6656/
H A Dkey.c56 key->hw_key_idx = i; in vnt_set_keymode()
57 entry = key->hw_key_idx; in vnt_set_keymode()
67 key->hw_key_idx = entry; in vnt_set_keymode()
H A Dmain_usb.c910 if (test_bit(key->hw_key_idx, &priv->key_entry_inuse)) { in vnt_set_key()
911 clear_bit(key->hw_key_idx, &priv->key_entry_inuse); in vnt_set_key()
913 vnt_mac_disable_keyentry(priv, key->hw_key_idx); in vnt_set_key()
/linux/drivers/staging/vt6655/
H A Dkey.c39 key->hw_key_idx = i; in vnt_set_keymode()
40 entry = key->hw_key_idx; in vnt_set_keymode()
50 key->hw_key_idx = entry; in vnt_set_keymode()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_util.c185 dev->mt76.global_wcid.hw_key_idx = -1; in mt76x02_init_device()
255 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add()
290 mvif->group_wcid.hw_key_idx = -1; in mt76x02_vif_init()
458 if (idx == wcid->hw_key_idx) { in mt76x02_set_key()
459 wcid->hw_key_idx = -1; in mt76x02_set_key()
466 key->hw_key_idx = wcid->idx; in mt76x02_set_key()
467 wcid->hw_key_idx = idx; in mt76x02_set_key()
475 if (key || wcid->hw_key_idx == idx) { in mt76x02_set_key()
H A Dmt76x02_txrx.c172 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02_tx_prepare_skb()
/linux/drivers/net/wireless/silabs/wfx/
H A Dkey.c203 key->hw_key_idx = idx; in wfx_add_key()
209 WARN(key->hw_key_idx >= MAX_KEY_ENTRIES, "corrupted hw_key_idx"); in wfx_remove_key()
210 wfx_free_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key()
211 return wfx_hif_remove_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dmld-key.c291 keyconf->hw_key_idx = 0; in iwl_mvm_sec_key_add()
324 mvm_link->igtk->hw_key_idx = STA_KEY_IDX_INVALID; in _iwl_mvm_sec_key_del()
377 if (key->hw_key_idx == STA_KEY_IDX_INVALID) in iwl_mvm_sec_key_remove_ap_iter()
387 key->hw_key_idx = STA_KEY_IDX_INVALID; in iwl_mvm_sec_key_remove_ap_iter()
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt73usb.c284 key->hw_key_idx += reg ? ffz(reg) : 0; in rt73usb_config_shared_key()
296 reg = SHARED_KEY_ENTRY(key->hw_key_idx); in rt73usb_config_shared_key()
307 if (key->hw_key_idx < 8) { in rt73usb_config_shared_key()
308 field.bit_offset = (3 * key->hw_key_idx); in rt73usb_config_shared_key()
315 field.bit_offset = (3 * (key->hw_key_idx - 8)); in rt73usb_config_shared_key()
341 mask = 1 << key->hw_key_idx; in rt73usb_config_shared_key()
374 key->hw_key_idx = 32; in rt73usb_config_pairwise_key()
380 key->hw_key_idx += reg ? ffz(reg) : 0; in rt73usb_config_pairwise_key()
392 reg = PAIRWISE_KEY_ENTRY(key->hw_key_idx); in rt73usb_config_pairwise_key()
403 reg = PAIRWISE_TA_ENTRY(key->hw_key_idx); in rt73usb_config_pairwise_key()
[all …]
H A Drt2x00crypto.c52 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
H A Drt2500usb.c354 key->hw_key_idx += reg ? ffz(reg) : 0; in rt2500usb_config_key()
361 if (key->hw_key_idx > 0 && crypto->cipher != curr_cipher) in rt2500usb_config_key()
364 rt2500usb_register_multiwrite(rt2x00dev, KEY_ENTRY(key->hw_key_idx), in rt2500usb_config_key()
390 mask |= 1 << key->hw_key_idx; in rt2500usb_config_key()
392 mask &= ~(1 << key->hw_key_idx); in rt2500usb_config_key()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dsta.c1029 keyconf->hw_key_idx = IWLAGN_HW_KEY_DEFAULT; in iwl_set_default_wep_key()
1124 sta_cmd.key.key_offset = keyconf->hw_key_idx; in iwlagn_send_sta_key()
1182 if (!test_and_clear_bit(keyconf->hw_key_idx, &priv->ucode_key_table)) in iwl_remove_dynamic_key()
1184 keyconf->hw_key_idx); in iwl_remove_dynamic_key()
1194 sta_cmd.key.key_offset = keyconf->hw_key_idx; in iwl_remove_dynamic_key()
1217 keyconf->hw_key_idx = iwl_get_free_ucode_key_offset(priv); in iwl_set_dynamic_key()
1218 if (keyconf->hw_key_idx == WEP_INVALID_OFFSET) in iwl_set_dynamic_key()
1249 clear_bit(keyconf->hw_key_idx, &priv->ucode_key_table); in iwl_set_dynamic_key()
H A Dmac80211.c632 key->hw_key_idx = WEP_INVALID_OFFSET; in iwlagn_mac_set_key()
637 if (cmd == DISABLE_KEY && key->hw_key_idx == WEP_INVALID_OFFSET) in iwlagn_mac_set_key()
657 key->hw_key_idx == IWLAGN_HW_KEY_DEFAULT; in iwlagn_mac_set_key()
674 key->hw_key_idx = WEP_INVALID_OFFSET; in iwlagn_mac_set_key()
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmain.c71 mvif->sta.wcid.hw_key_idx = -1; in mt7603_add_interface()
512 if (idx == wcid->hw_key_idx) in mt7603_set_key()
513 wcid->hw_key_idx = -1; in mt7603_set_key()
518 key->hw_key_idx = wcid->idx; in mt7603_set_key()
519 wcid->hw_key_idx = idx; in mt7603_set_key()
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dpci_init.c63 dev->mt76.global_wcid.hw_key_idx = -1; in mt7615_init_hardware()
/linux/drivers/net/wireless/ath/ath9k/
H A Dmain.c1810 key->hw_key_idx = 0; in ath9k_set_key()
1813 key->hw_key_idx = ret; in ath9k_set_key()
1823 if (an && key->hw_key_idx) { in ath9k_set_key()
1827 an->key_idx[i] = key->hw_key_idx; in ath9k_set_key()
1834 if (ath9k_txq_has_key(sc, key->hw_key_idx)) { in ath9k_set_key()
1838 set_bit(key->hw_key_idx, sc->sc_ah->pending_del_keymap); in ath9k_set_key()
1839 ath_hw_keysetmac(common, key->hw_key_idx, NULL); in ath9k_set_key()
1841 ath_key_delete(common, key->hw_key_idx); in ath9k_set_key()
1845 if (an->key_idx[i] != key->hw_key_idx) in ath9k_set_key()
1851 key->hw_key_idx = 0; in ath9k_set_key()
/linux/drivers/net/wireless/intersil/p54/
H A Dmain.c568 key->hw_key_idx = 0xff; in p54_set_key()
574 slot = key->hw_key_idx; in p54_set_key()
597 key->hw_key_idx = slot; in p54_set_key()
/linux/drivers/net/wireless/ath/carl9170/
H A Dmain.c1229 key->hw_key_idx = i; in carl9170_op_set_key()
1262 if (key->hw_key_idx < 64) { in carl9170_op_set_key()
1263 ar->usedkeys &= ~BIT(key->hw_key_idx); in carl9170_op_set_key()
1265 err = carl9170_upload_key(ar, key->hw_key_idx, NULL, in carl9170_op_set_key()
1272 err = carl9170_upload_key(ar, key->hw_key_idx, in carl9170_op_set_key()
1282 err = carl9170_disable_key(ar, key->hw_key_idx); in carl9170_op_set_key()
/linux/net/mac80211/
H A Ddebugfs_key.c64 KEY_CONF_FILE(hw_key_idx, D);
353 DEBUGFS_ADD(hw_key_idx); in ieee80211_debugfs_key_add()
/linux/drivers/net/wireless/ath/ath5k/
H A Dmac80211-ops.c513 key->hw_key_idx = ret; in ath5k_set_key()
524 ath_key_delete(common, key->hw_key_idx); in ath5k_set_key()

1234