From patchwork Sun Jan 13 20:03:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 1970641 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6BF0EDF280 for ; Sun, 13 Jan 2013 20:03:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756065Ab3AMUDf (ORCPT ); Sun, 13 Jan 2013 15:03:35 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:16412 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755579Ab3AMUDe (ORCPT ); Sun, 13 Jan 2013 15:03:34 -0500 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0DK35jI021339 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 13 Jan 2013 20:03:06 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0DK32VI006747 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 Jan 2013 20:03:03 GMT Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0DK31Rc002319; Sun, 13 Jan 2013 14:03:01 -0600 Received: from elgon.mountain (/41.212.103.53) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 13 Jan 2013 12:03:00 -0800 Date: Sun, 13 Jan 2013 23:03:09 +0300 From: Dan Carpenter To: Stefano Brivio Cc: "John W. Linville" , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, kernel-janitors@vger.kernel.org Subject: [patch] b43: N-PHY: fix gain in b43_nphy_get_gain_ctl_workaround_ent() Message-ID: <20130113200309.GB5907@elgon.mountain> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org There were no break statements in this switch statement so everything used the default settings. Signed-off-by: Dan Carpenter --- Static checker stuff. Untested. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/b43/tables_nphy.c b/drivers/net/wireless/b43/tables_nphy.c index 97d4e27..6a1c838 100644 --- a/drivers/net/wireless/b43/tables_nphy.c +++ b/drivers/net/wireless/b43/tables_nphy.c @@ -3259,20 +3259,28 @@ struct nphy_gain_ctl_workaround_entry *b43_nphy_get_gain_ctl_workaround_ent( switch (tr_iso) { case 0: e->cliplo_gain = 0x0062; + break; case 1: e->cliplo_gain = 0x0064; + break; case 2: e->cliplo_gain = 0x006a; + break; case 3: e->cliplo_gain = 0x106a; + break; case 4: e->cliplo_gain = 0x106c; + break; case 5: e->cliplo_gain = 0x1074; + break; case 6: e->cliplo_gain = 0x107c; + break; case 7: e->cliplo_gain = 0x207c; + break; default: e->cliplo_gain = 0x106a; }