From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from hub022-nj-6.exch022.serverdata.net ([206.225.164.189]:35270 "EHLO HUB022-nj-6.exch022.serverdata.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752000Ab2JODr7 (ORCPT ); Sun, 14 Oct 2012 23:47:59 -0400 Message-ID: <507B8766.9010501@posedge.com> (sfid-20121015_054803_921712_B1F19ED4) Date: Mon, 15 Oct 2012 09:17:50 +0530 From: Mahesh Palivela MIME-Version: 1.0 To: Johannes Berg CC: "linux-wireless@vger.kernel.org" , "linville@tuxdriver.com" , Stanislaw Gruszka , "Luis R. Rodriguez" Subject: Re: [RFC v2] cfg80211: VHT regulatory References: <5046FB3D.6090803@posedge.com> <1346852356.4364.9.camel@jlt4.sipsolutions.net> <50481C2E.5040303@posedge.com> <1346925298.5469.4.camel@jlt4.sipsolutions.net> <50489165.1080902@posedge.com> <1347019809.4256.21.camel@jlt4.sipsolutions.net> <50655B36.5060500@posedge.com> <1348828789.13298.5.camel@jlt4.sipsolutions.net> (sfid-20120928_123917_337659_1AA6C9C6) <1348828963.13298.8.camel@jlt4.sipsolutions.net> <5065DFAD.2070305@posedge.com> <1349860308.4683.47.camel@jlt4.sipsolutions.net> In-Reply-To: <1349860308.4683.47.camel@jlt4.sipsolutions.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 10/10/2012 02:41 PM, Johannes Berg wrote: >> >> we need "channel starting frequency" anyways for calculating center >> freq. so we can use same constant for computing primary chan freq as >> well. why switch to prim_chan_offset? > > I think it'd be easier for drivers, since they typically seem to use > that to specify the control channel. If we give the frequency, they'll > have to calculate back to offset. The offset is also used in IEs etc., > so I think overall that would simplify things. Offset means we specify one of -70, -50, -30, -10, +10, +30, +50, +70 for 80/160 MHz BW from center freq. For ex. 80 MHz BW of channel 36, 40, 44 and 48 center freq is 42. If control chan 36, then we specify offset -30. Is that what we want? VHT IEs doesn't use offset anywhere. I am not sure why/where drivers use offset values.