Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp273484pxj; Fri, 14 May 2021 03:09:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBGsd2z72h0uA9N9LBbeKdhKr5JJ8I1MQt+OSSjseaGEOaRZzJCrabnBKl9zWe6jSYpmC8 X-Received: by 2002:a05:6e02:1a8c:: with SMTP id k12mr39837498ilv.161.1620986981022; Fri, 14 May 2021 03:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620986981; cv=none; d=google.com; s=arc-20160816; b=cwSpCq8hdZUb69X2PbtFwj+Qwaor+E3TCTPgbLns2A9eSNGv5dFCo0nVT28H9c1aeM 2snAAkMoUEq8dDzP+SJiXgfbwj9KBAvox9QYiLQ9mnyLyBQgcaqlVsO/aR2Q4V4CoMQs UfbEoFLiQX0aUSO7L0rCdQsbwB3hC7TtgwdQcpR8Dy2fPRVt9bTX54JHwRppfJneoQqX uIXCHNt3jVQlDsRQhKm69bYMz8FAEc5fWYajfL1TODaen5tJ3Re9W1j8YGAlrstnrhx3 BTzO2/mwyY18jBa9kjvdOTM5Fm3nZ0nX33xgJJfm+ON6IY8jEWxBywv0fR1yDoW/Jtt4 sc6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:authenticated-by; bh=ntfVdXmtp0MqpCfx6d7feKrpCs5rriF22fOlPcNd8Ho=; b=uZuDnsubfI0iNu8UPd7p6MkcWY+EZVd1VwV58RIAVAXPR4a/CTKoFZgQxwoSttXoX4 xxfZrz37ZQqTtDDjnIOUJsNx9MvGGNTAS9ey48GfNkIbH1wu+Sso24AX9a2QdInH0rdm ++79xYYwVb32RhSd5PGn7O6DHieBw+W/ZkKsR18C7KMn9yFMRHQcHrGoE50cIg+nuwOG coJJj7jQp9DbWlq5PeVOWI3G072rZ3W7f6kCK1NM2dr3LKxrVpf6uMtiM4KNj1u951Fg Azy8jXhDUGw0aeXqh3QfqV1r7w48g5ASLOlNdvlqrclo9bxBCYQSobPw6SSseIDlOPAF jW3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o8si6887335ilu.133.2021.05.14.03.09.28; Fri, 14 May 2021 03:09:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233221AbhENH4u (ORCPT + 99 others); Fri, 14 May 2021 03:56:50 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:42830 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhENH4u (ORCPT ); Fri, 14 May 2021 03:56:50 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 14E7tXXK1027694, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36502.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 14E7tXXK1027694 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 14 May 2021 15:55:33 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36502.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 14 May 2021 15:55:31 +0800 Received: from localhost (172.21.69.146) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 14 May 2021 15:55:30 +0800 From: Ping-Ke Shih To: , CC: , Subject: [PATCH 0/2] rtw88: add scan notify to firmware and refine fw_feature check Date: Fri, 14 May 2021 15:55:15 +0800 Message-ID: <20210514075517.14216-1-pkshih@realtek.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.146] X-ClientProxiedBy: RTEXH36501.realtek.com.tw (172.21.6.27) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIxLzUvMTQgpFekyCAwNjowMDowMA==?= X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 05/14/2021 07:33:30 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 10 X-KSE-AntiSpam-Info: Lua profiles 163650 [May 14 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: pkshih@realtek.com X-KSE-AntiSpam-Info: LuaCore: 445 445 d5f7ae5578b0f01c45f955a2a751ac25953290c9 X-KSE-AntiSpam-Info: {Prob_from_in_msgid} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;realtek.com:7.1.1 X-KSE-AntiSpam-Info: {Track_Chinese_Simplified, headers_charset} X-KSE-AntiSpam-Info: Rate: 10 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 05/14/2021 07:36:00 X-KSE-ServerInfo: RTEXH36502.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 05/14/2021 07:43:34 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 10 X-KSE-AntiSpam-Info: Lua profiles 163650 [May 14 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: pkshih@realtek.com X-KSE-AntiSpam-Info: LuaCore: 445 445 d5f7ae5578b0f01c45f955a2a751ac25953290c9 X-KSE-AntiSpam-Info: {Prob_from_in_msgid} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;realtek.com:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: Rate: 10 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 05/14/2021 07:46:00 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org First patch, doesn't change logic at all, makes code become concise. This refine depends on "[PATCH v4 1/3] rtw88: add beacon filter support" that check firmware feature as well. Second patch adds notify to firmware to avoid potential problem. Chin-Yen Lee (2): rtw88: add rtw_fw_feature_check api rtw88: notify fw when driver in scan-period to avoid potential problem drivers/net/wireless/realtek/rtw88/fw.c | 28 +++++++++++++++++-- drivers/net/wireless/realtek/rtw88/fw.h | 16 ++++++++++- drivers/net/wireless/realtek/rtw88/mac80211.c | 6 ++-- drivers/net/wireless/realtek/rtw88/main.c | 21 ++++++++++++-- drivers/net/wireless/realtek/rtw88/main.h | 4 +++ drivers/net/wireless/realtek/rtw88/ps.c | 4 +-- 6 files changed, 70 insertions(+), 9 deletions(-) -- 2.21.0