Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3393201yba; Mon, 29 Apr 2019 01:14:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAUjzHfDVCwVFwP5Nbn1nmAShD9j0QhL5y/LBEeCtOcq++kKKFsFbSsTb/S07b1U9EPr9O X-Received: by 2002:a63:1c6:: with SMTP id 189mr55656183pgb.22.1556525665089; Mon, 29 Apr 2019 01:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556525665; cv=none; d=google.com; s=arc-20160816; b=tH/sEb3ubrEgpMeALcyB5eagjJZQPnJHfLKNYgYUw4lVjipQoXZo5fS6fFCqAhMjHT oH+6BVC6gIMWi2ZcqmCWbWfLcmPagwgJP/yVP4EE5Ge2ifDOm+1VBoQQBK5Zm/m33AdR TXViTaTtTD+jHNa/PkYJCcFw+QFOYO0mbx4IoAyNm1Pk4o2Q53u6L5PxScpq7sY1PyOZ XNWl+0DPt/7JWrQdoY+OCJANiSbaw7XoXixuk73SWC3KHW41aNpcwXBwHp2MLoLy4KYp 9jSBYo4aFt/xCD5Sd8gC3y0dy4dnyPDY2Z86dGag5e6NcN3N23cX9Wau2pypy9OoBHt6 vfjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s5daYJEZTdomTcK+UHtbJTytq8sWfXfuwqXWscATaPY=; b=S0ZYYZ4VZBHgBboR0WK+1OfQg3MIb8LGb6rPEWNEJLcCZgaBzlmUmMHmBq/d/MtcsO vKcCk5bxkgdD2bXAJ7IOO9BTWymTAHEWSNLZYYNgU1etSLrY0MxzZNMinH0kpjnmi+u8 C0LN6k7EjIjkD/5alExXekgOFzdn6JlYwyxNzuoNvWCS1SEGiAPLVsPyE6Q5vw3tKmqP jSptlS+INyf03nvtQSByBUqS+5emTL4wlRV+sy0VJFNIKFrzteaPrrX5hUa8ItmQmrJG Lnw76bC+fUQ/CsTNUMUxJCCencY2bd1AwIaSDHQWrDySB72kOc9+vlNzoubgXjPRTUIg MHbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HeR6PlFP; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b16si31024071pgb.501.2019.04.29.01.14.10; Mon, 29 Apr 2019 01:14:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HeR6PlFP; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727525AbfD2INN (ORCPT + 99 others); Mon, 29 Apr 2019 04:13:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:33538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727439AbfD2INN (ORCPT ); Mon, 29 Apr 2019 04:13:13 -0400 Received: from localhost.localdomain (unknown [151.66.22.155]) (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 9AC512147A; Mon, 29 Apr 2019 08:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556525592; bh=iqmbrPEi4BVpf3gnYhgxzlSmtYsG7wyCu9SIBIK4hKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HeR6PlFPjGAiaBXIMYTR9kTfSwUJwq0len+bpr+PJDojZ9T28/67WB0Cfv+d2xMFg 4huPIFlnTpWnDvkEt1s9rjBIFK0NdFNUThV3Dgk4r+eomQY1nmTsHLKvEQrs2QfzST JGFZUpJyYK8tr6zlxd9ptdxDgb72kBo6tI3ynA8k= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [PATCH v2 1/5] mt76: do not enable/disable pre_tbtt_tasklet in scan_start/scan_complete Date: Mon, 29 Apr 2019 10:12:58 +0200 Message-Id: <6687d95d437b70ecf7ab9843aa502e71f034193f.1556525110.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Do not enable/disable pre_tbtt_tasklet tasklet in mt76x02_sw_scan/mt76x02_sw_scan_complete since it is already done setting the operating channel Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_util.c b/drivers/net/wireless/mediatek/mt76/mt76x02_util.c index ad8a53def7f7..5d656fea1dde 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_util.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_util.c @@ -593,8 +593,6 @@ void mt76x02_sw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif, { struct mt76x02_dev *dev = hw->priv; - if (mt76_is_mmio(dev)) - tasklet_disable(&dev->pre_tbtt_tasklet); set_bit(MT76_SCANNING, &dev->mt76.state); } EXPORT_SYMBOL_GPL(mt76x02_sw_scan); @@ -605,9 +603,6 @@ void mt76x02_sw_scan_complete(struct ieee80211_hw *hw, struct mt76x02_dev *dev = hw->priv; clear_bit(MT76_SCANNING, &dev->mt76.state); - if (mt76_is_mmio(dev)) - tasklet_enable(&dev->pre_tbtt_tasklet); - if (dev->cal.gain_init_done) { /* Restore AGC gain and resume calibration after scanning. */ dev->cal.low_gain = -1; -- 2.20.1