From patchwork Mon Aug 12 09:13:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 11089507 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 3DD39112C for ; Mon, 12 Aug 2019 09:13:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 266BA223A6 for ; Mon, 12 Aug 2019 09:13:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17C0B26E96; Mon, 12 Aug 2019 09:13:34 +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=-4.4 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, 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 46DF5223A6 for ; Mon, 12 Aug 2019 09:13:33 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=clTJrBEpLD0rLhoxx00zcf5LrzXSc6T6xqrUVt/LOcY=; b=WDhuCLv8vfsWjS uIwUmxCKuMkO2nHOiZllBX8MNarPubc8KSc6B9Q0H+SrIhNIqmnmD7KAY/5dx9Ilc0tgYuMMZiG4w 60cE31R1qoCuhrzQFpUYguiEKkOOf5gkE6C55keGA1xk5PLWDkS2IHTODn5MtFaB6HUdczvJKJ4pK eLi8u6AbC5TjhfHdLfEU3WGUomVeX2PHPYKoCRvfRkBXG2W28ogan4l+sxDmHHpbkqOCW0iHP9vt2 FmkHu+x8kwveRQxIUVXdH4JiVhcNaJy9lDynwW0OSdu1eADMx4aCtZK/wUvuauTRuXemc8nlgbTcq cRer3ZEXAHy8tFAWRR4Q==; 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 1hx6OR-0006ql-Iy; Mon, 12 Aug 2019 09:13:31 +0000 Received: from dvalin.narfation.org ([2a00:17d8:100::8b1]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hx6OO-0006qK-Rs for ath11k@lists.infradead.org; Mon, 12 Aug 2019 09:13:30 +0000 Received: from sven-desktop.home.narfation.org (p200300C5970F63EC000000000000043B.dip0.t-ipconnect.de [IPv6:2003:c5:970f:63ec::43b]) by dvalin.narfation.org (Postfix) with ESMTPSA id D1C19201B2; Mon, 12 Aug 2019 09:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1565601205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1h7vAuXrVU5BCstuMrQrugFcSKG/rjH22i9bN5W67XE=; b=NSkOm0Mdj0d+/PpMGLcUbOeigaBlxMzTeJAQuMUyGe1jg/kJu5pkPI5JHsTCrDnH3M8JoE dCLYFUE0wbdlkXiwWcow7u+BZ1kilrNLGxWM4yt2z1BUc1jX5nVyxPjlVyPWW6dMFlSaxe qUivohWm8hDBcLNpIhUmE20boivYrfM= From: Sven Eckelmann To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: fix multicast rate parameter size Date: Mon, 12 Aug 2019 11:13:04 +0200 Message-Id: <20190812091304.27184-1-sven@narfation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1565601205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1h7vAuXrVU5BCstuMrQrugFcSKG/rjH22i9bN5W67XE=; b=2Jmj/1uxMPZ9V6N2cjG1uaeAz00fX+cRMU3ivsRyID1lmZe5lbE0imCTINYZgU87EzBDCP EXpOK1iUDPy0mEmsgt8kMSFUCdM426HRK4UOGji/lVJCh2w1Fjhi7wBRIP+URxiYhZlfWf 0aSgL/fW2iQPteCLMyRIM3hgAlzDW2c= ARC-Seal: i=1; s=20121; d=narfation.org; t=1565601205; a=rsa-sha256; cv=none; b=yNnvhbXdZsI7GTJmikBDS/yKgsU0ZKNjhs6AEKl8SX8HwPIhh9dlFWbnkO+IntGr7fY450 7AocQKYU0yU4ewlyTXt6b9aE+RQj0n9nTIMzpcFYKIeVfj7Jgu2iv4NWTkWbWmjoNQEcBZ U3Lso49K15kUWMo9jy71jEwYBVfCCZI= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sven smtp.mailfrom=sven@narfation.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190812_021329_197220_D0D21B99 X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. 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: Sven Eckelmann Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sven Eckelmann The ATH11K_HW_RATE_CODE() macro uses at least 28 bit to encode the parameters. An u8 cannot store all these bits. Fixes: c885aaf227ec ("ath11k: support for multicast rate control") Signed-off-by: Sven Eckelmann --- drivers/net/wireless/ath/ath11k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 6a3b1a110738..5a65caa019ed 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -1586,7 +1586,7 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, u16 bitrate; int ret = 0; u8 rateidx; - u8 rate; + u32 rate; mutex_lock(&ar->conf_mutex);