From patchwork Sun Mar 1 12:46:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 216397 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 247FCC3F2CE for ; Sun, 1 Mar 2020 12:47:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9387222C2 for ; Sun, 1 Mar 2020 12:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583066831; bh=vztHrmDDBt1Ip3rczVEprxqmls2zFfl3jSXX7WCqGlg=; h=From:To:Cc:Subject:Date:List-ID:From; b=EpgRsoEztLpvIGEC2Cj7BuSIjNmU3mMUG1W72e39IPd+DtTE5mpyPOj1zUbkZJGO2 yeyivX4doVYC0vF/F7L45CzrYHi1145eJgngUWzKloTXIbNdzCU+1nT6sXLMus8w9s IBa474gfTnBaxxQCdcdhz6JgXUf+4f70nrG75TbY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725945AbgCAMrK (ORCPT ); Sun, 1 Mar 2020 07:47:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:56084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbgCAMrJ (ORCPT ); Sun, 1 Mar 2020 07:47:09 -0500 Received: from localhost.localdomain (unknown [151.48.128.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6EDFA2087F; Sun, 1 Mar 2020 12:47:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583066829; bh=vztHrmDDBt1Ip3rczVEprxqmls2zFfl3jSXX7WCqGlg=; h=From:To:Cc:Subject:Date:From; b=RE5e50IMweRlDt122866yi1XVqsjCeGsgOMWhze0rfbz3TV1Qzs2l7DoA5IXbXtSx bwjzvEuu1uLn8PuNqQ8/u7eT8ZrjVXc9BYyO/n78MU7Um+Bm0Fo/JfMgal1ICvKRlK sJ9dkdtJFBK1z2fdu8ogrWW08ZcleJjBdGBKZwc4= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, ryder.lee@mediatek.com Subject: [PATCH 0/4] use proper size for mt7615 sta mcu commands Date: Sun, 1 Mar 2020 13:46:50 +0100 Message-Id: X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Use proper buffer size for mcu messages in mt7615_mcu_set_sta since MT7615_WTBL_UPDATE_MAX_SIZE takes into account just wtbl headers while the mcu message contains even sta related headers. Use proper buffer size for mcu messages in mt7615_mcu_set_rx_ba, mt7615_mcu_set_tx_ba and mt7615_mcu_set_bmc routines Lorenzo Bianconi (4): mt76: mt7615: use proper size for mcu msg in mt7615_mcu_set_tx_ba mt76: mt7615: use proper size for mcu msg in mt7615_mcu_set_rx_ba mt76: mt7615: use proper size for mcu msg in mt7615_mcu_set_sta mt76: mt7615: use proper size for mcu msg in mt7615_mcu_set_bmc .../net/wireless/mediatek/mt76/mt7615/mcu.c | 354 ++++++++++-------- .../net/wireless/mediatek/mt76/mt7615/mcu.h | 20 + 2 files changed, 213 insertions(+), 161 deletions(-)