From patchwork Fri Jan 16 14:08:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5648821 Return-Path: X-Original-To: patchwork-ath10k@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 A53D9C058D for ; Fri, 16 Jan 2015 14:10:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BEA0A201FA for ; Fri, 16 Jan 2015 14:10:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F1F58201F4 for ; Fri, 16 Jan 2015 14:10:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YC7b6-0006HO-Bl; Fri, 16 Jan 2015 14:10:00 +0000 Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YC7b4-00062N-GN for ath10k@lists.infradead.org; Fri, 16 Jan 2015 14:09:59 +0000 Received: by mail-wg0-f53.google.com with SMTP id x13so20692355wgg.12 for ; Fri, 16 Jan 2015 06:09:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=/NpOf07qJ34VyJ9K0IdKU3FGv+1ny+IlUJwEuZiCxlk=; b=DU2SFqLmd+cAK9lIj54oXV1jPq9McvKqlT6glJU7vAFQ62kjfaRoWR+08UKh0oRiXm cYr78twEUHHA4+v4ni4CozndvDdc2w4hJ7CWoZDpNmP4rD83qGbXF4qZNpRAMIY6ycwk pZ6f73NGshHYqSevBNUIlRKOwl+EHfXHTXzDk= 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; bh=/NpOf07qJ34VyJ9K0IdKU3FGv+1ny+IlUJwEuZiCxlk=; b=MJjuZLZKc8d1MOJgcB7w7IbxunuDCloaAP0AemIAgSQNbgh+lkiDZSE2rT/rxXSSsf 4EnJf+LD9j/qU8mJ8PJ9Q9XboJ0ZhaWJrfPjgn/Gx7OUGSbYER6OrkCw50AVQYfhCog+ oIwMfG/y892XTXdl56hb61h21dN/CarGB4GWV1iduz8Qbmu96UWqeEKc96RomxTLuNtg Wukr+1jGPKciZ6cFmBymAxrHxrEkhFNkfSdmunXXgQROBsj3kE7PHrbjPNYenSdc08de fd6f2cTHp3oh+dYUTCThQzHdA5p1Tl8653O9cvoxhZTZQkNusIQ/POVy5Tu4QP/TLNi/ 2CjA== X-Gm-Message-State: ALoCoQlvrxZuLu2hU5rT3SjZ9cjcyMvjjIPsl9QnnGQDkTjtzcXB5kuAUL1MvuxjwYzeJNzOkqIUgZiYp4R+vW7VtBoCJbbwm8HMohVzO2qzUwDZxG9xBS8XTL9m4JJ69pgG9AMj/UuhmNRn8aIkeLadP/L17V50D9+7jLpqLpuf8o77N0cFxIA= X-Received: by 10.180.80.167 with SMTP id s7mr6675616wix.25.1421417376313; Fri, 16 Jan 2015 06:09:36 -0800 (PST) Received: from bob.homerouter.cpe (apn-46-76-65-212.dynamic.gprs.plus.pl. [46.76.65.212]) by mx.google.com with ESMTPSA id x2sm6232439wjx.9.2015.01.16.06.09.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jan 2015 06:09:35 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: fix dtim period with beacon templates Date: Fri, 16 Jan 2015 15:08:56 +0100 Message-Id: <1421417336-19371-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150116_060958_734789_99547084 X-CRM114-Status: UNSURE ( 7.02 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-wireless@vger.kernel.org, Michal Kazior X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Firmware supporting beacon templates (i.e. wmi-tlv for qca6174) doesn't implicitly take dtim period from the template. Instead it requires vdev param to be set accordingly. This fixes dtim period being stuck at 3. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 9524bc5..99af537 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3435,7 +3435,7 @@ static void ath10k_bss_info_changed(struct ieee80211_hw *hw, arvif->vdev_id, ret); } - if (changed & BSS_CHANGED_BEACON_INFO) { + if (changed & (BSS_CHANGED_BEACON_INFO | BSS_CHANGED_BEACON)) { arvif->dtim_period = info->dtim_period; ath10k_dbg(ar, ATH10K_DBG_MAC,