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: 10476481 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.web.codeaurora.org (Postfix) with ESMTP id 3CCC1600F6 for ; Wed, 20 Jun 2018 08:44:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EB8628D08 for ; Wed, 20 Jun 2018 08:44:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2189528D1F; Wed, 20 Jun 2018 08:44:53 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFC9328D1D for ; Wed, 20 Jun 2018 08:44:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932303AbeFTIoZ (ORCPT ); Wed, 20 Jun 2018 04:44:25 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:40547 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932547AbeFTImu (ORCPT ); Wed, 20 Jun 2018 04:42:50 -0400 Received: by mail-lf0-f65.google.com with SMTP id q11-v6so3686575lfc.7 for ; Wed, 20 Jun 2018 01:42:49 -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=Z2Mib4MqpkGVeOGY0sMVov4ZRKGe4tmFuwhBWoPg/TOpJL6oeL16z0Pvxe5/9bSHqm HAeBl94IbbH3S7iXZiizKx/FB6vEQrTrlZZtRezlCxoJ9IO30zoYf+aJ3e8WMgoaeP6v T3y110TLnw3Xvpz/Sf9H071jO8eH+0KURyU+jc/geD0y0j6oOgYkutyQZjCpX6zppt3+ /10bdLIwBBt6EHpK3sTV4uinOx0H5FPvnJUmRRW5TXH8zpEbV0szTKGz4cK6kpW5FP9U yuPSlZVMaJs8GbnUvvRCjTg/TWlFjIZ0fAM+MnUJeLreRvrtlPMEvbfC+wr2AZwh1set oOyw== X-Gm-Message-State: APt69E0y6OdnSwszcq8Tz4ReLrnZmAaN4cb7kIIPUeYPnMoTGIeIfDKo vKRy4AlucZLPZNe7xt2CATkd12oWbg0= 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" Cc: alagusankar@silex-india.com, Niklas Cassel , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org 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> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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) +