From patchwork Mon Jul 31 16:32:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Erez X-Patchwork-Id: 9872463 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B243E60365 for ; Mon, 31 Jul 2017 16:33:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C74528516 for ; Mon, 31 Jul 2017 16:33:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9114428545; Mon, 31 Jul 2017 16:33:00 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 2C97828516 for ; Mon, 31 Jul 2017 16:33:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752418AbdGaQcx (ORCPT ); Mon, 31 Jul 2017 12:32:53 -0400 Received: from sabertooth02.qualcomm.com ([65.197.215.38]:37826 "EHLO sabertooth02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752566AbdGaQct (ORCPT ); Mon, 31 Jul 2017 12:32:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1501518769; x=1533054769; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=S9hOoRGzlav/zpx8mVkwTtWFUXtFz0ZbAM1Nef5Y8wc=; b=nj6N8UlKM2xDxN9EZ0BpvRZaoQQcmNYgrBpVLOBJyGn0wU/MAe6Lv45h 8447CoNwyofchqwSS5ALm1XcO/VQ9S7xgmBfjv6cIVIKtC7zyy3A81KeL NdM34jfiB3QJ+LO29nrJx5CGsj+gYghUDN7vwYqdmFM3dDtKcV0h8PVvc Q=; X-IronPort-AV: E=Sophos;i="5.41,304,1498546800"; d="scan'208";a="112898160" Received: from unknown (HELO ironmsg02-L.qualcomm.com) ([10.53.140.109]) by sabertooth02.qualcomm.com with ESMTP; 31 Jul 2017 09:32:49 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8608"; a="974365129" X-MGA-submission: =?us-ascii?q?MDGKMkIM0bsqRSSP5n8PTMqtW2RTX5lEGbCMrz?= =?us-ascii?q?hZDxY4uU3VXZKP7qhft15VzE0tbOPrnWi1bBNBJZc9XPbVV7UCVZBUZG?= =?us-ascii?q?7b1X/saRp3sLMULbD/fiGJDKr12nvQaSSFa3efPVG/Uq8e1Lr94ZkdwG?= =?us-ascii?q?Ed?= Received: from lx-merez1.mea.qualcomm.com ([10.18.173.103]) by ironmsg02-L.qualcomm.com with ESMTP; 31 Jul 2017 09:32:48 -0700 From: Maya Erez To: Kalle Valo Cc: Maya Erez , linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com Subject: [PATCH 07/10] wil6210: notify wiphy on wowlan support Date: Mon, 31 Jul 2017 19:32:30 +0300 Message-Id: <1501518753-6339-8-git-send-email-qca_merez@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501518753-6339-1-git-send-email-qca_merez@qca.qualcomm.com> References: <1501518753-6339-1-git-send-email-qca_merez@qca.qualcomm.com> 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 Set wowlan to indicate that 11ad device can wake-up on any trigger and disconnect. Signed-off-by: Maya Erez --- drivers/net/wireless/ath/wil6210/cfg80211.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c index c860c0c..61e872c 100644 --- a/drivers/net/wireless/ath/wil6210/cfg80211.c +++ b/drivers/net/wireless/ath/wil6210/cfg80211.c @@ -34,6 +34,12 @@ module_param(scan_timeout, uint, 0644); MODULE_PARM_DESC(scan_timeout, " Scan timeout (seconds)"); +#ifdef CONFIG_PM +static struct wiphy_wowlan_support wil_wowlan_support = { + .flags = WIPHY_WOWLAN_ANY | WIPHY_WOWLAN_DISCONNECT, +}; +#endif + #define CHAN60G(_channel, _flags) { \ .band = NL80211_BAND_60GHZ, \ .center_freq = 56160 + (2160 * (_channel)), \ @@ -1819,6 +1825,10 @@ static void wil_wiphy_init(struct wiphy *wiphy) wiphy->n_vendor_commands = ARRAY_SIZE(wil_nl80211_vendor_commands); wiphy->vendor_commands = wil_nl80211_vendor_commands; + +#ifdef CONFIG_PM + wiphy->wowlan = &wil_wowlan_support; +#endif } struct wireless_dev *wil_cfg80211_init(struct device *dev)