From patchwork Wed May 27 10:46:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Jain X-Patchwork-Id: 6489151 X-Patchwork-Delegate: johannes@sipsolutions.net 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 371DE9F399 for ; Wed, 27 May 2015 10:46:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC35C206A0 for ; Wed, 27 May 2015 10:46:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D453B20644 for ; Wed, 27 May 2015 10:46:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751620AbbE0KqY (ORCPT ); Wed, 27 May 2015 06:46:24 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:40085 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498AbbE0KqW (ORCPT ); Wed, 27 May 2015 06:46:22 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NP002CXN8L40M40@mailout1.samsung.com> for linux-wireless@vger.kernel.org; Wed, 27 May 2015 19:46:16 +0900 (KST) Received: from epcpsbgx2.samsung.com ( [172.20.52.124]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 22.F2.24422.D70A5655; Wed, 27 May 2015 19:46:21 +0900 (KST) X-AuditID: cbfee68f-f793b6d000005f66-7e-5565a07dbd83 Received: from epmailer02 ( [203.254.219.142]) by epcpsbgx2.samsung.com (EPCPMTA) with SMTP id 75.0A.31182.B70A5655; Wed, 27 May 2015 19:46:19 +0900 (KST) Date: Wed, 27 May 2015 10:46:19 +0000 (GMT) From: Rahul Jain Subject: [PATCH] cfg80211: moving up BAND_2GHZ above BAND_5GHZ regulatory class [EDT] To: "linux-wireless@vger.kernel.org" Cc: "johannes.berg@intel.com" , =?utf-8?Q?Rafa=C5=82_Mi=C5=82ecki?= Reply-to: rahul.jain@samsung.com MIME-version: 1.0 X-MTR: 20150527104553299@rahul.jain Msgkey: 20150527104553299@rahul.jain X-EPLocale: en_US.utf-8 X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20150525084759328@rahul.jain X-ParentMTR: 20150525084759328@rahul.jain X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general Content-transfer-encoding: base64 Content-type: text/plain; charset=utf-8 MIME-version: 1.0 Message-id: <157397585.158001432723579684.JavaMail.weblogic@epmlwas02d> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMIsWRmVeSWpSXmKPExsWyRsSkRrd2QWqowdOpIhZvVtxhd2D0+LxJ LoAxissmJTUnsyy1SN8ugStj/8MXTAW7eCrm3tzK1sDYw9PFyMkhJKAqsWfpUmYQW0LAROLU xo1QtpjEhXvr2boYuYBqljJKHJp5mR2maP+z9awQzXMYJXbeTQCxWYAGHdq0DKyGTUBL4tHt ViYQW1ggVOLq5L2MILaIgKvE1I2bwRYwCxRLPP3ZwwwxR0Fi8/3vbCA2r4CgxMmZT1ggdilL rF51hRkiriIx8/wjNoi4uMTfhkdQ9/BKzGh/ClUvJzHt6xqoB6Qlzs/awAjzzOLvj6Hi/BLH bu9ggrAFJKaeOQhVoyFx9ksDVI2WxLy/V+Hqd51azgyz6/6WuVC9EhJbW56wQvyiKDGl+yHQ PRxAtqbE+l366F7hFXCX2PWylR0UnhICnRwS+zauYprAqDQLSd0sJKNmIYxCVrKAkWUVo2hq QXJBcVJ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VxBsam5ibGpta GBiam5spifP+P5cbIiSQnliSmp2aWpBaBNPHxMEp1cB44/V3NlNZG1X10msMfLs1viVZNHUu 0PjjtS3P69quHSIH7m6WPPJ33ZnZ/X8DnTtWiu9fcVO63+NP5d+NzvKnD27t2PjTKD5t/t8E FVn9h6HLQt2Lszh1J+3au/uTxM+lhUfD2EIfaj4QlqkLtlbdUZNpt7T0iUW+07299Rregv8/ fm85tX6SEktxRqKhFnNRcSIAvVKLPlcDAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, MIME_BASE64_BLANKS, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 EP-FEDC771DF4FF48A9829CB85254E29FD3 hello Joe, Rafel, Wireless Community, I have incorporated your review comments. Please find updated patch. From 30f4fb72bcb10f9f6589ea22e26e37631f07f8fe Mon Sep 17 00:00:00 2001 From: Rahul Jain Date: Mon, 25 May 2015 14:15:36 +0530 Subject: [PATCH] cfg80211: moving up BAND_2GHZ above BAND_5GHZ regulatory class Signed-off-by: Rahul Jain --- net/wireless/util.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) -- 1.7.9.5 Thanks -Rahul Jain diff --git a/net/wireless/util.c b/net/wireless/util.c index 70051ab..b1aca3e 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -1335,17 +1335,13 @@ bool ieee80211_operating_class_to_band(u8 operating_class, enum ieee80211_band *band) { switch (operating_class) { + case 81 ... 84: + *band = IEEE80211_BAND_2GHZ; + return true; case 112: - case 115 ... 127: - case 128 ... 130: + case 115 ... 130: *band = IEEE80211_BAND_5GHZ; return true; - case 81: - case 82: - case 83: - case 84: - *band = IEEE80211_BAND_2GHZ; - return true; case 180: *band = IEEE80211_BAND_60GHZ; return true;