Lines Matching refs:cipher
44 switch (key->cipher) { in mt76x02_mac_get_key_info()
61 enum mt76x02_cipher_type cipher; in mt76x02_mac_shared_key_setup() local
65 cipher = mt76x02_mac_get_key_info(key, key_data); in mt76x02_mac_shared_key_setup()
66 if (cipher == MT76X02_CIPHER_NONE && key) in mt76x02_mac_shared_key_setup()
71 val |= cipher << MT_SKEY_MODE_SHIFT(vif_idx, key_idx); in mt76x02_mac_shared_key_setup()
84 enum mt76x02_cipher_type cipher; in mt76x02_mac_wcid_sync_pn() local
89 cipher = mt76x02_mac_get_key_info(key, key_data); in mt76x02_mac_wcid_sync_pn()
94 if (cipher == MT76X02_CIPHER_TKIP) { in mt76x02_mac_wcid_sync_pn()
97 } else if (cipher >= MT76X02_CIPHER_AES_CCMP) { in mt76x02_mac_wcid_sync_pn()
109 enum mt76x02_cipher_type cipher; in mt76x02_mac_wcid_set_key() local
114 cipher = mt76x02_mac_get_key_info(key, key_data); in mt76x02_mac_wcid_set_key()
115 if (cipher == MT76X02_CIPHER_NONE && key) in mt76x02_mac_wcid_set_key()
119 mt76_rmw_field(dev, MT_WCID_ATTR(idx), MT_WCID_ATTR_PKEY_MODE, cipher); in mt76x02_mac_wcid_set_key()
129 if (cipher >= MT76X02_CIPHER_TKIP) { in mt76x02_mac_wcid_set_key()
134 if (cipher == MT76X02_CIPHER_TKIP) { in mt76x02_mac_wcid_set_key()
138 } else if (cipher >= MT76X02_CIPHER_AES_CCMP) { in mt76x02_mac_wcid_set_key()