Home
last modified time | relevance | path

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

123

/drivers/net/wireless/realtek/rtw88/
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()
Dsec.h33 u8 hw_key_type, u8 hw_key_idx);
36 u8 hw_key_idx);
Dmac80211.c473 u8 hw_key_idx; in rtw_ops_set_key() local
509 hw_key_idx = rtw_sec_get_free_cam(sec); in rtw_ops_set_key()
512 hw_key_idx = key->keyidx; in rtw_ops_set_key()
515 if (hw_key_idx > sec->total_cam_num) { in rtw_ops_set_key()
524 key->hw_key_idx = hw_key_idx; in rtw_ops_set_key()
526 hw_key_type, hw_key_idx); in rtw_ops_set_key()
531 rtw_sec_clear_cam(rtwdev, sec, key->hw_key_idx); in rtw_ops_set_key()
/drivers/net/wireless/ath/
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 …]
Dath.h202 void ath_key_delete(struct ath_common *common, u8 hw_key_idx);
/drivers/net/wireless/mediatek/mt7601u/
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()
/drivers/staging/vt6656/
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()
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()
/drivers/staging/vt6655/
Dkey.c40 key->hw_key_idx = i; in vnt_set_keymode()
41 entry = key->hw_key_idx; in vnt_set_keymode()
51 key->hw_key_idx = entry; in vnt_set_keymode()
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_util.c186 dev->mt76.global_wcid.hw_key_idx = -1; in mt76x02_init_device()
254 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add()
289 mvif->group_wcid.hw_key_idx = -1; in mt76x02_vif_init()
454 key->hw_key_idx = wcid->idx; in mt76x02_set_key()
455 wcid->hw_key_idx = idx; in mt76x02_set_key()
461 if (idx == wcid->hw_key_idx) { in mt76x02_set_key()
462 wcid->hw_key_idx = -1; in mt76x02_set_key()
471 if (key || wcid->hw_key_idx == idx) { in mt76x02_set_key()
Dmt76x02_txrx.c172 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02_tx_prepare_skb()
Dmt76x02_usb_core.c100 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02u_tx_prepare_skb()
/drivers/staging/wfx/
Dkey.c215 key->hw_key_idx = idx; in wfx_add_key()
221 WARN(key->hw_key_idx >= MAX_KEY_ENTRIES, "corrupted hw_key_idx"); in wfx_remove_key()
222 wfx_free_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key()
223 return hif_remove_key(wvif->wdev, key->hw_key_idx); in wfx_remove_key()
/drivers/net/wireless/ralink/rt2x00/
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 …]
Drt2x00crypto.c52 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
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()
Drt61pci.c342 key->hw_key_idx = 32; in rt61pci_config_pairwise_key()
348 key->hw_key_idx += reg ? ffz(reg) : 0; in rt61pci_config_pairwise_key()
364 reg = PAIRWISE_KEY_ENTRY(key->hw_key_idx); in rt61pci_config_pairwise_key()
368 reg = PAIRWISE_TA_ENTRY(key->hw_key_idx); in rt61pci_config_pairwise_key()
399 if (key->hw_key_idx < 32) { in rt61pci_config_pairwise_key()
400 mask = 1 << key->hw_key_idx; in rt61pci_config_pairwise_key()
409 mask = 1 << (key->hw_key_idx - 32); in rt61pci_config_pairwise_key()
/drivers/net/wireless/intel/iwlwifi/dvm/
Dsta.c1034 keyconf->hw_key_idx = IWLAGN_HW_KEY_DEFAULT; in iwl_set_default_wep_key()
1129 sta_cmd.key.key_offset = keyconf->hw_key_idx; in iwlagn_send_sta_key()
1187 if (!test_and_clear_bit(keyconf->hw_key_idx, &priv->ucode_key_table)) in iwl_remove_dynamic_key()
1189 keyconf->hw_key_idx); in iwl_remove_dynamic_key()
1199 sta_cmd.key.key_offset = keyconf->hw_key_idx; in iwl_remove_dynamic_key()
1222 keyconf->hw_key_idx = iwl_get_free_ucode_key_offset(priv); in iwl_set_dynamic_key()
1223 if (keyconf->hw_key_idx == WEP_INVALID_OFFSET) in iwl_set_dynamic_key()
1254 clear_bit(keyconf->hw_key_idx, &priv->ucode_key_table); in iwl_set_dynamic_key()
Dmac80211.c639 key->hw_key_idx = WEP_INVALID_OFFSET; in iwlagn_mac_set_key()
644 if (cmd == DISABLE_KEY && key->hw_key_idx == WEP_INVALID_OFFSET) in iwlagn_mac_set_key()
664 key->hw_key_idx == IWLAGN_HW_KEY_DEFAULT; in iwlagn_mac_set_key()
681 key->hw_key_idx = WEP_INVALID_OFFSET; in iwlagn_mac_set_key()
/drivers/net/wireless/mediatek/mt76/mt7603/
Dmain.c71 mvif->sta.wcid.hw_key_idx = -1; in mt7603_add_interface()
495 key->hw_key_idx = wcid->idx; in mt7603_set_key()
496 wcid->hw_key_idx = idx; in mt7603_set_key()
498 if (idx == wcid->hw_key_idx) in mt7603_set_key()
499 wcid->hw_key_idx = -1; in mt7603_set_key()
/drivers/net/wireless/ath/ath9k/
Dmain.c1811 key->hw_key_idx = 0; in ath9k_set_key()
1814 key->hw_key_idx = ret; in ath9k_set_key()
1824 if (an && key->hw_key_idx) { in ath9k_set_key()
1828 an->key_idx[i] = key->hw_key_idx; in ath9k_set_key()
1835 if (ath9k_txq_has_key(sc, key->hw_key_idx)) { in ath9k_set_key()
1839 set_bit(key->hw_key_idx, sc->sc_ah->pending_del_keymap); in ath9k_set_key()
1840 ath_hw_keysetmac(common, key->hw_key_idx, NULL); in ath9k_set_key()
1842 ath_key_delete(common, key->hw_key_idx); in ath9k_set_key()
1846 if (an->key_idx[i] != key->hw_key_idx) in ath9k_set_key()
1852 key->hw_key_idx = 0; in ath9k_set_key()
/drivers/net/wireless/intersil/p54/
Dmain.c567 key->hw_key_idx = 0xff; in p54_set_key()
573 slot = key->hw_key_idx; in p54_set_key()
596 key->hw_key_idx = slot; in p54_set_key()
/drivers/net/wireless/ath/carl9170/
Dmain.c1230 key->hw_key_idx = i; in carl9170_op_set_key()
1263 if (key->hw_key_idx < 64) { in carl9170_op_set_key()
1264 ar->usedkeys &= ~BIT(key->hw_key_idx); in carl9170_op_set_key()
1266 err = carl9170_upload_key(ar, key->hw_key_idx, NULL, in carl9170_op_set_key()
1273 err = carl9170_upload_key(ar, key->hw_key_idx, in carl9170_op_set_key()
1283 err = carl9170_disable_key(ar, key->hw_key_idx); in carl9170_op_set_key()
/drivers/net/wireless/mediatek/mt76/mt7615/
Dpci_init.c63 dev->mt76.global_wcid.hw_key_idx = -1; in mt7615_init_hardware()
/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c514 key->hw_key_idx = ret; in ath5k_set_key()
525 ath_key_delete(common, key->hw_key_idx); in ath5k_set_key()

123