From patchwork Tue Mar 29 06:06:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8682471 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 81150C0553 for ; Tue, 29 Mar 2016 06:07:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A4B422012D for ; Tue, 29 Mar 2016 06:07:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC325201FE for ; Tue, 29 Mar 2016 06:07:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756042AbcC2GHF (ORCPT ); Tue, 29 Mar 2016 02:07:05 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:33880 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756033AbcC2GG6 (ORCPT ); Tue, 29 Mar 2016 02:06:58 -0400 Received: by mail-pf0-f178.google.com with SMTP id x3so6621196pfb.1 for ; Mon, 28 Mar 2016 23:06:57 -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=dUmQIbfKFyx8zrn8oEXHbsZGsZCC/0MTxsA5YaG8+17A5qx0Zw4cjOxjzYDzDmgUXY WionGfDyWy3Sk1N8ACubDv3MwsiH3LBSPLef4l5qtfExtvw/GClsJOEIPNm5Af9TWAUn 1CZkNPYgQTRE1+//Mfp3SrS9oOUzu5D5PZgxE= 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=WKhbCETn2LatjGw1i0CvWFHphGqCfHl9SbHyTd44PymAJSobQzxw5eT03kBFGOlAJN ihXMYjbFoij2Pn6DxMGN1Yhsxr0Nrfn8oHbJMjzZeNcK1W3OgjZSFI/xWnRYT8ujBleO h/EJCtQcXWrX1HXPRG+qisam6zH5C7twoclzqpU5Skd1lC3Fb59Shw7Ahh/Ff+ma9Xlk 0PTB41vPH0iaTlgFcapWDhPk4VjANGrbBs9OK09OXAZ9R+eXTXBfbTwWXhd/QaBjYJhw SbqSJz0dC3KujXwY28TyFtdjdKdo/iQ9ehMMxu3Z+zxtxuIoIIMUIYPGoOpNv5xMDHST oFEA== X-Gm-Message-State: AD7BkJL9AXT7C7efYM4SSdQ97Kbt9qdMMrA50qwUnyaSI+mvLjVWQLSBeQQLg/MqQCpIgRIC X-Received: by 10.98.73.69 with SMTP id w66mr716554pfa.106.1459231612496; Mon, 28 Mar 2016 23:06:52 -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 k88sm39878073pfj.0.2016.03.28.23.06.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Mar 2016 23:06:52 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pontus Fuchs Subject: [PATCH 13/16] wcn36xx: Track association state Date: Mon, 28 Mar 2016 23:06:30 -0700 Message-Id: <1459231593-360-14-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459231593-360-1-git-send-email-bjorn.andersson@linaro.org> References: <1459231593-360-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 */