From patchwork Wed Aug 2 21:00:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Erez X-Patchwork-Id: 9877761 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 E5C9B60360 for ; Wed, 2 Aug 2017 21:01:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D92C02882F for ; Wed, 2 Aug 2017 21:01:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE25428831; Wed, 2 Aug 2017 21:01:10 +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 852FA2882F for ; Wed, 2 Aug 2017 21:01:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752876AbdHBVBJ (ORCPT ); Wed, 2 Aug 2017 17:01:09 -0400 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:35554 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752616AbdHBVBH (ORCPT ); Wed, 2 Aug 2017 17:01:07 -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=1501707667; x=1533243667; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=S9hOoRGzlav/zpx8mVkwTtWFUXtFz0ZbAM1Nef5Y8wc=; b=P34KInqX3VNqJ4w/TQTx3bruaESjzQt1QR2fwsFnt3YZ0ge2uS/6zh1q KaykyLZM4y56X4p+GJvHOFQJ5TlDSUDGlTja+Y6rR6XHcHicceUXyFWy9 qx/5hXaqbW0bj6Oi2h0cvt6QDVSxMGTs9TFkAxUFFNo7AP9tebWfEvTQN Y=; X-IronPort-AV: E=Sophos;i="5.41,313,1498546800"; d="scan'208";a="111952946" Received: from unknown (HELO ironmsg02-R.qualcomm.com) ([10.53.140.106]) by sabertooth01.qualcomm.com with ESMTP; 02 Aug 2017 14:01:07 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8610"; a="1009681575" X-MGA-submission: =?us-ascii?q?MDHuqVjA2kHyxtdwqFYb3vkqrnGpIcjN5iVh4/?= =?us-ascii?q?UgixJLHCiyF7xpF0iSlRpX+UYEBGo9waptRXE07KHhNxf9Kby0HbdV9t?= =?us-ascii?q?JEnbbShdPm5jr9W9lS+zJhXUwYSAI4Hfn6BGB0zMVDOHo/ZmWlQfTWd+?= =?us-ascii?q?NN?= Received: from lx-merez1.mea.qualcomm.com ([10.18.173.103]) by ironmsg02-R.qualcomm.com with ESMTP; 02 Aug 2017 14:01:06 -0700 From: Maya Erez To: Kalle Valo Cc: Maya Erez , linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com Subject: [PATCH v2 6/9] wil6210: notify wiphy on wowlan support Date: Thu, 3 Aug 2017 00:00:46 +0300 Message-Id: <1501707649-9665-7-git-send-email-qca_merez@qca.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501707649-9665-1-git-send-email-qca_merez@qca.qualcomm.com> References: <1501707649-9665-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)