From patchwork Mon Jan 28 12:21:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Gruszka X-Patchwork-Id: 10783643 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1E4E922 for ; Mon, 28 Jan 2019 12:21:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A29642A5F0 for ; Mon, 28 Jan 2019 12:21:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 964312A61B; Mon, 28 Jan 2019 12:21:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FA372A4B7 for ; Mon, 28 Jan 2019 12:21:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbfA1MVx (ORCPT ); Mon, 28 Jan 2019 07:21:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41859 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726611AbfA1MVx (ORCPT ); Mon, 28 Jan 2019 07:21:53 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2855886677; Mon, 28 Jan 2019 12:21:53 +0000 (UTC) Received: from localhost (unknown [10.43.2.219]) by smtp.corp.redhat.com (Postfix) with ESMTP id A81D560BE0; Mon, 28 Jan 2019 12:21:50 +0000 (UTC) From: Stanislaw Gruszka To: Felix Fietkau Cc: linux-wireless@vger.kernel.org, Lorenzo Bianconi Subject: [PATCH v2 0/7] mt76x02: Beacon support for USB Date: Mon, 28 Jan 2019 13:21:41 +0100 Message-Id: <1548678108-9526-1-git-send-email-sgruszka@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 28 Jan 2019 12:21:53 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We can configure beaconing, but without TBTT interrupt we can not support PS buffering. This can be added later using kernel hrtimer, if we can keep it in sycn with device timer. I tested AP and IBSS modes. Stanislaw Gruszka (7): mt76x02: use mask for vifs mt76x02: use commmon add interface for mt76x2u mt76x02: initialize mutli bss mode when set up address mt76x02: minor beaconing init changes mt76x02: init beacon config for mt76x2u mt76: beaconing fixes for USB mt76x02: enable support for IBSS, AP and MESH drivers/net/wireless/mediatek/mt76/mac80211.c | 3 +- .../net/wireless/mediatek/mt76/mt76x0/pci.c | 7 ++ drivers/net/wireless/mediatek/mt76/mt76x02.h | 5 +- .../net/wireless/mediatek/mt76/mt76x02_mac.c | 44 ++++++++++- .../net/wireless/mediatek/mt76/mt76x02_mac.h | 6 +- .../net/wireless/mediatek/mt76/mt76x02_util.c | 73 +++++++++---------- .../wireless/mediatek/mt76/mt76x2/pci_init.c | 12 ++- .../wireless/mediatek/mt76/mt76x2/usb_init.c | 6 +- .../wireless/mediatek/mt76/mt76x2/usb_main.c | 15 +--- 9 files changed, 100 insertions(+), 71 deletions(-)