]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Remove unused QoS handling from GCMP nonce generation
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 25 Jul 2024 00:39:30 +0000 (00:39 +0000)
committerJouni Malinen <j@w1.fi>
Thu, 25 Jul 2024 00:39:30 +0000 (00:39 +0000)
This was copied from CCMP, but is not needed (and can trigger compiler
warnings) with GCMP.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wlantest/gcmp.c

index a29496d3081e1f454afcb08960973f2bfb1b8e16..f0bcec2ba5e845b47476fbf05d110163922b87e7 100644 (file)
@@ -32,12 +32,8 @@ static void gcmp_aad_nonce(const struct ieee80211_hdr *hdr, const u8 *data,
        if (WLAN_FC_GET_TYPE(fc) == WLAN_FC_TYPE_DATA) {
                fc &= ~0x0070; /* Mask subtype bits */
                if (stype & 0x08) {
-                       const u8 *qc;
                        qos = 1;
                        fc &= ~WLAN_FC_HTC;
-                       qc = (const u8 *) (hdr + 1);
-                       if (addr4)
-                               qc += ETH_ALEN;
                }
        }