From patchwork Fri Jul 13 17:37:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Stratiienko X-Patchwork-Id: 10523929 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 6DF70602A0 for ; Fri, 13 Jul 2018 17:39:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E66E2957F for ; Fri, 13 Jul 2018 17:39:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50A9D29CE1; Fri, 13 Jul 2018 17:39: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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 02B942957F for ; Fri, 13 Jul 2018 17:39:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731500AbeGMRzO (ORCPT ); Fri, 13 Jul 2018 13:55:14 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:39201 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730017AbeGMRzN (ORCPT ); Fri, 13 Jul 2018 13:55:13 -0400 Received: by mail-lf0-f68.google.com with SMTP id a134-v6so27812353lfe.6 for ; Fri, 13 Jul 2018 10:39:36 -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=DFhQUbFxEdNGoFRXT8h8nMfsbZi20AIWXVxtim+5c3V+jFv0B10aT+k/+FTQ8F97hJ YUFiJKec6ueI0T9l++SzenKcVEKlrkkcm/i8ukIKPveLYo7ALxbDq+p9t7T86sBokAGt RuNQbsN+ipTkRdoh/I5kPxQMQUCipXObdl1TA= 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=oOo6WE7HAWNykzZe8qPWthM2i/ESNh51Dk15q9Az3WsGSYzm/RBQu/2pWkm06xRqpK tC1bsGtF8l+53kdViPpIJ3yuPaEUVYbLQs+WOvO7cs7PrN6uvID2UYosczAqLdyBoRcq jHZuu5P3/0nmaIAxeTZlItHzEu4yDrwuEyiNRg+tNTAj+WivEaQJ+4hPlUH2B84vPs6u 8ExxrubWMqrjUM04Bwh2xlbKT5QpyjzWQXp7b48pzXJwna6ORg4feJ/roUc0Y/wADiqS j2037wlg+G8Y1ZQ7NYinh2ApjeKnA4ZgUn8g5brbQlx0V8sVTlh0rDLtlj3sTqER88Qj ojAQ== X-Gm-Message-State: AOUpUlFk3cOM6KJH/nhi73Rb/4LrC+GV5oCRJTPFKBFRhCmLsbKoKkCV BO3lW0UWFZsG3CEjDNM1nLHwKA== X-Google-Smtp-Source: AAOMgpeEegsiNJeg2V4yGGGZRFvrGtoWl8UzxH0eS0+wHLrs/ntp/eu2qLFuC3L10W2t1/blspFAzA== X-Received: by 2002:a19:e119:: with SMTP id y25-v6mr6040352lfg.3.1531503575942; Fri, 13 Jul 2018 10:39:35 -0700 (PDT) Received: from roman-VirtualBox.synapse.com ([195.238.92.107]) by smtp.gmail.com with ESMTPSA id j12-v6sm6973662lfg.42.2018.07.13.10.39.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Jul 2018 10:39:35 -0700 (PDT) From: roman.stratiienko@globallogic.com To: akarwar@marvell.com Cc: 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: Fri, 13 Jul 2018 20:37:33 +0300 Message-Id: <1531503453-27343-1-git-send-email-roman.stratiienko@globallogic.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: 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));