Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5200970rwr; Mon, 8 May 2023 20:29:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4C4DlScMPKqMYDu9GAZPi50GjZjcdvgUOl5tkFMGazGdcyhy5RH5SYrol3wdnXgfD0Jtd5 X-Received: by 2002:a17:902:7482:b0:1aa:f43f:e60 with SMTP id h2-20020a170902748200b001aaf43f0e60mr13233697pll.36.1683602941996; Mon, 08 May 2023 20:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683602941; cv=none; d=google.com; s=arc-20160816; b=ttYd4QSodkovtnTRo9EKkAWAZPZWtZWZlwlHDKrQI6/hOPjIkAzaxqvhbDkzx1mBnS vH2TfsHK6SxHJVVfQLVoErcGhivMKXNUxl1VXNyjIVqHiL4Jx5NgXWRK8iml/j06Y3O2 AowWLdaMSSge7gQQztYR+mscUhQ/Pl39jbB4B1YnqHukyFtDiSPEqTYzn9z7j4l+YxvZ 9rqcbBbeREr4zrgBz+a5ZvEN0ulbR1vYueeGDvm1gBtqKjwMx7XcHKb72R6V35+e7lyW 8+B35YS1GICJBMupqNZTWKXrQ1mGrZOmxSQtPSb0fTOBNlFzeUck4HqXjcBoJEiqD0Uq 7xAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=KGzNdZj5bBIgcavZMAN1mE0iGEII7p8CqoCQyefWETw=; b=Q/fFaqIWNP+UZ70OKQIfwwqZnNigh9Itbgu+k4v2YGVTHJFzl/sPh4Ol2SdXvELH50 CCWTW8g/bTyULcxiDq7tZxhhIaYxyeOcNZwAQYkF0moDuEAW5IkvOR6PGs33r6zXUwow eI9tci+xS3+CtS3K/mY3wOn31yXwskpsgMbX4xFlIYlsnMW5+x0aIdhMokcKi2ktwPrE UyaECx5MFHmhrq4itMkMjZJ6bPcf6sNPfVHOfd7OBuS95DXkKEUsVKRJGFVbsV/TB23v OZMNsK0ghXtbY+UOx5P96wpsobMLsBq5tN8hZ9SLCQamQctkKHBXAa30J3atIEyFsMk7 sQQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hrbsO0vr; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020a1709028bc700b001a92e587f72si484859plo.413.2023.05.08.20.28.54; Mon, 08 May 2023 20:29:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hrbsO0vr; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232838AbjEIDMe (ORCPT + 61 others); Mon, 8 May 2023 23:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234498AbjEIDM3 (ORCPT ); Mon, 8 May 2023 23:12:29 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B051A93FB for ; Mon, 8 May 2023 20:12:09 -0700 (PDT) X-UUID: 4416d12aee1711edb20a276fd37b9834-20230509 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=KGzNdZj5bBIgcavZMAN1mE0iGEII7p8CqoCQyefWETw=; b=hrbsO0vrU6OQZnpvUkbc1nODgIZ01IVEefuOmoihwfCyj6zdcI/V437uUVqBC4mhcA12vzHhb+YEKSKf4MffZXT3g03bEDwsOThTgNjeCxJPBzKcNTjoeElU1k4kPgKYCb2H+9Sdk9y6TKVryjNRC3aSNep7QO81feryiZkpy4E=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.23,REQID:5e05cc90-e35f-4a6f-8927-20908c949e21,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.23,REQID:5e05cc90-e35f-4a6f-8927-20908c949e21,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:697ab71,CLOUDID:23312f6b-2f20-4998-991c-3b78627e4938,B ulkID:230509111201QP2C2WXZ,BulkQuantity:0,Recheck:0,SF:28|17|19|48|38|29,T C:nil,Content:0,EDM:-3,IP:nil,URL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,CO L:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: 4416d12aee1711edb20a276fd37b9834-20230509 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2052149975; Tue, 09 May 2023 11:12:01 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 9 May 2023 11:12:00 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 9 May 2023 11:12:00 +0800 From: Ryder Lee To: Felix Fietkau , CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , , StanleyYP Wang , Ryder Lee Subject: [PATCH] wifi: mt76: mt7915: fix background radar event being blocked Date: Tue, 9 May 2023 11:11:57 +0800 Message-ID: <5cc3ad59270940a3c4229a4c780e106b1b0fe53c.1683587774.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: StanleyYP Wang The background radar uses MT_RX_SEL2 as its band indication, so fix it. Fixes: 7a53eecd5c87 (wifi: mt76: mt7915: check the correctness of event data) Signed-off-by: StanleyYP Wang Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c index 9fcb22fa1f97..088a065e37d5 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -274,7 +274,7 @@ mt7915_mcu_rx_radar_detected(struct mt7915_dev *dev, struct sk_buff *skb) r = (struct mt7915_mcu_rdd_report *)skb->data; - if (r->band_idx > MT_BAND1) + if (r->band_idx > MT_RX_SEL2) return; if ((r->band_idx && !dev->phy.mt76->band_idx) && -- 2.18.0