From patchwork Thu Aug 3 13:25:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Erez X-Patchwork-Id: 9879101 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 9110C603B4 for ; Thu, 3 Aug 2017 13:25:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8370C2810E for ; Thu, 3 Aug 2017 13:25:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77C41288E4; Thu, 3 Aug 2017 13:25:57 +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 3312E2810E for ; Thu, 3 Aug 2017 13:25:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751921AbdHCNZ4 (ORCPT ); Thu, 3 Aug 2017 09:25:56 -0400 Received: from sabertooth02.qualcomm.com ([65.197.215.38]:45841 "EHLO sabertooth02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751900AbdHCNZz (ORCPT ); Thu, 3 Aug 2017 09:25:55 -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=1501766754; x=1533302754; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=S9hOoRGzlav/zpx8mVkwTtWFUXtFz0ZbAM1Nef5Y8wc=; b=nhayQUirIx/L7oc4HBnF+CA73MNmCTfgEnOVG1o+psix1LwOt9o5osNt SHKfEFw9X1/hiP10bLoHbUwTEoX4WuG6O6rb3JtZ2U7jC6hV58uA4mjYb AdiCDiVOWqoxMfBj6pJy2l00u5dMRPPIakBf6OHjUI/7MLMl30aCjseVo Y=; X-IronPort-AV: E=Sophos;i="5.41,316,1498546800"; d="scan'208";a="112982870" Received: from unknown (HELO ironmsg02-R.qualcomm.com) ([10.53.140.106]) by sabertooth02.qualcomm.com with ESMTP; 03 Aug 2017 06:25:54 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8610"; a="1010143087" X-MGA-submission: =?us-ascii?q?MDFJLMesoFVXXqcXIKG1xYMmdC1RBG8IQGLM+/?= =?us-ascii?q?RR0xGnuQKHdPOWPKhm9Oo5tWbF60t6I+x3RwykwtXJEKF1HzbtJsyAdO?= =?us-ascii?q?+A74x/kGEUwuep5i2CkGrj3joX5A0HzcSNnBjM8pDmmJIEJYEQkiNPRD?= =?us-ascii?q?4+?= Received: from lx-merez1.mea.qualcomm.com ([10.18.173.103]) by ironmsg02-R.qualcomm.com with ESMTP; 03 Aug 2017 06:25:53 -0700 From: Maya Erez To: Kalle Valo Cc: Maya Erez , linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com Subject: [PATCH v3 6/9] wil6210: notify wiphy on wowlan support Date: Thu, 3 Aug 2017 16:25:36 +0300 Message-Id: <1501766739-31996-7-git-send-email-qca_merez@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501766739-31996-1-git-send-email-qca_merez@qca.qualcomm.com> References: <1501766739-31996-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)