Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4991229ybc; Tue, 26 Nov 2019 19:00:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwaxKa6qJdgLunIMz/R3lxMr8lHnRBMe+4Ix5flGAULnG63uNJZkVX9wy9SRSVhSIilIMKF X-Received: by 2002:a05:6402:324:: with SMTP id q4mr29483373edw.108.1574823611667; Tue, 26 Nov 2019 19:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574823611; cv=none; d=google.com; s=arc-20160816; b=mM4FmuQdhYVlIC7+kSgGR+RDKeuwYs+Kmon8gRnIin8YQZMoHuOAuaB0rNxaM1y1hu nmAH58NNlIKDeIJ9FNaqFiIP1F+ctJvqiz5dKlbyNcsfsIIJJxjKa3DIYF0uXZVEEoef KgwvgPd1hbHNRsreFZwTT4az2OiPtyylt9cj+ZuDwfhD+ETQVERjN7fLQkA9LppJMS4w CLMOvRq972GKr/7UZZA7vWHoumRF4LJF6sA8445xwMRxpE9b64w1+HMl6sJdOmRcSzXl MkCP33Gjbv/6vGjU47kUD3FBF+GwH299Eeblsga0B4e0Riu2DEEsSV8uowtFh98b3I0n SgIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=DkIIWisjIL4+PiZivQuQ7vyXcJqOySz0BHqthrBusnE=; b=W6Tm7y7SWgkywDABAY9yW3z7A0ZQaRooURNAalATpMzQ3+D21nCQk04OeOdDkd3bUq RV0aQ9eGCXQrqP+7V5Fr2xuYq8Tv1m+RWpcY2edhggviuLzB+6JOMOF2c0JUI2EjUk89 clLuEV9xvMOGaCbJL/uQ8I9lXTbJLSxLFEe8ZRLCHvqBkoU8u/8GumsZqBHJEA81SNUT /2DX8iYJdhYjw8DbobMj4h7SunDNKXlJpPgzan4riiuh2pdb94BUKx1CfKa0+64Qu2Yt OB9Ytq0/FM+YJFuSCdJNSv0Iai47ubwTZxMIQvAaM6O/yjUGbhB9Yhs3d0F0jgybOWNt zkPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=jMDaFH47; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=CiSwneJ8; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j21si8526339ejd.265.2019.11.26.18.59.31; Tue, 26 Nov 2019 19:00:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=jMDaFH47; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=CiSwneJ8; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726304AbfK0C7a (ORCPT + 99 others); Tue, 26 Nov 2019 21:59:30 -0500 Received: from a27-186.smtp-out.us-west-2.amazonses.com ([54.240.27.186]:46768 "EHLO a27-186.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfK0C7a (ORCPT ); Tue, 26 Nov 2019 21:59:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1574823569; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Transfer-Encoding; bh=v95gBZ3VAsv1yFIp+edO6sWwlF1JTcZQtDQw10B41Xg=; b=jMDaFH471UUVzN39ul5BdypqDLEEeOjFaCD5xw8K4WLOAxRRDgNleO6wnopJEx9K 1B3xcAR2SMuQDTuntsd0IZBXvpg26RNdzbazPab3OlCQJF+rfsAHeo/tNRRfW/OB7Fz UWrSkSw8YoNPlmevrNrq8Bg0dQy4QbKkkCsZ98XY= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1574823569; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Transfer-Encoding:Feedback-ID; bh=v95gBZ3VAsv1yFIp+edO6sWwlF1JTcZQtDQw10B41Xg=; b=CiSwneJ8DzTTbbsJq3Do3rkCpJejX2syrplLBnPP9/mTOe47Xdwp0u3r0yDQw/Ki KhJDUdX1kxtJS9b6m706yxV35Gb0kCLfjJP9JsZkLMlVpocGRVKMHHuahBHzL5YBXKG 1jbJO/TUgtq2jhGKa1Wn9GZvr88mkfEtaxa5hNmo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0B302C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=wgong@codeaurora.org From: Wen Gong To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Subject: [PATCH] ath10k: set max mtu to 1500 for sdio chip Date: Wed, 27 Nov 2019 02:59:29 +0000 Message-ID: <0101016eaacca72d-a73d6fb5-0e3f-4fbb-9045-8363270fe25f-000000@us-west-2.amazonses.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SES-Outgoing: 2019.11.27-54.240.27.186 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org For sdio chip, the max credit size in firmware is 1556, the 1556 include payload, ieee80211 header, htt header, htc header. So it need to set the max mtu to 1500 to forbidden TX packet which exceed 1500 form application. Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00017-QCARMSWP-1. Signed-off-by: Wen Gong --- drivers/net/wireless/ath/ath10k/sdio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c index 60849ab8088f..8aa8ebc1d8e9 100644 --- a/drivers/net/wireless/ath/ath10k/sdio.c +++ b/drivers/net/wireless/ath/ath10k/sdio.c @@ -2185,6 +2185,8 @@ static int ath10k_sdio_probe(struct sdio_func *func, bus_params.chip_id = 0; bus_params.hl_msdu_ids = true; + ar->hw->max_mtu = ETH_DATA_LEN; + ret = ath10k_core_register(ar, &bus_params); if (ret) { ath10k_err(ar, "failed to register driver core: %d\n", ret); -- 2.23.0