From patchwork Wed Apr 26 10:34:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinming Hu X-Patchwork-Id: 9701051 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 366CD603F7 for ; Wed, 26 Apr 2017 10:35:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 154492849F for ; Wed, 26 Apr 2017 10:35:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A168284EE; Wed, 26 Apr 2017 10:35:13 +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 8C7D5284D5 for ; Wed, 26 Apr 2017 10:35:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2998353AbdDZKfC (ORCPT ); Wed, 26 Apr 2017 06:35:02 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33603 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2998351AbdDZKfA (ORCPT ); Wed, 26 Apr 2017 06:35:00 -0400 Received: by mail-pf0-f193.google.com with SMTP id c198so15977883pfc.0 for ; Wed, 26 Apr 2017 03:34:59 -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=VdokLbeHwKAxp2SwHt5akl999X9C++ulHfXZj4snDDE=; b=CAXysriYDjYWNdJ6VyZB1IWhuCYuVYAXscehWD4CcOASC6U1uN6iu+awcvAqj9PfCN KQ/DpsXLNUOimsz/PxWEj9jNts5BKPaOcEOvVoeehsj0pLkkqTaCAzYDTT6f4oampXSb jr3SD7o04mlpAizi4s7IhYhqKpzp4PlOjtrkP7uEABas6CCe2S0wzD0pkHJW8Urco125 J2RNFGq7RApQ4xQbGjLVAam3qcUtjD8jt+pBwgUtbulzTFxHx+g1//7dTIsuugdnzBer /LyCPQkpSt1zFDF+0kD32HRUutxzeHQ5vRxFTyNAKKc4P8wsXbSWh+GidKm3CkhaLoor /Qvg== 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=VdokLbeHwKAxp2SwHt5akl999X9C++ulHfXZj4snDDE=; b=hwBC/7CLd+7hE1b6D2QWymD60RhQu7qSAIPuZWosq1fuH40T44TGulTPm5AFT4stUh 4J4maXUftrcvmyPoA0IHCgHOntF8l7r/N7n8qPtQ5KnUa5mlDpMwQv0hg+2MvZgQu0RN id7M6NHk1K3OJJPeZYdYRokmgAKx+1COxpbz4mW0Azqaat2u4UqErVU4pPsyNqDywRLr xyHgHRD2zyehws8oUUnCRnr1bO0zrxf8R4Xk1QJebL3aHQGgH3GKXuwTx+2R19zGEe1X i6wFF4qM5rqaE9BGum5dC2IDDiL3pC7Le2i4H9/JpyQlVfSAWQQ4fkNUG8JmEZmAKFSB 8YZw== X-Gm-Message-State: AN3rC/6xWdILeD4uWl33wJelVUyf26l0cZX5R4uDFmKkeia8BoKY6dxI LFxMquctdVpEYQ== X-Received: by 10.98.46.199 with SMTP id u190mr19564658pfu.262.1493202898981; Wed, 26 Apr 2017 03:34:58 -0700 (PDT) Received: from ubuntu.members.linode.com ([2400:8902::f03c:91ff:fee7:7cf1]) by smtp.gmail.com with ESMTPSA id r17sm22130270pgn.26.2017.04.26.03.34.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Apr 2017 03:34:58 -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: p2p client using same data path as station Date: Wed, 26 Apr 2017 10:34:48 +0000 Message-Id: <1493202888-20784-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 P2p client act as a station, data will be queued by DA instead of RA. This patch pass the sanity check, so that p2p client share the same data path with infrastruction station mode. Signed-off-by: Xinming Hu Signed-off-by: Cathy Luo --- drivers/net/wireless/marvell/mwifiex/main.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/main.h b/drivers/net/wireless/marvell/mwifiex/main.h index f1cb875..72e87bf 100644 --- a/drivers/net/wireless/marvell/mwifiex/main.h +++ b/drivers/net/wireless/marvell/mwifiex/main.h @@ -1235,7 +1235,8 @@ int mwifiex_cmd_802_11_bg_scan_config(struct mwifiex_private *priv, * Currently we assume if we are in Infra, then DA=RA. This might not be * true in the future */ - if ((priv->bss_mode == NL80211_IFTYPE_STATION) && + if ((priv->bss_mode == NL80211_IFTYPE_STATION || + priv->bss_mode == NL80211_IFTYPE_P2P_CLIENT) && (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA)) return false;