]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: remove unused CONSISTENT_PN_ORDER code
authorAndrei Khomenkov <khomenkov@mailbox.org>
Sun, 10 May 2026 13:43:09 +0000 (16:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 May 2026 08:13:24 +0000 (10:13 +0200)
Remove the CONSISTENT_PN_ORDER code since it is not used as the macro
is not defined anywhere.

Signed-off-by: Andrei Khomenkov <khomenkov@mailbox.org>
Link: https://patch.msgid.link/20260510134315.64295-4-khomenkov@mailbox.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_security.c

index 2a5a4c0de9b14e87593e1209541042761a1a393c..50d8e30f7eda83823fc251a417b41a1612608aca 100644 (file)
@@ -649,13 +649,8 @@ static void construct_mic_iv(u8 *mic_iv,
 
                for (i = 2; i < 8; i++)
                        mic_iv[i] = mpdu[i + 8];   /* mic_iv[2:7] = A2[0:5] = mpdu[10:15] */
-               #ifdef CONSISTENT_PN_ORDER
-               for (i = 8; i < 14; i++)
-                       mic_iv[i] = pn_vector[i - 8];           /* mic_iv[8:13] = PN[0:5] */
-               #else
                for (i = 8; i < 14; i++)
                        mic_iv[i] = pn_vector[13 - i];          /* mic_iv[8:13] = PN[5:0] */
-               #endif
                mic_iv[14] = (unsigned char)(payload_length / 256);
                mic_iv[15] = (unsigned char)(payload_length % 256);
 }
@@ -772,13 +767,8 @@ static void construct_ctr_preload(u8 *ctr_preload,
 
        for (i = 2; i < 8; i++)
                ctr_preload[i] = mpdu[i + 8];                       /* ctr_preload[2:7] = A2[0:5] = mpdu[10:15] */
-#ifdef CONSISTENT_PN_ORDER
-       for (i = 8; i < 14; i++)
-               ctr_preload[i] =    pn_vector[i - 8];           /* ctr_preload[8:13] = PN[0:5] */
-#else
        for (i = 8; i < 14; i++)
                ctr_preload[i] =    pn_vector[13 - i];          /* ctr_preload[8:13] = PN[5:0] */
-#endif
        ctr_preload[14] = (unsigned char)(c / 256); /* Ctr */
        ctr_preload[15] = (unsigned char)(c % 256);
 }