From patchwork Mon Jul 15 15:33:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miles Hu X-Patchwork-Id: 11044483 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 BBE1C138B for ; Mon, 15 Jul 2019 15:34:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B283283BB for ; Mon, 15 Jul 2019 15:34:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B0062842D; Mon, 15 Jul 2019 15:34:28 +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 43611283BB for ; Mon, 15 Jul 2019 15:34:28 +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=8ll+cEVCR7UoETy8nveWcyH6X+4i1sNVd1WtUWVhxao=; b=c+a 3XkligkRwUfwBTE01b4HinS/7xwJOSKdUTVNue24YshsNrqLwyvQ15NF0wl2ddJZLPvT6wp/ZaALB 1NIeWySM0hHy6v0VHwzaYsvBe/xXsNtfxe5MkgiY+r4G9EAxkNe1XtNDFR+J54eTme3ljoXYKvmzz 7UiW4NpzAd73SYdy/zEh2uss8wHmzJuY4DbzCc2ViKdgogDn8Pih+sz/tLkbu9zjKZPdvzJk96CjE wbUz7vt0CMb7Z/r0qdDx2HZ5Th64rUpmhGBmH7PNQASaiMknv/gj/+TYjrjXnqnZNi2w+D3EAUi6K nPDdhgeBQfaayDi3V1ElA4CfiXSgffA==; 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 1hn2zh-00063i-Qv; Mon, 15 Jul 2019 15:34:25 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hn2zf-00063I-I5 for ath11k@lists.infradead.org; Mon, 15 Jul 2019 15:34:24 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2CA5260DAA; Mon, 15 Jul 2019 15:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563204862; bh=g3ZE3Gl9GNzuaPEkx6r6gGmgItcUNLYRC0jqst6J5fk=; h=From:To:Cc:Subject:Date:From; b=iMUSix87Mg5p5NI3SYhr8Q11yw3KGXfZNU62170QI6qPEjwpI/H8v+qfr+OPB2V8J k2AqQQK4ZXpyvzBFV/6+9ARlB+iie6IGK9wH6OHG7obiM/TZvtEeN6mNlFJ1JhID7Y 5WVztSwwUSNnXvrxCE+jue58hdVwPZQY53B/E1PE= 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 5690860A42; Mon, 15 Jul 2019 15:34:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563204861; bh=g3ZE3Gl9GNzuaPEkx6r6gGmgItcUNLYRC0jqst6J5fk=; h=From:To:Cc:Subject:Date:From; b=KJF4Vf6lKWFqOd/mr5ojOPVBV9kLQOALo6fU5u3GpIwZ0Ex2hPGO6wAKIuVn5Ky0g dQOMeaMKg5LdAJN/MNOzA8FTR3W2v1XgsqwCGvcU7JdA4aFc/Ul/ZzAqNAQnS6+Pc9 hv1UfZPJuDQsT8FUIy6Z3kDI6VjRWLtcvvQEAJ0g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5690860A42 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:19 -0700 From: Miles Hu To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: fix no traffic problem in co-exist monitor mode Date: Mon, 15 Jul 2019 08:33:59 -0700 Message-Id: <1563204839-10683-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_083423_622890_44BD1790 X-CRM114-Status: GOOD ( 10.30 ) 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 Clear monitor flag in CB for regular data packet to avoid drop in mac80211. Signed-off-by: Miles Hu --- drivers/net/wireless/ath/ath11k/dp_rx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index 9a1c247..b9c0eca 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -3915,6 +3915,7 @@ static int ath11k_dp_rx_mon_deliver(struct ath11k *ar, u32 mac_id, header = mon_skb; + rxs->flag = 0; do { skb_next = mon_skb->next; if (!skb_next) @@ -3936,6 +3937,7 @@ static int ath11k_dp_rx_mon_deliver(struct ath11k *ar, u32 mac_id, ath11k_dp_rx_deliver_msdu(ar, napi, mon_skb); mon_skb = skb_next; } while (mon_skb && (mon_skb != tail_msdu)); + rxs->flag = 0; return 0;