From patchwork Thu Apr 30 07:59:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 215777 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham 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 43254C83009 for ; Thu, 30 Apr 2020 07:59:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2124A2173E for ; Thu, 30 Apr 2020 07:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588233588; bh=XwZZ3X2QcyIEbrJyTLwyjUo+RQKYXCcvBb8PPP5q1mw=; h=From:To:Cc:Subject:Date:List-ID:From; b=iPVdT4kaPUvgsB1nAL1BEFYx9OhmisFgC+Xdi+R9Mxve0Ok9S+t00DKQu4NINgB6y buVKbh2LWvxjwKfHBK+WDFMZPc20yN61Jr+SCn+RcvOX489koSMO3XEPiIuQlxyz97 HnS4Pn6k2nLu1WPbIX3hJ55WbrmmoR73vQhjMCb8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726489AbgD3H7r (ORCPT ); Thu, 30 Apr 2020 03:59:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:49106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgD3H7r (ORCPT ); Thu, 30 Apr 2020 03:59:47 -0400 Received: from localhost.localdomain.com (unknown [151.48.130.170]) (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 5C4E820838; Thu, 30 Apr 2020 07:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588233586; bh=XwZZ3X2QcyIEbrJyTLwyjUo+RQKYXCcvBb8PPP5q1mw=; h=From:To:Cc:Subject:Date:From; b=kamgEIWit0T5LfqKCWQZvHL5nB1kQf5y+Cy2/C2hpogLn0uYybt4ISb9XtkK/X99S p9Wop5C3MFjXwrk2xcvucfs5XCJEhvFizO/33XeS5Gt0BgiD+FTFn6RY4wQcT9wFM5 hxe/x8E9AH3ancl5bleKr1TBdeX6wnaL4wyqueLk= From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, sean.wang@mediatek.com, linux-mediatek@lists.infradead.org Subject: [PATCH] mt76: mt7615: do not mark sched_scan disabled in mt7615_scan_work Date: Thu, 30 Apr 2020 09:59:31 +0200 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org For the moment offload firmware supports just one entry in the scheduled scan plan and so it runs till it is disabled by the userspace. Do not mark the hw scheduled scan as disabled in mt7615_scan_work after receiving a scan result Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7615/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/net/wireless/mediatek/mt76/mt7615/main.c index 23bc7f1262d0..5e54c7ffae0b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/main.c @@ -818,7 +818,6 @@ void mt7615_scan_work(struct work_struct *work) clear_bit(MT76_HW_SCANNING, &phy->mt76->state); ieee80211_scan_completed(phy->mt76->hw, &info); } else { - clear_bit(MT76_HW_SCHED_SCANNING, &phy->mt76->state); ieee80211_sched_scan_results(phy->mt76->hw); } dev_kfree_skb(skb);