Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp974194yba; Sat, 4 May 2019 18:03:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkgNtad6ZhfxLAXUt1KztLmHD5qykwQxKh34VMtPszp2lkEmm/5I97/a3DwiBAHcAlOx0O X-Received: by 2002:a17:902:bd0c:: with SMTP id p12mr22183223pls.50.1557018204904; Sat, 04 May 2019 18:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557018204; cv=none; d=google.com; s=arc-20160816; b=pe+EJEJ6oGBdiBUFjOoxD/2Bw+6f5gwBVs/neQptqBxCYnizAEzGcT6s5WhZcUr2M8 1ng/L2moEffCOnHcUmjoVoFysuwlG6vorSkctz+geNRBiEUdy5OJ51O5tFvzHUUvIDyW NKoI6zxTrDJKTNVekPPziz8jE/JbG+oljigBSdyNmF6v+16g/aHf3goPagQ3iIbQY8mG 39z0Io1H1zFrBMmF2GL34Sp3HL2+wT1Wgkuya5p/yGB+qmITtoOEJkeCvUWUkQZBdhqP 4yDcgdWlnT4F07HQ94a16I6STtZ5VqTQyBuSTfsIDvYNFn0KllYFx+NIrLfc/Ig2Nexd LYww== 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=wbYLZVYuGSpfSCOZ82ZFhBogB3jlmqk/JiLJkJ1Kwg8=; b=kbZ56lSwDPyZq34GZ6VdfM/JnuRFBa+oyFqYdkqFFPVDpKqjCeorH2eBnNJIdrmeS4 ur+FI33ENmNx/jthkYKlXFVfF+A9bCxk61aUZT7BTtuLFfZf0Doyzp+HHdnG0PMJgSoS 9uP/Wg4+0dDDq4RG4mxUNxiHM+ZUi4Gghm7qkxt8fy0lTXIqk14x5xYrgXWoFEluWF1e IMdbk5hhwk0gmSdlcZ9uL7f722nUAJA9r3JBi7yhGiePMpR3kdqVVNHonQneWDsfG2CL YZ7fp4dOVrjnRdM0UPSNr4Jder7w0zckyBgSGIPw5GZ/nhxc/sI31vEra7Ivv/+41ary jn2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k1mhPaqR; 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 l11si7393279pgi.194.2019.05.04.18.02.51; Sat, 04 May 2019 18:03:24 -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=k1mhPaqR; 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 S1727127AbfEEAxq (ORCPT + 99 others); Sat, 4 May 2019 20:53:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:56696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbfEEAxq (ORCPT ); Sat, 4 May 2019 20:53:46 -0400 Received: from localhost.localdomain (unknown [151.66.59.15]) (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 BB3562063F; Sun, 5 May 2019 00:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557017625; bh=tkJZSl8lXeFKFZLnoXo98AEyhztr0azfzfzlRNxH63c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k1mhPaqRXpbtM5XJXky7AkWUR1emey+lAZvQxR0Hqt7UpQVluOua9QsaYztIjeMIV 7gLW8mkgEfjKwwP8Nl4C2xMy8uXpNXzmIou/8bxQQqN+lQZ8cSEGA/n1ivmL+lkb4u mi/rYQNsBmejFg75r+tZbCo1KB+q29afjpJ23XAw= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH] mt76: mt7603: stop mac80211 queues before setting the channel Date: Sun, 5 May 2019 02:53:32 +0200 Message-Id: <31a4fa56c854a64a25f2e7aa37cba23e9d3fb3d6.1557016660.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 Suspend data transmission during channel switch Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7603/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/main.c b/drivers/net/wireless/mediatek/mt76/mt7603/main.c index 0a0334dc40d5..172687a1cb15 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/main.c @@ -207,8 +207,11 @@ mt7603_config(struct ieee80211_hw *hw, u32 changed) int ret = 0; if (changed & (IEEE80211_CONF_CHANGE_CHANNEL | - IEEE80211_CONF_CHANGE_POWER)) + IEEE80211_CONF_CHANGE_POWER)) { + ieee80211_stop_queues(hw); ret = mt7603_set_channel(dev, &hw->conf.chandef); + ieee80211_wake_queues(hw); + } if (changed & IEEE80211_CONF_CHANGE_MONITOR) { mutex_lock(&dev->mt76.mutex); -- 2.20.1