Lines Matching defs:cipher
113 * All statistics are stored separately per cipher type.
138 enum cipher cipher = rxdesc->cipher;
141 if (cipher == CIPHER_TKIP_NO_MIC)
142 cipher = CIPHER_TKIP;
143 if (cipher == CIPHER_NONE || cipher >= CIPHER_MAX)
147 cipher--;
149 intf->crypto_stats[cipher].success += (status == RX_CRYPTO_SUCCESS);
150 intf->crypto_stats[cipher].icv_error += (status == RX_CRYPTO_FAIL_ICV);
151 intf->crypto_stats[cipher].mic_error += (status == RX_CRYPTO_FAIL_MIC);
152 intf->crypto_stats[cipher].key_error += (status == RX_CRYPTO_FAIL_KEY);
397 temp += sprintf(data, "cipher\tsuccess\ticv err\tmic err\tkey err\n");