Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 909FFC64EC7 for ; Mon, 13 Feb 2023 15:04:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231390AbjBMPEV (ORCPT ); Mon, 13 Feb 2023 10:04:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbjBMPET (ORCPT ); Mon, 13 Feb 2023 10:04:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB7E1C7E4; Mon, 13 Feb 2023 07:04:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6E12BB81257; Mon, 13 Feb 2023 15:03:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA2BDC4339B; Mon, 13 Feb 2023 15:03:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676300631; bh=+wEwi3uP6m+OmiYJZXywwSEgwz7I5NuC9HzyYKFbRm4=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=QoWMvey/OJC7lIr4yZ9tWaFKtgh6fLbY6hn+ORxeTB0NUkCSFz9y1KVxEG8klG1SV hpq8BbH7DxBkfQO4p1/KVcoFoo5nOloFAcFUag611jvwZsMJSGN7280gCWtOjuVSpZ USPRd951JzYLDrhNrE7zaZU4cwr4VnSoPfeNpLVutlG0fIrqJu1+qBYJFUWo55zd6M e/4uo6KATDUFyO8qZQwVPQutYdtQRvYsXcn9Ww6aSwPHRdnI1DhPjd1opBJrAkkFO5 fYEHvlqNQFyJ6wNxzzbahbYDa8AMQGN2/EHXii0ZxWcNL8m53/NCLzKXc7KCFhwTRU uVPbrH8UFs58w== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] brcmfmac: support CQM RSSI notification with older firmware From: Kalle Valo In-Reply-To: <20230124104248.2917465-1-john@metanate.com> References: <20230124104248.2917465-1-john@metanate.com> To: John Keeping Cc: netdev@vger.kernel.org, John Keeping , Arend van Spriel , Franky Lin , Hante Meuleman , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?q?Alvin_=C5=A0ipraga?= , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, linux-kernel@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <167630062469.12830.3942976448765702685.kvalo@kernel.org> Date: Mon, 13 Feb 2023 15:03:47 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org John Keeping wrote: > Using the BCM4339 firmware from linux-firmware (version "BCM4339/2 wl0: > Sep 5 2019 11:05:52 version 6.37.39.113 (r722271 CY)" from > cypress/cyfmac4339-sdio.bin) the RSSI respose is only 4 bytes, which > results in an error being logged. > > It seems that older devices send only the RSSI field and neither SNR nor > noise is included. Handle this by accepting a 4 byte message and > reading only the RSSI from it. > > Fixes: 7dd56ea45a66 ("brcmfmac: add support for CQM RSSI notifications") > Signed-off-by: John Keeping Arend, could you take a look? -- https://patchwork.kernel.org/project/linux-wireless/patch/20230124104248.2917465-1-john@metanate.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches