From patchwork Thu Oct 31 06:07:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 3118811 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 593459F2B7 for ; Thu, 31 Oct 2013 06:08:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59DB2203DF for ; Thu, 31 Oct 2013 06:08:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87A3A203DC for ; Thu, 31 Oct 2013 06:08:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733Ab3JaGIa (ORCPT ); Thu, 31 Oct 2013 02:08:30 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:63736 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752431Ab3JaGIa (ORCPT ); Thu, 31 Oct 2013 02:08:30 -0400 Received: by mail-pa0-f47.google.com with SMTP id lf10so2030112pab.34 for ; Wed, 30 Oct 2013 23:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=yQ9gbqJnshtmSMg2h3ndlINejUO02qMDMeTvdTckHJw=; b=UpLfbDWRnvoMR4Ff2mHTEWMWVVeA/SiIig3Xw95S+WwQOFAjJyvei2ofYUonQNhzOI M8AUuBh54OjicQc3MSwxve66XT6Foq2H2fzDm3ax5RsDDR19jq/gP5g/X4XotfeKizlV ENB51X7zo+/TyKayOEJFY8MRbG9JG+WGwGv+I4/KKGIvmLnHdcBEM3iiQR+pax5eDcX6 KKjco8Z8F40UQwqdFbcvTjLG2/7EwR+TL++z5Tr6k+414l1L5jRnp6/bjgdNsWp4yvjD 7wCktayeSXEPw5s706FURUC56WopDF28pHI+8S+QOVFXN7EWT4SgnmGNw8FkEls6KCsQ SYmA== X-Received: by 10.66.122.40 with SMTP id lp8mr121022pab.82.1383199709897; Wed, 30 Oct 2013 23:08:29 -0700 (PDT) Received: from localhost.localdomain ([203.106.67.32]) by mx.google.com with ESMTPSA id hw10sm1628286pbc.24.2013.10.30.23.08.27 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Oct 2013 23:08:29 -0700 (PDT) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: k.eugene.e@gmail.com, linville@tuxdriver.com, wcn36xx@lists.infradead.org, Chun-Yeow Yeoh , Chun-Yeow Yeoh Subject: [PATCH] wcn36xx: enable beacon change using BSS_CHANGED_BEACON Date: Thu, 31 Oct 2013 14:07:45 +0800 Message-Id: <1383199665-18377-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 1.7.9.5 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.3 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 Enable the beacon changed using BSS_CHANGED_BEACON. This is especially useful for mesh mode. Signed-off-by: Chun-Yeow Yeoh --- drivers/net/wireless/ath/wcn36xx/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 7839b31..e64a678 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -641,7 +641,8 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, dev_kfree_skb(skb); } - if (changed & BSS_CHANGED_BEACON_ENABLED) { + if (changed & BSS_CHANGED_BEACON_ENABLED || + changed & BSS_CHANGED_BEACON) { wcn36xx_dbg(WCN36XX_DBG_MAC, "mac bss changed beacon enabled %d\n", bss_conf->enable_beacon);