Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp878450pxj; Fri, 14 May 2021 19:32:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGraeUfkALhVaYxCZx1qkqFct3ys/G0KrtnVd4cnE8P6QVXjslg8YT0VapvgOzfcuIRfXO X-Received: by 2002:aa7:d2c1:: with SMTP id k1mr60842999edr.138.1621045976963; Fri, 14 May 2021 19:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621045976; cv=none; d=google.com; s=arc-20160816; b=brM56pexHn4/b8bnJnTsDHtrnY1eAnHWJrDdYN2Rjxx8uz6n/lsRAOVXoUqTIFmUUJ cCLERN1teTegWR9hz37rvUJuaQ1o14svDh9dov4yQVseiHtGEAHcdx38FX96lrElRgqt 33SoiKnWzYwijBo2NDFGzlNn8/R4m6JUHcHEUA448efc2xFlNSCUr0TlI3SJJYUMrcm6 r7SrHBaA4t1x5dNdgVwc1VS4aWQ8tuZFCC9fNsfxzqLwovTHeNTwQFz+M7DnuvN3wSsI 2/A0yZOPHRlNHKsD3zaa9xXBxRPfs90FUEHo8KO6FRVwcs4c9DPd8J3KOCQkqEyyGOcA uiNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=E7lEtx/KwXhZt/gwGv2b4T0d+HMnLuKrEg/kRh+C8u4=; b=HvpDnn3SnnZwsaUgELm2nAf9Y7Fh/tJZNebU4zhIrwMABs+KeCxMQOe5zLxGUmZppX NctXyx7CT3ksTgkNVli8aSvXWo10EIUZrakemyjWdiue6yxS0AVjM29Q5VvsWYB6MGD9 sHDirKixRWothYPb+Tm/csyLkgm1qPQ9tlCaeHeJMPtX+3Qkd+DxJGZcyllIAdq706gF 4BoqrEXYiDsUgN09CqBH1JaU7MUjIFAWVoA5U/3X/8sLQ7zIsSHYHhDBxWZiPvN67ZCW nOmfeCwe6UjWxmSpxC5gssJ6twUWLyuEzIP2Cv5tv7CfFEaO7DwQFwH/fGKRkq9WmBzI Ur+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cvFQB5T4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qh24si7236512ejb.194.2021.05.14.19.32.33; Fri, 14 May 2021 19:32:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cvFQB5T4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231693AbhENWYq (ORCPT + 99 others); Fri, 14 May 2021 18:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbhENWYp (ORCPT ); Fri, 14 May 2021 18:24:45 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74C2CC06174A for ; Fri, 14 May 2021 15:23:32 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id v13so1036337ilj.8 for ; Fri, 14 May 2021 15:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E7lEtx/KwXhZt/gwGv2b4T0d+HMnLuKrEg/kRh+C8u4=; b=cvFQB5T4vZKzDFfKG8IjrHbfixJd/rXGN3vTHJrzBwdM4R8CY4G7jKQSBP1tbiTxGU /Q9lCUSR+4B3+n6LiR0E7xvRTElCBHxveRpU27e0Ygrp5RZQdtHHnNQ9Ck+L08tR5JHU yAHbT4obMBgnVCEDctyDI517NxKZpsFMLBP7Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E7lEtx/KwXhZt/gwGv2b4T0d+HMnLuKrEg/kRh+C8u4=; b=XLHz6mMVej8bhjMRk6ntKREwSTrIrje4M/yt81K/bkyRSzMUuwLaRCD8DWRk7Tesiz SG7wMk/YFYvVX22BFQ4kdC7LlkCJsloGeZzcI94o6mmdcHdpoO59plQnHk+HbqYAQjYn Xk7jhBkuT1KD7m1VEZShmzEUX6lwAhcM5e34JEwW8smksPxi4qbQsCcIuWBoxQXw2VBq bRetd2EzwxLMAFaXNuOySAIg+oY2vUPML/BL9t3Fi9/oTtKPQx2QzO3N3vZt2WWpzzqq znr187uOOvJDRUuUz7H/H1CcUkO7QFj8sDsJsnsrbQSa6+18TQYYLLPOPZgtlc7w8XcP v76Q== X-Gm-Message-State: AOAM530oXyFduvXvQf3JHmBRl1H5JyrCo5tb6vEexSTbVk4xBTlFWQUw 7S0I+xfJMD8lMMFLrkTomJtXFBjIGzDahgXzTlXSBw== X-Received: by 2002:a92:2a09:: with SMTP id r9mr25039606ile.300.1621031012064; Fri, 14 May 2021 15:23:32 -0700 (PDT) MIME-Version: 1.0 References: <20210511180259.159598-1-johannes@sipsolutions.net> <20210511200110.9ba2664866a4.I756e47b67e210dba69966d989c4711ffc02dc6bc@changeid> In-Reply-To: <20210511200110.9ba2664866a4.I756e47b67e210dba69966d989c4711ffc02dc6bc@changeid> From: Abhishek Kumar Date: Fri, 14 May 2021 15:23:21 -0700 Message-ID: Subject: Re: [PATCH 11/18] ath10k: add CCMP PN replay protection for fragmented frames for PCIe To: Johannes Berg Cc: linux-wireless , Wen Gong , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > +static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar, > + struct sk_buff *skb, > + u16 peer_id, > + u16 offset, > + enum htt_rx_mpdu_encrypt_type enctype) > +{ > + struct ath10k_peer *peer; > + union htt_rx_pn_t *last_pn, new_pn = {0}; > + struct ieee80211_hdr *hdr; > + bool more_frags; The variable more_frags is not getting used. > + new_pn.pn48 = ath10k_htt_rx_h_get_pn(ar, skb, offset, enctype); > + more_frags = ieee80211_has_morefrags(hdr->frame_control); "more_frags is assigned here but not used anywhere. I have raised a patch for remove this, I have raised a patch for this, https://patchwork.kernel.org/project/linux-wireless/patch/20210514220644.1.Iad576de95836b74aba80a5fc28d7131940eca190@changeid/ -Abhishek