From patchwork Wed Jan 30 16:02:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Gruszka X-Patchwork-Id: 10788865 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 DDB5B6C2 for ; Wed, 30 Jan 2019 16:02:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA2D22FCA9 for ; Wed, 30 Jan 2019 16:02:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCCEE2FE44; Wed, 30 Jan 2019 16:02:22 +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 73D872FE67 for ; Wed, 30 Jan 2019 16:02:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731682AbfA3QCV (ORCPT ); Wed, 30 Jan 2019 11:02:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40458 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731234AbfA3QCV (ORCPT ); Wed, 30 Jan 2019 11:02:21 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EC888C056796; Wed, 30 Jan 2019 16:02:20 +0000 (UTC) Received: from localhost (ovpn-204-66.brq.redhat.com [10.40.204.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4CFBD1001F59; Wed, 30 Jan 2019 16:02:20 +0000 (UTC) From: Stanislaw Gruszka To: Felix Fietkau Cc: Lorenzo Bianconi , linux-wireless@vger.kernel.org Subject: [PATCH v3 0/7] mt76x02: Beacon support for USB Date: Wed, 30 Jan 2019 17:02:12 +0100 Message-Id: <1548864139-27729-1-git-send-email-sgruszka@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 30 Jan 2019 16:02:21 +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 sync 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 and MESH drivers/net/wireless/mediatek/mt76/mac80211.c | 2 +- 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 | 77 ++++++++++--------- .../wireless/mediatek/mt76/mt76x2/pci_init.c | 4 +- .../wireless/mediatek/mt76/mt76x2/usb_init.c | 6 +- .../wireless/mediatek/mt76/mt76x2/usb_main.c | 15 +--- 8 files changed, 90 insertions(+), 69 deletions(-)