From patchwork Thu Aug 3 09:13:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinming Hu X-Patchwork-Id: 9878507 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 1E5F36037D for ; Thu, 3 Aug 2017 09:13:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C15028871 for ; Thu, 3 Aug 2017 09:13:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00E8F28887; Thu, 3 Aug 2017 09:13:40 +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 A24C128871 for ; Thu, 3 Aug 2017 09:13:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868AbdHCJNj (ORCPT ); Thu, 3 Aug 2017 05:13:39 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33162 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775AbdHCJNi (ORCPT ); Thu, 3 Aug 2017 05:13:38 -0400 Received: by mail-pg0-f65.google.com with SMTP id u185so968846pgb.0 for ; Thu, 03 Aug 2017 02:13:37 -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:in-reply-to:references; bh=WPtssiScVHEgpsWYrzQgqmOuZY7sjzShsTmPgQkIEvU=; b=d5IYFV6BJtpvu8UWX4adjYey7CefPsK/0Y0XWvtwEaVhRpf1cuDQlO7Z6819CUM013 VPeUDdPfB/fhwC7YybiCY+TJkLLB5iG4uuhFmv5nkMKAvYZa1Sro//DvfOor1M0p21n+ UhgZufoSXBDXsGUXXDsChA7qxN3vKFfSfdppRwd1ej21KQZYdL0emdoS7C38IZjr+rMI 1SkHlrdknO71KPIO8XeIl1uxGIS1D+9FFuDlgqJNRmDLW5uA76FNocIKT/hssU7KJhC1 DTloRx7zUNubS+ckVy+wtwiAAZL2bH7MMEOII/IHzQuQ/KP1KPvuogcT+r2O1VMZ7twD SDBw== 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:in-reply-to :references; bh=WPtssiScVHEgpsWYrzQgqmOuZY7sjzShsTmPgQkIEvU=; b=FWpE6wsszgWi7VGlV7CYThHCjDq2FmYK3IpvKUt9PWfm0AhERGv2Avbr3wvE3x58+j T8tNKdolZZWIkdvs5kjHbF712Ntk1q76OL+BN0StjWUhcVlXkTfOayceaGRQq/wYyE4D MuDgfT5b62ds3YQLBeHSxYQLVrcge/Fg20fMWFtQET9fTbXBxmGvDD1+CTzaDEoX/5pW RAzy+bxIvPCk+OxHEOq/PLqbUl0jhyMIb9t0xCSKKyn37m3g7ia17NhiR2QQoTI+WL6b CU+/aepkmGuHf+ufrk9K9wRJmUse2CJMVUg/AxFO3mPhgQnmrNA7L/AjpndftCrb8P28 ebbg== X-Gm-Message-State: AIVw112ns0OjKJ9M0ON7ztzKrckdl2sfE4Udrk9C00xTfIIqcsQ+cL6L 9NpNydJozw6uWrOC X-Received: by 10.84.129.13 with SMTP id 13mr772576plb.467.1501751617105; Thu, 03 Aug 2017 02:13:37 -0700 (PDT) Received: from ubuntu.members.linode.com ([2400:8902::f03c:91ff:fee7:7cf1]) by smtp.gmail.com with ESMTPSA id k73sm49882463pfg.17.2017.08.03.02.13.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Aug 2017 02:13:36 -0700 (PDT) From: Xinming Hu To: Linux Wireless Cc: Kalle Valo , Brian Norris , Dmitry Torokhov , rajatja@google.com, Zhiyuan Yang , Tim Song , Cathy Luo , Ganapathi Bhat , Xinming Hu Subject: [PATCH 2/2] mwifiex: wrapper wps ie in pass through tlv Date: Thu, 3 Aug 2017 09:13:28 +0000 Message-Id: <1501751608-12829-2-git-send-email-huxinming820@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501751608-12829-1-git-send-email-huxinming820@gmail.com> References: <1501751608-12829-1-git-send-email-huxinming820@gmail.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 From: Xinming Hu This patch wrapper wps ie in pass through tlv, so that firmware could parse correctly. Signed-off-by: Xinming Hu Signed-off-by: Cathy Luo Signed-off-by: Ganapathi Bhat --- drivers/net/wireless/marvell/mwifiex/join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/join.c b/drivers/net/wireless/marvell/mwifiex/join.c index b89596c..d87aeff 100644 --- a/drivers/net/wireless/marvell/mwifiex/join.c +++ b/drivers/net/wireless/marvell/mwifiex/join.c @@ -253,7 +253,7 @@ static int mwifiex_get_common_rates(struct mwifiex_private *priv, u8 *rate1, priv->wps_ie_len, *buffer); /* Wrap the generic IE buffer with a pass through TLV type */ - ie_header.type = cpu_to_le16(TLV_TYPE_MGMT_IE); + ie_header.type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); ie_header.len = cpu_to_le16(priv->wps_ie_len); memcpy(*buffer, &ie_header, sizeof(ie_header)); *buffer += sizeof(ie_header);