From patchwork Mon Jul 15 15:34:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miles Hu X-Patchwork-Id: 11044487 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AA4DC138B for ; Mon, 15 Jul 2019 15:34:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 989AB283BB for ; Mon, 15 Jul 2019 15:34:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D03F2842D; Mon, 15 Jul 2019 15:34:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3D505283BB for ; Mon, 15 Jul 2019 15:34:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=qnM49CGJgNYh96HstDjoaQ/x4xIGxdZgrFug9fYtvak=; b=DC5 l3lpfWrDOYH0S2QVJzwP3BYxoFLf0dWWMeydU+XkwzQUylQ3daN9qWPAGuSTS61fpGXq8er3PmQWE gYAQlo1BQEfsY1A1V73z3nZEDHmhkm8/sFxisPCvHvuhKcXgEfCgA0QmzidlrFUQtg/MMnm8MKilM PMkUHXyguOwVKc01hGik2za4NzvMCbTmci7w10RiU5ADtVyWf2owpOWG0B8EUdzDb9uyU1ldObMSX E3LCtmYt+Sj9dFH9PhUkJlUwx+6ZKrf3uCb3R79VkX4J8LyJNZ8HEa3PfpGSUl5WqHF/X4iz4YO9q uoW2Z7y2y0wVOhx/niXU8bn+xdKj/Yw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hn2zz-00065x-Ly; Mon, 15 Jul 2019 15:34:43 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hn2zx-00065a-5l for ath11k@lists.infradead.org; Mon, 15 Jul 2019 15:34:42 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 98375617A3; Mon, 15 Jul 2019 15:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563204880; bh=zlDtW8/F9PACAk0qOVLrAR1I7YffDK/F+/BHXcCA1Qw=; h=From:To:Cc:Subject:Date:From; b=Y4F0ph8VQgc9/A1X62ICRWj2F9YislPPd8j3+FM4F/inAybUYqIydT1fRdvQrEyx8 b0etLnFyCR0xWVNlUxHVaHQXaj4oknO79JV+ZJ6eiSKQW7kW0oPVTSsHgrtL9B7Vvr 5Hfjxs+xGYHDHTB/EJTVHz9JLDaKuG1JujPMl8s8= Received: from smtp.codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: milehu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 983C760F38; Mon, 15 Jul 2019 15:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563204880; bh=zlDtW8/F9PACAk0qOVLrAR1I7YffDK/F+/BHXcCA1Qw=; h=From:To:Cc:Subject:Date:From; b=Y4F0ph8VQgc9/A1X62ICRWj2F9YislPPd8j3+FM4F/inAybUYqIydT1fRdvQrEyx8 b0etLnFyCR0xWVNlUxHVaHQXaj4oknO79JV+ZJ6eiSKQW7kW0oPVTSsHgrtL9B7Vvr 5Hfjxs+xGYHDHTB/EJTVHz9JLDaKuG1JujPMl8s8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 983C760F38 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=milehu@codeaurora.org Received: by smtp.codeaurora.org (sSMTP sendmail emulation); Mon, 15 Jul 2019 08:34:37 -0700 From: Miles Hu To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: fix duplicate rx packets in co-exist monitor mode Date: Mon, 15 Jul 2019 08:34:36 -0700 Message-Id: <1563204876-10746-1-git-send-email-milehu@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190715_083441_232282_7FAA5264 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Miles Hu MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add SKIP_MONITOR flag to rx data packets so mac80211 can skip them. Monitor ring already push same packets up. Signed-off-by: Miles Hu --- drivers/net/wireless/ath/ath11k/dp_rx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index b9c0eca..04ad2db 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -2093,6 +2093,7 @@ static void ath11k_dp_rx_pre_deliver_amsdu(struct ath11k *ar, } else { rxs->flag |= RX_FLAG_ALLOW_SAME_PN; } + rxs->flag |= RX_FLAG_SKIP_MONITOR; status = IEEE80211_SKB_RXCB(msdu); *status = *rxs;