/drivers/net/wireless/realtek/rtw88/ |
D | sec.c | 26 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()
|
D | sec.h | 33 u8 hw_key_type, u8 hw_key_idx); 36 u8 hw_key_idx);
|
D | mac80211.c | 473 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/ |
D | key.c | 584 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 …]
|
D | ath.h | 202 void ath_key_delete(struct ath_common *common, u8 hw_key_idx);
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | main.c | 66 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/ |
D | key.c | 56 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()
|
D | main_usb.c | 910 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/ |
D | key.c | 40 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/ |
D | mt76x02_util.c | 186 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()
|
D | mt76x02_txrx.c | 172 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02_tx_prepare_skb()
|
D | mt76x02_usb_core.c | 100 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02u_tx_prepare_skb()
|
/drivers/staging/wfx/ |
D | key.c | 215 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/ |
D | rt73usb.c | 284 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 …]
|
D | rt2x00crypto.c | 52 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
|
D | rt2500usb.c | 354 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()
|
D | rt61pci.c | 342 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/ |
D | sta.c | 1034 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()
|
D | mac80211.c | 639 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/ |
D | main.c | 71 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/ |
D | main.c | 1811 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/ |
D | main.c | 567 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/ |
D | main.c | 1230 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/ |
D | pci_init.c | 63 dev->mt76.global_wcid.hw_key_idx = -1; in mt7615_init_hardware()
|
/drivers/net/wireless/ath/ath5k/ |
D | mac80211-ops.c | 514 key->hw_key_idx = ret; in ath5k_set_key() 525 ath_key_delete(common, key->hw_key_idx); in ath5k_set_key()
|