Home
last modified time | relevance | path

Searched refs:mic_iv (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/staging/rtl8723bs/core/
H A Drtw_security.c691 static void construct_mic_iv(u8 *mic_iv, in construct_mic_iv() argument
701 mic_iv[0] = 0x59; in construct_mic_iv()
704 mic_iv[1] = mpdu[30] & 0x0f; /* QoS_TC */ in construct_mic_iv()
707 mic_iv[1] = mpdu[24] & 0x0f; /* mute bits 7-4 */ in construct_mic_iv()
710 mic_iv[1] = 0x00; in construct_mic_iv()
714 mic_iv[1] |= BIT(4); in construct_mic_iv()
717 mic_iv[i] = mpdu[i + 8]; /* mic_iv[2:7] = A2[0:5] = mpdu[10:15] */ in construct_mic_iv()
720 mic_iv[i] = pn_vector[i - 8]; /* mic_iv[8:13] = PN[0:5] */ in construct_mic_iv()
723 mic_iv[i] = pn_vector[13 - i]; /* mic_iv[8:13] = PN[5:0] */ in construct_mic_iv()
725 mic_iv[14] = (unsigned char) (payload_length / 256); in construct_mic_iv()
[all …]