From patchwork Tue Apr 19 05:00:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8876611 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 BF177BF29F for ; Tue, 19 Apr 2016 05:01:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A2E0A20204 for ; Tue, 19 Apr 2016 05:01:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B36A22017D for ; Tue, 19 Apr 2016 05:01:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752600AbcDSFBf (ORCPT ); Tue, 19 Apr 2016 01:01:35 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:33764 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752568AbcDSFBZ (ORCPT ); Tue, 19 Apr 2016 01:01:25 -0400 Received: by mail-pf0-f175.google.com with SMTP id 184so2751022pff.0 for ; Mon, 18 Apr 2016 22:01:24 -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=Cpz384DbvcHXL/dLyjdKbAIcL3+JlVqasfI6fkihOwhMJQvkjiZJkcm6csTpfMr55b YkQQcUz+N54nhgQrWMDdUqOTCbVzY5AHyl5/eFq42vR91BENrah8hxTcN84yD/pRvtXo iYPMWFQFmj6QYu/9Q6z32vSxHaqLa5+yDNrvg= 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=CbDEimS0uSZaoXgiBc2LZoCW2+B7uY7l/NZ752qid/DIxpO+iOHUgrwfm4iqBEYtIh XV6wFN2+mFfvak7WTcgy51hoBazwlEauyuMXDK2U/cLxCwJVsqm6vR/738qXYOI7H7Zw +kclskiOiE4Dlq3wO9z3DK2wRW/8R16BeLwDfdTCyMTRWJDEJyhD8FG55Bgw7RD4oYCZ soTJKZo+L+m9U4QF6UH/fG/lTo8pEfuOJ/kWEMvT0oBUV2w/jrQwpNvSpPOVAWx8MaIH +7GibyKSttcT7eUHpqldVwtRkrOkq9UHMf8ZnsJiODrRs3vt0oovYBTQ+u0NYbtROR4o 8sIw== X-Gm-Message-State: AOPr4FXpd5X9pdFEb5Ub8OZpXtPfzOQuPhCXn+sYa9gYPVwDhqqAEktc+3re1exS9E0meM6/ X-Received: by 10.98.68.86 with SMTP id r83mr1272823pfa.137.1461042074392; Mon, 18 Apr 2016 22:01:14 -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 kh2sm20274686pad.9.2016.04.18.22.01.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Apr 2016 22:01:13 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: Pontus Fuchs , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 13/18] wcn36xx: Track association state Date: Mon, 18 Apr 2016 22:00:51 -0700 Message-Id: <1461042056-10607-14-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1461042056-10607-1-git-send-email-bjorn.andersson@linaro.org> References: <1461042056-10607-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 */