From patchwork Tue Feb 18 01:10:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Merello X-Patchwork-Id: 3666401 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 0B4C49F390 for ; Tue, 18 Feb 2014 01:10:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 38E3820142 for ; Tue, 18 Feb 2014 01:10:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C7B6201F7 for ; Tue, 18 Feb 2014 01:10:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753137AbaBRBKg (ORCPT ); Mon, 17 Feb 2014 20:10:36 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]:48935 "EHLO mail-ee0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752394AbaBRBKf (ORCPT ); Mon, 17 Feb 2014 20:10:35 -0500 Received: by mail-ee0-f44.google.com with SMTP id c13so7485380eek.3 for ; Mon, 17 Feb 2014 17:10:33 -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=gY16sMCdV2hiIJHpwj0xV+POyDAi60V4mDTh5NdmF4I=; b=q/eZ4ewY0MipwCzAmWwA6Dpp3czC1VyOG02ihjPZUVvvl7ZN//Qbfkg+Hh5nogtFzc Hy5Te0VebmHKi+2daC5+nhy5hWjRs120fkZnwp7zqqi8SCeXdRLEHjs1LxXNkF/vt5i6 eWzHAun00/4YukwPMmihqiI/NZ7cGhlBNpVCijsUlX6Ggb+E0kG9V4w/L5KFwj7gWEK8 YneFG4wbO6XwBJqXE9eVur3WK1uZa79GFRasX+qG9qlAz6ZxD+1H56abLy6WXmJuqXYs 5cKDCNjQsl65Pec8UGxQk5Oi4fPZSmDOarocs3hT119w3W1xzijGCiAly5YwU7vRH3L6 5XkQ== X-Received: by 10.14.0.132 with SMTP id 4mr164313eeb.95.1392685833858; Mon, 17 Feb 2014 17:10:33 -0800 (PST) Received: from localhost.localdomain ([95.237.125.26]) by mx.google.com with ESMTPSA id j41sm63723093eeg.10.2014.02.17.17.10.32 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 17:10:33 -0800 (PST) From: Andrea Merello To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Larry.Finger@lwfinger.net, bernhard@schiffner-limbach.de, dan.carpenter@oracle.com, liuhq11@mails.tsinghua.edu.cn, andrea merello Subject: [PATCH 1/7] rtl818x: Explicitly enable contetion window Date: Tue, 18 Feb 2014 02:10:40 +0100 Message-Id: <1392685846-10116-2-git-send-email-andrea.merello@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1392685846-10116-1-git-send-email-andrea.merello@gmail.com> References: <1392685846-10116-1-git-send-email-andrea.merello@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.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 From: andrea merello Currently the contention window enable/disable HW flag is not touched by the driver. This patch explicitly set it to the correct value to make sure contention window is enabled (AFAIK contention window must be enabled in most (if not all) cases. Signed-off-by: Andrea Merello --- drivers/net/wireless/rtl818x/rtl8180/dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/rtl818x/rtl8180/dev.c b/drivers/net/wireless/rtl818x/rtl8180/dev.c index 7980ab1..470a1e3 100644 --- a/drivers/net/wireless/rtl818x/rtl8180/dev.c +++ b/drivers/net/wireless/rtl818x/rtl8180/dev.c @@ -642,6 +642,8 @@ static int rtl8180_start(struct ieee80211_hw *dev) else reg &= ~RTL818X_TX_CONF_HW_SEQNUM; + reg &= ~RTL818X_TX_CONF_DISCW; + /* different meaning, same value on both rtl8185 and rtl8180 */ reg &= ~RTL818X_TX_CONF_SAT_HWPLCP;