/linux/drivers/net/wireless/realtek/rtw88/ |
A 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()
|
A D | sec.h | 33 u8 hw_key_type, u8 hw_key_idx); 36 u8 hw_key_idx);
|
A 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()
|
/linux/drivers/net/wireless/ath/ |
A D | key.c | 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() 606 clear_bit(hw_key_idx, common->tkip_keymap); in ath_key_delete() 610 ath_hw_keyreset(common, hw_key_idx + 32); in ath_key_delete() [all …]
|
A D | ath.h | 200 void ath_key_delete(struct ath_common *common, u8 hw_key_idx);
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
A 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()
|
/linux/drivers/staging/vt6656/ |
A 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()
|
A 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()
|
/linux/drivers/staging/vt6655/ |
A 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()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
A 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() 455 key->hw_key_idx = wcid->idx; in mt76x02_set_key() 456 wcid->hw_key_idx = idx; in mt76x02_set_key() 462 if (idx == wcid->hw_key_idx) { in mt76x02_set_key() 463 wcid->hw_key_idx = -1; in mt76x02_set_key() 472 if (key || wcid->hw_key_idx == idx) { in mt76x02_set_key()
|
A D | mt76x02_txrx.c | 172 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02_tx_prepare_skb()
|
/linux/drivers/staging/wfx/ |
A 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()
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
A 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() 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() 403 reg = PAIRWISE_TA_ENTRY(key->hw_key_idx); in rt73usb_config_pairwise_key() 434 if (key->hw_key_idx < 32) { in rt73usb_config_pairwise_key() 435 mask = 1 << key->hw_key_idx; in rt73usb_config_pairwise_key() [all …]
|
A D | rt2x00crypto.c | 52 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
|
A 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()
|
A 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()
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
A D | sta.c | 1029 keyconf->hw_key_idx = IWLAGN_HW_KEY_DEFAULT; in iwl_set_default_wep_key() 1121 sta_cmd.key.key_offset = keyconf->hw_key_idx; in iwlagn_send_sta_key() 1179 if (!test_and_clear_bit(keyconf->hw_key_idx, &priv->ucode_key_table)) in iwl_remove_dynamic_key() 1181 keyconf->hw_key_idx); in iwl_remove_dynamic_key() 1191 sta_cmd.key.key_offset = keyconf->hw_key_idx; in iwl_remove_dynamic_key() 1214 keyconf->hw_key_idx = iwl_get_free_ucode_key_offset(priv); in iwl_set_dynamic_key() 1215 if (keyconf->hw_key_idx == WEP_INVALID_OFFSET) in iwl_set_dynamic_key() 1246 clear_bit(keyconf->hw_key_idx, &priv->ucode_key_table); in iwl_set_dynamic_key()
|
A D | mac80211.c | 634 key->hw_key_idx = WEP_INVALID_OFFSET; in iwlagn_mac_set_key() 639 if (cmd == DISABLE_KEY && key->hw_key_idx == WEP_INVALID_OFFSET) in iwlagn_mac_set_key() 659 key->hw_key_idx == IWLAGN_HW_KEY_DEFAULT; in iwlagn_mac_set_key() 676 key->hw_key_idx = WEP_INVALID_OFFSET; in iwlagn_mac_set_key()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
A D | main.c | 71 mvif->sta.wcid.hw_key_idx = -1; in mt7603_add_interface() 498 key->hw_key_idx = wcid->idx; in mt7603_set_key() 499 wcid->hw_key_idx = idx; in mt7603_set_key() 501 if (idx == wcid->hw_key_idx) in mt7603_set_key() 502 wcid->hw_key_idx = -1; in mt7603_set_key()
|
/linux/drivers/net/wireless/ath/ath9k/ |
A D | main.c | 1810 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/ |
A 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()
|
/linux/drivers/net/wireless/ath/carl9170/ |
A 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()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | pci_init.c | 65 dev->mt76.global_wcid.hw_key_idx = -1; in mt7615_init_hardware()
|
/linux/net/mac80211/ |
A D | debugfs_key.c | 64 KEY_CONF_FILE(hw_key_idx, D); 353 DEBUGFS_ADD(hw_key_idx); in ieee80211_debugfs_key_add()
|
/linux/drivers/net/wireless/ath/ath5k/ |
A 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()
|