From patchwork Thu Aug 3 19:08:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Erez X-Patchwork-Id: 9879739 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 751D6603FB for ; Thu, 3 Aug 2017 19:09:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66F7B28964 for ; Thu, 3 Aug 2017 19:09:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BD4228960; Thu, 3 Aug 2017 19:09:18 +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 0447828962 for ; Thu, 3 Aug 2017 19:09:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751959AbdHCTIl (ORCPT ); Thu, 3 Aug 2017 15:08:41 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:49050 "EHLO alexa-out-lv-02.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751872AbdHCTIj (ORCPT ); Thu, 3 Aug 2017 15:08:39 -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=1501787319; x=1533323319; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=S9hOoRGzlav/zpx8mVkwTtWFUXtFz0ZbAM1Nef5Y8wc=; b=ANfaYG657iz+zBNvuFr9qvln0a7hcfMJOaNnRe0qHU98D3vaJlNFzwm3 22gmjS/W3AD/Ymnq+FNRObc00y/86SGf7RzVsHAAMOoimsgjb9s4yTn0G tFmWRNjoVG+FH50hLeqFUqNKw1OQ0a/Az+iNhUiVjwol+1fSPeOrGMgeJ A=; X-IronPort-AV: E=Sophos;i="5.41,317,1498546800"; d="scan'208";a="2484439" Received: from ironmsg03-r-new.qualcomm.com (HELO Ironmsg03-R.qualcomm.com) ([10.53.140.107]) by alexa-out-lv-02.qualcomm.com with ESMTP; 03 Aug 2017 12:08:39 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8610"; a="1417424273" X-MGA-submission: =?us-ascii?q?MDHe8/jon3kJhZ9ThTQ7wEyuJx2Bp6/ppdiKUE?= =?us-ascii?q?EvADgMSIESGrrSisGOzsSM9vyACvrR8OBgL7eGWeWW6co5YqnCfCo6Lb?= =?us-ascii?q?PUEU//RCg/7IK35O8Qe3SSIQ197ZLUtgUYZt4ZS3F8J/ZxL+iTFBdd/Z?= =?us-ascii?q?Vt?= Received: from lx-merez1.mea.qualcomm.com ([10.18.173.103]) by Ironmsg03-R.qualcomm.com with ESMTP; 03 Aug 2017 12:08:37 -0700 From: Maya Erez To: Kalle Valo Cc: Maya Erez , linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com Subject: [PATCH v4 06/10] wil6210: notify wiphy on wowlan support Date: Thu, 3 Aug 2017 22:08:18 +0300 Message-Id: <1501787302-22885-7-git-send-email-qca_merez@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501787302-22885-1-git-send-email-qca_merez@qca.qualcomm.com> References: <1501787302-22885-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)