From patchwork Wed Feb 12 19:04:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Krasnikov X-Patchwork-Id: 3640101 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 290D7BF13A for ; Wed, 12 Feb 2014 19:05:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D84F20203 for ; Wed, 12 Feb 2014 19:05:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8107D2020A for ; Wed, 12 Feb 2014 19:05:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753998AbaBLTFx (ORCPT ); Wed, 12 Feb 2014 14:05:53 -0500 Received: from mail-we0-f179.google.com ([74.125.82.179]:38065 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753769AbaBLTFK (ORCPT ); Wed, 12 Feb 2014 14:05:10 -0500 Received: by mail-we0-f179.google.com with SMTP id q58so6343179wes.38 for ; Wed, 12 Feb 2014 11:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QBe6YdIP+p8ymOoz5f+Wk0Gt9uAqXYt6dk1SVGfJK2w=; b=gAvAYjkC++3FYP4qwLU2GccaNFEZoL63khYT7HZkpcsw7gYfixG17lg6VfWcnGa/gR k1O0k5yoobG5ZkfrYOjevJRpp886RsADWhnQhRgJidZcRGx7H7pBYcrVioIzr8f1l4hc EPIPR7gBuiZcihka0r2V/lCR2y9FiJBcrOu0BkjhrptS3bexYu7BUliP5z+ZIO/qva8s tIaAPaDVDCOsPE6ZAFGvlyWlGJWC1YXHTxjPGq1+V+aEJYLY0qvz0co1uKmjB4+ZVXlT FluSy4zDZTSShKBp5hX4AtjMTq9bShN57nrsD/A0LlT4aj/c39j+FExZySoyHFMQ0ycg 5gDQ== X-Received: by 10.180.38.7 with SMTP id c7mr3425917wik.0.1392231909738; Wed, 12 Feb 2014 11:05:09 -0800 (PST) Received: from localhost.localdomain (cpc64773-cmbg15-2-0-cust171.5-4.cable.virginmedia.com. [86.9.84.172]) by mx.google.com with ESMTPSA id fm3sm7876900wib.8.2014.02.12.11.05.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 11:05:08 -0800 (PST) From: Eugene Krasnikov To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Pontus Fuchs Subject: [PATCH 9/9] wcn36xx: Update dtim period before starting BSS Date: Wed, 12 Feb 2014 19:04:48 +0000 Message-Id: <1392231888-2191-9-git-send-email-k.eugene.e@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1392231888-2191-1-git-send-email-k.eugene.e@gmail.com> References: <1392231888-2191-1-git-send-email-k.eugene.e@gmail.com> 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.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 The dtim period sent to FW was 0 because the dtim period was never set. This caused an incorrect dtim count to be sent in beacons. Signed-off-by: Pontus Fuchs --- drivers/net/wireless/ath/wcn36xx/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index dca21ee..4ab5370 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -708,6 +708,7 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, bss_conf->enable_beacon); if (bss_conf->enable_beacon) { + vif_priv->dtim_period = bss_conf->dtim_period; vif_priv->bss_index = 0xff; wcn36xx_smd_config_bss(wcn, vif, NULL, vif->addr, false);