From patchwork Sun Apr 3 22:16:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8735281 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 05D38C0553 for ; Sun, 3 Apr 2016 22:20:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 34F99200FE for ; Sun, 3 Apr 2016 22:20:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C08F201F5 for ; Sun, 3 Apr 2016 22:20:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754622AbcDCWTk (ORCPT ); Sun, 3 Apr 2016 18:19:40 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:34279 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753927AbcDCWRA (ORCPT ); Sun, 3 Apr 2016 18:17:00 -0400 Received: by mail-pf0-f173.google.com with SMTP id c20so21524655pfc.1 for ; Sun, 03 Apr 2016 15:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YAf9snnva94drq4nH6UfCfMcPquf71+tHv+zspvSn4s=; b=DibEfyD04LGp5UAzwdWA+TGSj8C43ffB9W5f+/R478LoZbxnrHBBEfPjh0Dym8DiWp f83GGxSv2hDkmh8SHo6PKrXHska+BK6sYQrezYtM+LY5CEPTuzrbzKtnMZ01VWbCZYnA cvr83yAqQdcX5Y3nCkGFfJdpLJino4jGSaaAg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YAf9snnva94drq4nH6UfCfMcPquf71+tHv+zspvSn4s=; b=Yi6SE/cvmOmGYaM05SdD1MYqgMpTQSf/sAc6QNnZqMlggfo5q+caeVL03xf3oB8dTF EfUKboW72OEZX9HlrWAgQIYt6lfJwg7vATdokJLW9yQklW4W7cbH9PpTBvQ96AOwD+Hu CC7Do1/5N+4ueDES1Z1OBnuHC4bSzwKSRREKTzPw8TSEWxCk2Yk1c6YICOQeyVT3K8LW 4j4v2X747tH5n4flJJt7l9I4ZOojtYpcsku2BZrHkha+fe4B9euwrrImQIDbWShAOeRj ravDzSjFvHas844Qj2fjQM/fnEIweU0eKTB+guJ5AJX90w1pxCLHgdpiPIVA/2ZXW8Pw 8fGw== X-Gm-Message-State: AD7BkJJynDk6DzHoUSsAgCrgoyXNS+FkkuyMB2WtYpA17XkC9NTX+7nwmKaMwwSNGbiEOchh X-Received: by 10.98.19.151 with SMTP id 23mr15787412pft.31.1459721820081; Sun, 03 Apr 2016 15:17:00 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id s64sm34419659pfi.77.2016.04.03.15.16.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Apr 2016 15:16:59 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: Pontus Fuchs , wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 10/15] wcn36xx: Copy all members in config_sta v1 conversion Date: Sun, 3 Apr 2016 15:16:41 -0700 Message-Id: <1459721806-11817-10-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459721806-11817-1-git-send-email-bjorn.andersson@linaro.org> References: <1459721806-11817-1-git-send-email-bjorn.andersson@linaro.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pontus Fuchs When converting to version 1 of the config_sta struct not all members where copied. This fixes the problem of multicast frames not being delivered on an encrypted network. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 7f315d098f52..ebb446272d21 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -949,17 +949,32 @@ static void wcn36xx_smd_convert_sta_to_v1(struct wcn36xx *wcn, memcpy(&v1->mac, orig->mac, ETH_ALEN); v1->aid = orig->aid; v1->type = orig->type; + v1->short_preamble_supported = orig->short_preamble_supported; v1->listen_interval = orig->listen_interval; + v1->wmm_enabled = orig->wmm_enabled; v1->ht_capable = orig->ht_capable; - + v1->tx_channel_width_set = orig->tx_channel_width_set; + v1->rifs_mode = orig->rifs_mode; + v1->lsig_txop_protection = orig->lsig_txop_protection; v1->max_ampdu_size = orig->max_ampdu_size; v1->max_ampdu_density = orig->max_ampdu_density; v1->sgi_40mhz = orig->sgi_40mhz; v1->sgi_20Mhz = orig->sgi_20Mhz; - + v1->rmf = orig->rmf; + v1->encrypt_type = orig->encrypt_type; + v1->action = orig->action; + v1->uapsd = orig->uapsd; + v1->max_sp_len = orig->max_sp_len; + v1->green_field_capable = orig->green_field_capable; + v1->mimo_ps = orig->mimo_ps; + v1->delayed_ba_support = orig->delayed_ba_support; + v1->max_ampdu_duration = orig->max_ampdu_duration; + v1->dsss_cck_mode_40mhz = orig->dsss_cck_mode_40mhz; memcpy(&v1->supported_rates, &orig->supported_rates, sizeof(orig->supported_rates)); v1->sta_index = orig->sta_index; + v1->bssid_index = orig->bssid_index; + v1->p2p = orig->p2p; } static int wcn36xx_smd_config_sta_rsp(struct wcn36xx *wcn,