Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5811713imm; Mon, 23 Jul 2018 06:33:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfmIe9nb9kG7Y/zSPakPa9lMkenTjPHK/IbEgNRn6VdRreLRQ9eXqzta9UOvTNaKmifvM4G X-Received: by 2002:a17:902:7884:: with SMTP id q4-v6mr12868528pll.174.1532352804912; Mon, 23 Jul 2018 06:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532352804; cv=none; d=google.com; s=arc-20160816; b=nUQgj+56bGjF7QUg13nLgCiWrPb13+nfkQBTswmKRHm+o1r1U60AA8PWSowAwFXji4 upFz+/lXxNH5sn4gBh/RMa54xtwdRAeXiAekI6nGcl9M/ctZITSzqW+VFFU/ScIl91KL ug6nrlHUQn2EbYTgytzcrVerQ4Lv0Zf2DF3b/bS4oivlupibioj+bd0D2jJhObHbC4tC 9St4wthWXU7f2XbXn7mHPY9rIwK51zmS3xPWy7PgV3EPdyWM0/UBAH0YlxdnRnfYL1qA rErEcn7eylFGA73ZDYIHBwGpZ0HDrY5F14K6K1UAN88aWd7CQBQjov38wMCcOCFi7e/n hr1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=CJFL3Tjfaz4goDPyuaTSoTuKkAhldVh/wuxnng17vQU=; b=WWSgCBsxVjIINOXHvYwLObhEdFaEhelBkjiM5ULF8OH7twQKbnGK1dCSnFZxzh6eVu ISu4IY0q1dEya5PqogtqKmjjtNzsZWZxVImGpToe/cDNsx19DzP+Oa7IF+ao9i614F6E W61/iafoeU00YfyLi1jY5MYceDIqzTafKu5HUGraVwEu1M4rfRRww3HJXE1lF/lEmIui CYKBg02wfaBqhEzkB9dOU3Lr//P2Z9vlzKOq8vO87hQIgTCsJB8QnIhhBQrBI8PzRPcQ UXLTu2vnoeuvkdQtZvcZhzet+uj4eT0P5PKh8g9Vbx08f45vZ3gzswNPanRlJ+yamkKO mw7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=SRuWWUeF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 185-v6si9007891pgj.511.2018.07.23.06.33.09; Mon, 23 Jul 2018 06:33:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=SRuWWUeF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388329AbeGWOdf (ORCPT + 99 others); Mon, 23 Jul 2018 10:33:35 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:32863 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388271AbeGWOde (ORCPT ); Mon, 23 Jul 2018 10:33:34 -0400 Received: by mail-lj1-f194.google.com with SMTP id s12-v6so573201ljj.0 for ; Mon, 23 Jul 2018 06:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=globallogic.com; s=google; h=from:to:cc:subject:date:message-id; bh=CJFL3Tjfaz4goDPyuaTSoTuKkAhldVh/wuxnng17vQU=; b=SRuWWUeFZnkzIM9U/0uITU7edtRhvBYAQ3l3t/O5jb1dqn+rLM7dCslYuecIlrY4Uk JZtu5iXsRTzf2KoimVDWYzWXnLz7WB0KEAB34OVJCrAPAIGqPE7vezvT7MOyxsXsVkIf 5tG3mrC835bRggE0YGZZ5Vrr0RDGu5QGAdMf8= 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=CJFL3Tjfaz4goDPyuaTSoTuKkAhldVh/wuxnng17vQU=; b=MBZ5frluGNoWR97yf7I4vO88Vg+1vhqiIhY6nhaGLUyQ75BkVqaOEj+EHT4QAlrX4m H7FUO9KhQKAB6mbgsvj9PpdqnTNVPqo8brYVO9IBz+CAvOK9VpkVM5gOvkhC+eVv4EGr sJy6Ox5Ipyb3kBtEU/Zo+Moiyxv8NYGXlen6aMa7a4/88Jf7Kyh734dzNKsrKRooxL0X o9tR+caD1Wadg7DaNMzutpaYk8M4xDLj26MXO3N7TLaOTByknFtfAEoXdi4AZnQL0y09 cc1SFYe8iWEyqR5rli0QSmMHcQDKup5TnVIClyhKSAjNisorBUydCPRlzDdSx+GlGURL HV3Q== X-Gm-Message-State: AOUpUlG3LwoUI7whm8M3oqDemcKRsMH5LytHq6cgKT05lWhJ4o10snl+ VpdOmYmg7uQWkR6+69ZznOvNXg== X-Received: by 2002:a2e:4d51:: with SMTP id a78-v6mr8687333ljb.106.1532352736406; Mon, 23 Jul 2018 06:32:16 -0700 (PDT) Received: from roman-VirtualBox.synapse.com ([195.238.92.107]) by smtp.gmail.com with ESMTPSA id x23-v6sm1853054ljj.86.2018.07.23.06.32.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jul 2018 06:32:15 -0700 (PDT) From: roman.stratiienko@globallogic.com To: akarwar@marvell.com Cc: nishants@marvell.com, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Roman Stratiienko Subject: [PATCH] mwifiex: Fix skipped vendor specific IEs Date: Mon, 23 Jul 2018 16:31:39 +0300 Message-Id: <1532352699-3232-1-git-send-email-roman.stratiienko@globallogic.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Stratiienko Only microsoft specific IE is added by FW Let other IEs to pass from userspace Signed-off-by: Roman Stratiienko --- drivers/net/wireless/marvell/mwifiex/ie.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/ie.c b/drivers/net/wireless/marvell/mwifiex/ie.c index c488c30..c58b345 100644 --- a/drivers/net/wireless/marvell/mwifiex/ie.c +++ b/drivers/net/wireless/marvell/mwifiex/ie.c @@ -353,8 +353,16 @@ static int mwifiex_uap_parse_tail_ies(struct mwifiex_private *priv, case WLAN_EID_HT_OPERATION: case WLAN_EID_VHT_CAPABILITY: case WLAN_EID_VHT_OPERATION: - case WLAN_EID_VENDOR_SPECIFIC: break; + case WLAN_EID_VENDOR_SPECIFIC: + /* Skip only Microsoft IE that added by FW + * Let other vendor specific IE to pass + */ + if (cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT, + WLAN_OUI_TYPE_MICROSOFT_WMM, + (const u8 *)hdr, + hdr->len + sizeof(struct ieee_types_header))) + break; default: memcpy(gen_ie->ie_buffer + ie_len, hdr, hdr->len + sizeof(struct ieee_types_header)); -- 2.7.4