From patchwork Wed Mar 26 20:03:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Merello X-Patchwork-Id: 3895111 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 1D2E19F2E8 for ; Wed, 26 Mar 2014 20:02:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D02320222 for ; Wed, 26 Mar 2014 20:02:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8A24F2021F for ; Wed, 26 Mar 2014 20:02:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756208AbaCZUCQ (ORCPT ); Wed, 26 Mar 2014 16:02:16 -0400 Received: from mail-ee0-f47.google.com ([74.125.83.47]:64289 "EHLO mail-ee0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756170AbaCZUCP (ORCPT ); Wed, 26 Mar 2014 16:02:15 -0400 Received: by mail-ee0-f47.google.com with SMTP id b15so2077964eek.34 for ; Wed, 26 Mar 2014 13:02:14 -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=VaNeodhB91hrIoxBs1Q2HpzJrRFVYxMC+UN+zKknrsE=; b=d0F0GUYDkSIE8R4aZez4ncLqwBOwpUugX7oMog85zMc9A2ylbLx5yVvgy0Rm8AZD9w 6wQcMmlj8+zn/rSWQxmbvyKgIy16yLYQRVhJjzQdXn7w5nWPUop51eCV7z3reGBqxMOZ VBOvtFvcsaa3FVn0RpDaUgEnL+R2XVpR1dk5RF2k/TtCj9Pf+RSz+Cc4VLro58LymH4V JE0utx3/O5EqY3QeyOaI2GCiJLL2X+c/pzbGAqdpQKQXSda/pBQL4cZ7HubN3uerZSNa V7p2BxyUims8Hl++uLWA9+ctpiX+bAHrxgmyKwpdW0o/n/nBMMiLzdmd8LoFnXpDg+JY X5qA== X-Received: by 10.15.35.66 with SMTP id f42mr3842202eev.93.1395864134231; Wed, 26 Mar 2014 13:02:14 -0700 (PDT) Received: from localhost.localdomain (host179-124-dynamic.6-79-r.retail.telecomitalia.it. [79.6.124.179]) by mx.google.com with ESMTPSA id t50sm49272098eev.28.2014.03.26.13.02.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Mar 2014 13:02:13 -0700 (PDT) From: Andrea Merello To: linville@tuxdriver.com Cc: andrea.merello@gmail.com, linux-wireless@vger.kernel.org, Larry.Finger@lwfinger.net, bernhard@schiffner-limbach.de, dan.carpenter@oracle.com Subject: [PATCH 16/20] rtl8180: make sure RTL818X_MSR_ENEDCA is set for rtl8187se Date: Wed, 26 Mar 2014 21:03:17 +0100 Message-Id: <1395864197-5032-1-git-send-email-andrea.merello@gmail.com> X-Mailer: git-send-email 1.8.3.2 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.2 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 MSR register for rtl8187se must always have ENEDCA flag set. Write it accordingly when updated on BSS change. Signed-off-by: Andrea Merello --- drivers/net/wireless/rtl818x/rtl8180/dev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/rtl818x/rtl8180/dev.c b/drivers/net/wireless/rtl818x/rtl8180/dev.c index 6f9da01..eb678da 100644 --- a/drivers/net/wireless/rtl818x/rtl8180/dev.c +++ b/drivers/net/wireless/rtl818x/rtl8180/dev.c @@ -1373,6 +1373,10 @@ static void rtl8180_bss_info_changed(struct ieee80211_hw *dev, reg = RTL818X_MSR_INFRA; } else reg = RTL818X_MSR_NO_LINK; + + if (priv->chip_family == RTL818X_CHIP_FAMILY_RTL8187SE) + reg |= RTL818X_MSR_ENEDCA; + rtl818x_iowrite8(priv, &priv->map->MSR, reg); }