From patchwork Sun Apr 3 22:16:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8735171 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 97743C0553 for ; Sun, 3 Apr 2016 22:18:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4E0720145 for ; Sun, 3 Apr 2016 22:18:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DFEEE200FE for ; Sun, 3 Apr 2016 22:18:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932069AbcDCWSJ (ORCPT ); Sun, 3 Apr 2016 18:18:09 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:36135 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754409AbcDCWRG (ORCPT ); Sun, 3 Apr 2016 18:17:06 -0400 Received: by mail-pf0-f170.google.com with SMTP id e128so108557102pfe.3 for ; Sun, 03 Apr 2016 15:17:06 -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=wEZ1ufMkSlJ+Y4o1bl27GABIJv7pDbbc46SHPPs0jiM=; b=H0AD4nKAdeOsaJfO9Bgx4R7s8sHIIqgJZug0T3haU7YE/0/prToSRSrwJFvne4nIwY Sbay/ztpmh6Eqdat1nL9R+0M6mdSzJblsqRh6lpCX9rPSqT6sZh3Y4vYdHvrzI24VpXI NLQlY7bOf6/8xUpBk24JFykJ2KMvHDDUzD+v0= 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=wEZ1ufMkSlJ+Y4o1bl27GABIJv7pDbbc46SHPPs0jiM=; b=EUjpJUMEpcZPL1eH0BsPGUbZuZq2ZtEl1hx7ZI6DskCoQuMp7izDndXe5WevyX43Gc b3HOSBguCvRvUwInV/kVeKJIaiYRnzJeHH2jkibw4iWHc6N8ITNiAhV8UOQo/8maN1Xo UTeEDxue2WZ/TcbT2F/3EvNDrHdBff2+7goYyZNoCWuD1EKDaDEeJyw6Vfgd9wQ/Btjf lSFdXWMCrnIqUo8JZBuVLmv4jPo7v3cKPO/wSnRs85tEJM+e8LWQHpwWpVaMC2haMp0E juWJdIddpyP+gAYnZFOFAlsWVL4JvYyeRXUEjF2EoNE9XYvQwBJQADcNeBa773xzgRjy L7pA== X-Gm-Message-State: AD7BkJK2bZMhfeyRIxhXY9O+z/QMpdK4HOJf61eHSOJ1JGPL28Z+N876UQRvgXbWdWBTHyNe X-Received: by 10.98.72.83 with SMTP id v80mr15850129pfa.113.1459721826157; Sun, 03 Apr 2016 15:17:06 -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.17.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Apr 2016 15:17:05 -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 13/15] wcn36xx: Track association state Date: Sun, 3 Apr 2016 15:16:44 -0700 Message-Id: <1459721806-11817-13-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=ham 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 Knowing the association state is needed for mc filtering. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/main.c | 2 ++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index f9c77de94583..253cece1b660 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -655,6 +655,7 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, vif->addr, bss_conf->aid); + vif_priv->sta_assoc = true; rcu_read_lock(); sta = ieee80211_find_sta(vif, bss_conf->bssid); if (!sta) { @@ -686,6 +687,7 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, bss_conf->bssid, vif->addr, bss_conf->aid); + vif_priv->sta_assoc = false; wcn36xx_smd_set_link_st(wcn, bss_conf->bssid, vif->addr, diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 54000db0af1a..7433d67a5929 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -128,6 +128,7 @@ struct wcn36xx_vif { u8 dtim_period; enum ani_ed_type encrypt_type; bool is_joining; + bool sta_assoc; struct wcn36xx_hal_mac_ssid ssid; /* Power management */