From patchwork Fri Apr 26 09:41:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 10918969 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 865401390 for ; Fri, 26 Apr 2019 09:42:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 743F328D56 for ; Fri, 26 Apr 2019 09:42:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6800328D6E; Fri, 26 Apr 2019 09:42:01 +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 0534E28D56 for ; Fri, 26 Apr 2019 09:42:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727138AbfDZJmA (ORCPT ); Fri, 26 Apr 2019 05:42:00 -0400 Received: from nbd.name ([46.4.11.11]:57600 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbfDZJl7 (ORCPT ); Fri, 26 Apr 2019 05:41:59 -0400 Received: from p548c8674.dip0.t-ipconnect.de ([84.140.134.116] helo=bertha.fritz.box) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hJxMi-00036i-7r; Fri, 26 Apr 2019 11:41:56 +0200 From: John Crispin To: Johannes Berg , Kalle Valo Cc: Srini Kode , Rajkumar Manoharan , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, John Crispin Subject: [PATCH V2 0/3] mac80211: notify the driver when it should enable TWT Date: Fri, 26 Apr 2019 11:41:47 +0200 Message-Id: <20190426094150.18078-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 The ath11k FW has dedicated calls for setting the TWT state. Trigger these via the BSS config changes. In a later step we need to also add calls for manually starting TWT dialogs. Changes in V2 * add NLA_POLICY_RANGE for NL80211_ATTR_TWT_RESPONDER John Crispin (3): mac80211: allow turning TWT responder support on and off via netlink mac80211: dynamically turn TWT requester support on and off 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 | 6 +++ net/mac80211/mlme.c | 20 +++++++- net/wireless/nl80211.c | 6 +++ 9 files changed, 210 insertions(+), 2 deletions(-)