Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp493771ybc; Sat, 16 Nov 2019 03:21:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxNdpX7MH/P46JfWJ7poJEOCzEDTni/Wez17LtMSrORYAU2fVKKJ2b3s/j9GN0jj9H1IRFy X-Received: by 2002:a17:906:c7d0:: with SMTP id dc16mr9045784ejb.73.1573903282352; Sat, 16 Nov 2019 03:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573903282; cv=none; d=google.com; s=arc-20160816; b=TndZ5oEgJrNdd1Y6TedbW72HvUjg0QLo/gKdB0gg7ZroFWt4Pi4r4bUMm86UpSMBsS dEcfy40tAaGK3/AT0FwnB5k+5PthwFyp1XwRg3iv92fvxQDDv5TpMs1OF8tciWcuPjHf Mlr2sKkw2MSVLNLb+papo0iNigjeuBngczskcTYDLvQFdxabZVfHXZFlRy3zVp9xU7hL mU6KEZ99+bUVWrAclQjWBgPaM9CyHJPMdeHsFJt9HmQUKOoxKTt/ubOxBxpeOJzre+KF jRPHzk+dXiLOO95heuZ5STTnYpeHKMlPHZXR9JIhneLGySYgFk6RaGfrzm2IQ3WBAIcQ k5IQ== 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 :message-id:date:subject:cc:to:from; bh=BtzviMQRfJKo/z40Pjtvaj2Dqh5L8Gtrm3PvOhgRQ2Y=; b=JzOhwXqqAYyK7q8lngiqPt6wM+qtv+DP92Q3zVMdeRPdpvdLC4JUp0/PnQ5/kLtLSc iFQgq3wEK9zt6RCTsBlLtMYFLzbXQ99r3VZaUK2nSQ9DC694cjseA7ymiSAzDYABS0mh 2IVB+1SjwavTIg0pAs1bf9yjp337YTYDno5Po0/1aaOGB77U13OnE7s45h4VUqny6eXB 2n5DBI4Zd0cCchIGfoBiRwq1yLjK0PL9IsWn8oEFgKnP4CRCTcbou7EcEJsP5X2RX73/ Io7h5fXX5vDq4bKc6giVW4FQjJ3Kn7glh4FlmYtgQL4YwExsNf+8jeDHIfTdouFpK3Mu Vnaw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dd5si7723175ejb.179.2019.11.16.03.20.38; Sat, 16 Nov 2019 03:21:22 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727414AbfKPLS1 (ORCPT + 99 others); Sat, 16 Nov 2019 06:18:27 -0500 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:59104 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726794AbfKPLS0 (ORCPT ); Sat, 16 Nov 2019 06:18:26 -0500 Received: from isengard.fritz.box (unknown [87.147.48.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPSA id 9683158007B; Sat, 16 Nov 2019 12:18:24 +0100 (CET) From: Markus Theil To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, Stanislaw Gruszka , Markus Theil Subject: [PATCH 0/4] mt76: channel switch support for USB devices Date: Sat, 16 Nov 2019 12:17:05 +0100 Message-Id: <20191116111709.4686-1-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.24.0 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 This patch series adds channel switch support for mt76 usb interfaces. When testing, I noticed that between 5 or 7 consecutive beacons had the identical channel switch count set. After some debugging I found out, that beacon copying over usb took far too long (up to 700ms for one call of mt76x02u_pre_tbtt_work). Therefore the first three patches speed up beacon copying and the last patch enables channel switch support also for usb interfaces. Markus Theil (4): mt76: mt76x02: ommit beacon slot clearing mt76: mt76x02: split beaconing mt76: speed up usb bulk copy mt76: mt76x02: add channel switch support for usb interfaces drivers/net/wireless/mediatek/mt76/mt76.h | 2 +- .../wireless/mediatek/mt76/mt76x02_beacon.c | 62 +++++++------------ .../net/wireless/mediatek/mt76/mt76x02_mac.h | 2 + .../net/wireless/mediatek/mt76/mt76x02_mmio.c | 4 ++ .../wireless/mediatek/mt76/mt76x02_usb_core.c | 11 ++++ .../net/wireless/mediatek/mt76/mt76x02_util.c | 2 +- .../wireless/mediatek/mt76/mt76x2/usb_main.c | 5 ++ drivers/net/wireless/mediatek/mt76/usb.c | 22 +++++-- 8 files changed, 63 insertions(+), 47 deletions(-) -- 2.24.0