From patchwork Wed Jun 20 08:42:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 10476485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 570AD600F6 for ; Wed, 20 Jun 2018 08:45:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45C8F28D08 for ; Wed, 20 Jun 2018 08:45:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3814728D1F; Wed, 20 Jun 2018 08:45:04 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 CDA8E28D08 for ; Wed, 20 Jun 2018 08:45:03 +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:References: In-Reply-To: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:List-Owner; bh=fDp2kGVMIKhhC5FclNG2DAbJgdks75v3wJYOPQNO0Ps=; b=iLwg0IJvgRJPuk02BbPi1pwN9t 6LKA8LUx1vaZGBLku9qVxMemiEqAtbKbogGYkqJ21/8POnhB5j+5vUiDWDQbCsU5lFEV5uABTZvjr hSXDYuenyMSNoP8AlkdtFSyA397R/oGFoDOOBFROAwd3KIxzOPCaC/VQUWyXGasOViB8nb3X+tAL1 oqiTePzw9zocwmcYJkKqmvXJ3OnvpcnqwNI3Hj+hRtsOZtdzqDYcEfHiMkkmQBnH0tF34iqqb5xyE VYA1yr/NVxHFpwP0/rmClehozZrKcehj2bA+CkrIU8fwOj13SQJsKg/AVgGvqNLqV4NNvYBE5Apmg 3UUBMHug==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVYjX-000574-2n; Wed, 20 Jun 2018 08:44:55 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVYhg-0003zi-Jo for ath10k@lists.infradead.org; Wed, 20 Jun 2018 08:43:25 +0000 Received: by mail-lf0-x243.google.com with SMTP id i15-v6so3702929lfc.2 for ; Wed, 20 Jun 2018 01:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+R4eGX5eAJCC9sbXyeuYvo0XKQNvBJaTjc88N6RgIzo=; b=OQJZdZFTa3D64IzYYsSW4wLNuSHE+ja5yxDvahiFzZx+tt4QNzHhK5sVt2WALyrZNz Kq1zc6IJyJAyReZU4ek3iM9iWq60++VFr9sJeki0KmdFmdZaFlRB7Z3HYqlHRSp1d6RR Gt2tUjxFI2xfPX/O/VihEFZHNDskTxMk1DfXc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+R4eGX5eAJCC9sbXyeuYvo0XKQNvBJaTjc88N6RgIzo=; b=q94KS3VFy7NVfrGm7bQoCATvzb9dtBsBKy+O5UszCd5D3JRl8RTFGXT21F5vQ8kOGg 2uS9iJ8KvVQBZ+o9ZflQsuG89cplJiFIIM9IrjHW2w0tQYK7+0JEXWxRHVf3OS+3P0Nk tO4VBgdzIwcZn7LLnLQJWq0JGVM6U6QdSUV0E3lHApHzLU1r8OwTBIM8rfPGQ0Cf+qpS q6DmCULUTjYGU/EMOCDtpgiEfknrWGRRsQfCsnnyXATong3BoY+2BVV+ieHx5f+lkWcL e6ZooHqeoH4+x51wk/M7vMf6FoL0UvSOr5KdTu8XtFufH0sIKZziKhPvvSDgzZDqRHz8 wrlg== X-Gm-Message-State: APt69E2bxni4CdFjRtDrozafFg2dpkr75vfrnCcpPFeR+7vi70bvI2wp iPguWvcTprtA1O/lOAvKJly0uw== X-Google-Smtp-Source: ADUXVKLk5vN+pCKA0ypIs1GzzEFc6MxtzGYIX07/bZ6PwakcI8o9lADjeoSnUQbSzBMuMgqdXqvIMQ== X-Received: by 2002:a2e:5111:: with SMTP id f17-v6mr11538634ljb.16.1529484169027; Wed, 20 Jun 2018 01:42:49 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id h90-v6sm296656ljf.65.2018.06.20.01.42.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 01:42:48 -0700 (PDT) From: Niklas Cassel To: Kalle Valo , "David S. Miller" Subject: [PATCH 3/3] ath10k: sdio: set skb len for all rx packets Date: Wed, 20 Jun 2018 10:42:22 +0200 Message-Id: <20180620084222.3521-4-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180620084222.3521-1-niklas.cassel@linaro.org> References: <20180620084222.3521-1-niklas.cassel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180620_014300_681903_3893812B X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alagusankar@silex-india.com, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath10k@lists.infradead.org, Niklas Cassel MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Without this, packets larger than 1500 will silently be dropped. Easily reproduced by sending a ping packet with a size larger than 1500. Signed-off-by: Alagu Sankar Signed-off-by: Niklas Cassel --- drivers/net/wireless/ath/ath10k/sdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c index 0c57d6aaa437..8ac47b04a17e 100644 --- a/drivers/net/wireless/ath/ath10k/sdio.c +++ b/drivers/net/wireless/ath/ath10k/sdio.c @@ -396,6 +396,7 @@ static int ath10k_sdio_mbox_rx_process_packet(struct ath10k *ar, int ret; payload_len = le16_to_cpu(htc_hdr->len); + skb->len = payload_len + sizeof(struct ath10k_htc_hdr); if (trailer_present) { trailer = skb->data + sizeof(*htc_hdr) +