mwifiex: wrapper wps ie in pass through tlv
authorXinming Hu <huxm@marvell.com>
Thu, 3 Aug 2017 09:13:28 +0000 (09:13 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 8 Aug 2017 11:48:47 +0000 (14:48 +0300)
This patch wrapper wps ie in pass through tlv, so that
firmware could parse correctly.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/join.c

index b89596c18b41a32074c037893f62139c4edb4772..d87aeff70cefb265c07131335a0bed6792794ff1 100644 (file)
@@ -253,7 +253,7 @@ mwifiex_cmd_append_wps_ie(struct mwifiex_private *priv, u8 **buffer)
                            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);