Return-path: 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 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> (sfid-20130113_210339_147944_8E467C1D) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: There were no break statements in this switch statement so everything used the default settings. Signed-off-by: Dan Carpenter --- Static checker stuff. Untested. 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; }