From patchwork Mon May 26 07:39:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Chaitanya X-Patchwork-Id: 4239771 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 27C5D9F32B for ; Mon, 26 May 2014 07:39:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 521A3201BA for ; Mon, 26 May 2014 07:39:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7724C2018B for ; Mon, 26 May 2014 07:39:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751399AbaEZHjg (ORCPT ); Mon, 26 May 2014 03:39:36 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:41294 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbaEZHjg (ORCPT ); Mon, 26 May 2014 03:39:36 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so7299622pbb.36 for ; Mon, 26 May 2014 00:39:35 -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=01+Q+mH8QR5jOAkIx3mSTHgC+0zCouqbFdAJv/ejsak=; b=XGOpeYgfEYZjYhmcp09UVdfkAxWhZbW6dC+l0a0jvmH4i/o7DmK2pLus9Npja8xWF3 6mOXCacrPVN0uW4fB/mNOhrnQy4E9i5O0W3nAL3m7EnRok2ti+oOKuPKtCU0N19VlCDF YURw15fRiuL8ixXFRH05iiCdAm6c8wB/8ElvNoaS75HdrvyJRRC/lrbF2AR0lly6hr69 Fr3jmwQlr+g/A5yPY/hmivBpS8cSsbwOgwDUYg8d00clYazsGz2X/tlW75e3Ea5giHoP M9bvL9IRiJlWvf1/2wPHo9JNY2Imt6dafCMWNLPckbUW/W/9hfoM/5lEq+fZmQ1DB+dJ GfTA== X-Received: by 10.68.201.226 with SMTP id kd2mr25694424pbc.157.1401089975667; Mon, 26 May 2014 00:39:35 -0700 (PDT) Received: from chaitanya-desktop.hb.imgtec.org ([115.112.122.66]) by mx.google.com with ESMTPSA id uk1sm54380419pac.26.2014.05.26.00.39.32 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 May 2014 00:39:34 -0700 (PDT) From: chaitanya.mgit@gmail.com To: linville@tuxdriver.com, mcgrof@gmail.com Cc: wireless-regdb@lists.infradead.org, linux-wireless@vger.kernel.org, Chaitanya T K Subject: [regdb] Add support to parse 2000mW tx power Date: Mon, 26 May 2014 13:09:22 +0530 Message-Id: <1401089962-10720-1-git-send-email-chaitanya.mgit@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.4 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 CC [M] net/wireless/wext-sme.o CC [M] net/wireless/regdb.o net/wireless/regdb.c:1130:1: error: Unknown undeclared here (not in a function) net/wireless/regdb.c:1130:9: error: expected } before power make[2]: *** [net/wireless/regdb.o] Error 1 make[1]: *** [net/wireless] Error 2 make: *** [net] Error 2 Reported-By: John Walker Signed-off-by: Chaitanya T K --- net/wireless/genregdb.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/net/wireless/genregdb.awk b/net/wireless/genregdb.awk index 4119833..0f2b53a 100644 --- a/net/wireless/genregdb.awk +++ b/net/wireless/genregdb.awk @@ -74,7 +74,7 @@ function parse_reg_rule() power = 23 } else if (power == 500) { power = 27 - } else if (power == 1000) { + } else if ((power == 1000) || (power == 2000)) { power = 30 } else { print "Unknown power value in database!"