From patchwork Tue Apr 30 07:03:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 10922865 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 6666C1395 for ; Tue, 30 Apr 2019 07:03:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5674F28A05 for ; Tue, 30 Apr 2019 07:03:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4ABBF28A0B; Tue, 30 Apr 2019 07:03:48 +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 F09A928A05 for ; Tue, 30 Apr 2019 07:03:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726012AbfD3HDq (ORCPT ); Tue, 30 Apr 2019 03:03:46 -0400 Received: from nbd.name ([46.4.11.11]:60876 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfD3HDq (ORCPT ); Tue, 30 Apr 2019 03:03:46 -0400 Received: from p548c87b5.dip0.t-ipconnect.de ([84.140.135.181] helo=bertha.fritz.box) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hLMno-0008Ac-Nx; Tue, 30 Apr 2019 09:03:44 +0200 From: John Crispin To: Johannes Berg , Kalle Valo Cc: linux-wireless@vger.kernel.org, John Crispin Subject: [PATCH V2 0/3] mac80211: add code to explicitly enable TWT support inside the driver Date: Tue, 30 Apr 2019 09:03:35 +0200 Message-Id: <20190430070338.4006-1-john@phrozen.org> X-Mailer: git-send-email 2.11.0 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 At least ath11k needs an extra FW call to enable TWT inside the HW. This series adds code to trigger this from within start_ap() and also STA assoc events. Changes in V2 * fix 2 typos * move from bbs_config to start_ap John Crispin (3): mac80211: dynamically enable the TWT requester support on STA interfaces mac80211: allow turning TWT responder support on and off via netlink ath11k: add TWT support drivers/net/wireless/ath/ath11k/mac.c | 7 +++ drivers/net/wireless/ath/ath11k/wmi.c | 91 +++++++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/wmi.h | 71 +++++++++++++++++++++++++++ include/net/cfg80211.h | 2 + include/net/mac80211.h | 5 ++ include/uapi/linux/nl80211.h | 4 ++ net/mac80211/cfg.c | 4 +- net/mac80211/mlme.c | 18 ++++++- net/wireless/nl80211.c | 5 ++ 9 files changed, 204 insertions(+), 3 deletions(-)