From patchwork Fri May 26 06:57:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinming Hu X-Patchwork-Id: 9749789 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 A70F36037E for ; Fri, 26 May 2017 06:57:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93F4128307 for ; Fri, 26 May 2017 06:57:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88CDC283AF; Fri, 26 May 2017 06:57:29 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 11E6428307 for ; Fri, 26 May 2017 06:57:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1947086AbdEZG5W (ORCPT ); Fri, 26 May 2017 02:57:22 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35097 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163744AbdEZG5U (ORCPT ); Fri, 26 May 2017 02:57:20 -0400 Received: by mail-pf0-f195.google.com with SMTP id u26so757216pfd.2 for ; Thu, 25 May 2017 23:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rE121ob/mupJmxf9R5o0icaLFvTlOz2SIeSMBHVuQhE=; b=hy0MZfz287QoH2chwCqdtQfP0quAWN+TtsgwvyuJP5eoyPywXIybAd+JrDklhkx4lr vw+RoYCUZE7QEAa0fwrStGvA2xNthilsME1xlUv4LoU8uTjaNGc37IEkIpOtshc5SgGZ yi9cDmIFpeOvAETu3kkxDq9ph8AhbfMnkDp5g6urKndn3LxLMdWSWmTuFSKb+IaRuPK+ 8UUlv8xvY4ToqQqBgTd2Xrh7LxdD5fBEHU5ytDbzH0H7EOTrNF8wFHl0EZo1woNFzJYv iXopIKjshb3hwuD/rLmIsNBsV/n0eIBtnqKhkPeeryuNCAmSQf8gKg7xHodvfKT6diUO FysQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rE121ob/mupJmxf9R5o0icaLFvTlOz2SIeSMBHVuQhE=; b=o40B9KUtJR4sKKW660KjbeY+S4JdeMtcpl2rpyr7Qo9ECkXTtF0I5bekoGAM6uIqO3 eLfJCE4x1CpWcERO6q9s8BPdfm75SFGQLD26G2H4iErMZk1XVQ+GHZdUCdIhnTA+v3ZH 9N3ankSQxsDqWayg5tffjmvazaD69bNRgxKOGFlPLwQ8OZlqgjbtKuiVeB1j7P8bZIwd kmVFuOogNcSaDRbnnKySazWxGa5p6vNh3AqnDhAckaDlE/m8uA+2LCp3lLrDXSe1uA92 2P9jM2M1VhwTrZ1BcBj0Vi+D16MTzf0hdJdgAVZQzl0pX+aZZhZ8EH/VP+qZq831T8SQ rYeA== X-Gm-Message-State: AODbwcCodgXpSAb0gPxnsFseQ9Cur8ugUQp+h9Y2JiEysHMmHvkDFi/h r2m48/rVrZnG+Q== X-Received: by 10.84.195.1 with SMTP id i1mr55161115pld.120.1495781840014; Thu, 25 May 2017 23:57:20 -0700 (PDT) Received: from ubuntu.members.linode.com ([2400:8902::f03c:91ff:fee7:7cf1]) by smtp.gmail.com with ESMTPSA id i63sm15964331pgc.26.2017.05.25.23.57.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 23:57:19 -0700 (PDT) From: Xinming Hu To: Linux Wireless Cc: Kalle Valo , Brian Norris , Dmitry Torokhov , rajatja@google.com, Zhiyuan Yang , Cathy Luo , Xinming Hu Subject: [PATCH] mwifiex: uap: process remain on channel expired event Date: Fri, 26 May 2017 06:57:13 +0000 Message-Id: <1495781833-25585-1-git-send-email-huxinming820@gmail.com> X-Mailer: git-send-email 2.7.4 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 From: Xinming Hu AP interface need process remain-on-channel firmware event and notify cfg80211, this will be used in the listen-stage of p2p find procedure. Signed-off-by: Xinming Hu --- drivers/net/wireless/marvell/mwifiex/uap_event.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/wireless/marvell/mwifiex/uap_event.c b/drivers/net/wireless/marvell/mwifiex/uap_event.c index e10b2a5..e8c8728 100644 --- a/drivers/net/wireless/marvell/mwifiex/uap_event.c +++ b/drivers/net/wireless/marvell/mwifiex/uap_event.c @@ -312,6 +312,17 @@ int mwifiex_process_uap_event(struct mwifiex_private *priv) adapter->event_skb->len - sizeof(eventcause)); break; + + case EVENT_REMAIN_ON_CHAN_EXPIRED: + mwifiex_dbg(adapter, EVENT, + "event: uap: Remain on channel expired\n"); + cfg80211_remain_on_channel_expired(&priv->wdev, + priv->roc_cfg.cookie, + &priv->roc_cfg.chan, + GFP_ATOMIC); + memset(&priv->roc_cfg, 0x00, sizeof(struct mwifiex_roc_cfg)); + break; + default: mwifiex_dbg(adapter, EVENT, "event: unknown event id: %#x\n", eventcause);