* [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-01 12:04 At Santos 2010-10-08 9:46 ` At Santos 0 siblings, 1 reply; 29+ messages in thread From: At Santos @ 2010-10-01 12:04 UTC (permalink / raw) To: ath9k-devel Hi, I have a couple of questions regarding setting txpower. I noticed that the new version of iw (0.9.21) has the option to set txpower but I couldn't get it to work for fixed/limit. $ sudo iw wlan0 set txpower fixed 20 command failed: Operation not supported (-95) Should I still be using iwconfig to set txpower? If so, I wanted to know the granularity of the txpower option. Using iwconfig wlan0 shows txpower to nearest dBm - is this rounding just for display purposes? or is the txpower only actually set to whole numbers of dBm even when entering values in mW? Regards Atsan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101001/95a045a4/attachment.htm ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-01 12:04 [ath9k-devel] trying to set tx power (using txpower option) At Santos @ 2010-10-08 9:46 ` At Santos 2010-10-08 11:12 ` Peter Stuge 0 siblings, 1 reply; 29+ messages in thread From: At Santos @ 2010-10-08 9:46 UTC (permalink / raw) To: ath9k-devel Hi, Still waiting for some help - how do I set the tx power? Regards Atsan From: atsan@hotmail.co.uk To: ath9k-devel at lists.ath9k.org Date: Fri, 1 Oct 2010 13:04:43 +0100 Subject: [ath9k-devel] trying to set tx power (using txpower option) Hi, I have a couple of questions regarding setting txpower. I noticed that the new version of iw (0.9.21) has the option to set txpower but I couldn't get it to work for fixed/limit. $ sudo iw wlan0 set txpower fixed 20 command failed: Operation not supported (-95) Should I still be using iwconfig to set txpower? If so, I wanted to know the granularity of the txpower option. Using iwconfig wlan0 shows txpower to nearest dBm - is this rounding just for display purposes? or is the txpower only actually set to whole numbers of dBm even when entering values in mW? Regards Atsan _______________________________________________ ath9k-devel mailing list ath9k-devel at lists.ath9k.org https://lists.ath9k.org/mailman/listinfo/ath9k-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101008/7645ed2c/attachment.htm ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 9:46 ` At Santos @ 2010-10-08 11:12 ` Peter Stuge 2010-10-08 15:27 ` Luis R. Rodriguez 0 siblings, 1 reply; 29+ messages in thread From: Peter Stuge @ 2010-10-08 11:12 UTC (permalink / raw) To: ath9k-devel At Santos wrote: > Still waiting for some help - how do I set the tx power? I think you'll have to keep waiting. ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 11:12 ` Peter Stuge @ 2010-10-08 15:27 ` Luis R. Rodriguez 2010-10-08 16:23 ` At Santos 0 siblings, 1 reply; 29+ messages in thread From: Luis R. Rodriguez @ 2010-10-08 15:27 UTC (permalink / raw) To: ath9k-devel On Fri, Oct 8, 2010 at 4:12 AM, Peter Stuge <peter@stuge.se> wrote: > At Santos wrote: >> Still waiting for some help - how do I set the tx power? > > I think you'll have to keep waiting. > > From the lack of response I would guess that it is simply not > possible with the driver at this point. > > As a side note, no, iwconfig should not be used for anything anymore. Actually, you can set tx power with iw now: http://wireless.kernel.org/en/users/Documentation/iw#Setting_TX_power I will note you will need 2.6.36, or compat-wireless-2.6.36, otherwise you have to use iwconfig, setting txpower with nl80211 was only added as of 2.6.36. Luis ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 15:27 ` Luis R. Rodriguez @ 2010-10-08 16:23 ` At Santos 2010-10-08 16:45 ` Luis R. Rodriguez 0 siblings, 1 reply; 29+ messages in thread From: At Santos @ 2010-10-08 16:23 UTC (permalink / raw) To: ath9k-devel > Actually, you can set tx power with iw now: > > http://wireless.kernel.org/en/users/Documentation/iw#Setting_TX_power > > I will note you will need 2.6.36, or compat-wireless-2.6.36, otherwise > you have to use iwconfig, setting txpower with nl80211 was only added > as of 2.6.36. > > Luis Thanks for the response. I'm running with compat-wireless-2.6.36-rc3-1 and I'm finding that iw doesn't work with fixed or limit: $ sudo iw wlan0 set txpower fixed 20 command failed: Operation not supported (-95) So it seems it's broken at the moment. To where should I report the bug? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101008/7f31f39b/attachment.htm ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 16:23 ` At Santos @ 2010-10-08 16:45 ` Luis R. Rodriguez 0 siblings, 0 replies; 29+ messages in thread From: Luis R. Rodriguez @ 2010-10-08 16:45 UTC (permalink / raw) To: ath9k-devel On Fri, Oct 8, 2010 at 9:23 AM, At Santos <atsan@hotmail.co.uk> wrote: > > >> Actually, you can set tx power with iw now: >> >> http://wireless.kernel.org/en/users/Documentation/iw#Setting_TX_power >> >> I will note you will need 2.6.36, or compat-wireless-2.6.36, otherwise >> you have to use iwconfig, setting txpower with nl80211 was only added >> as of 2.6.36. >> >> Luis > > Thanks for the response. > > I'm running with compat-wireless-2.6.36-rc3-1 and I'm finding that iw > doesn't work with fixed or limit: > > $ sudo iw wlan0 set txpower fixed 20 > command failed: Operation not supported (-95) > > So it seems it's broken at the moment. > To where should I report the bug? You can use bugzilla.kernel.org please report it there and we can fix it. I can't look into right now though as I'm looking into another issue. If someone else has cycles it would be appreciated. Luis ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 16:45 ` Luis R. Rodriguez 0 siblings, 0 replies; 29+ messages in thread From: Luis R. Rodriguez @ 2010-10-08 16:45 UTC (permalink / raw) To: At Santos; +Cc: ath9k, linux-wireless On Fri, Oct 8, 2010 at 9:23 AM, At Santos <atsan@hotmail.co.uk> wrote: > > >> Actually, you can set tx power with iw now: >> >> http://wireless.kernel.org/en/users/Documentation/iw#Setting_TX_power >> >> I will note you will need 2.6.36, or compat-wireless-2.6.36, otherwise >> you have to use iwconfig, setting txpower with nl80211 was only added >> as of 2.6.36. >> >> Luis > > Thanks for the response. > > I'm running with compat-wireless-2.6.36-rc3-1 and I'm finding that iw > doesn't work with fixed or limit: > > $ sudo iw wlan0 set txpower fixed 20 > command failed: Operation not supported (-95) > > So it seems it's broken at the moment. > To where should I report the bug? You can use bugzilla.kernel.org please report it there and we can fix it. I can't look into right now though as I'm looking into another issue. If someone else has cycles it would be appreciated. Luis ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 16:45 ` Luis R. Rodriguez @ 2010-10-08 16:48 ` Ben Greear -1 siblings, 0 replies; 29+ messages in thread From: Ben Greear @ 2010-10-08 16:48 UTC (permalink / raw) To: ath9k-devel On 10/08/2010 09:45 AM, Luis R. Rodriguez wrote: > On Fri, Oct 8, 2010 at 9:23 AM, At Santos<atsan@hotmail.co.uk> wrote: >> >> >>> Actually, you can set tx power with iw now: >>> >>> http://wireless.kernel.org/en/users/Documentation/iw#Setting_TX_power >>> >>> I will note you will need 2.6.36, or compat-wireless-2.6.36, otherwise >>> you have to use iwconfig, setting txpower with nl80211 was only added >>> as of 2.6.36. >>> >>> Luis >> >> Thanks for the response. >> >> I'm running with compat-wireless-2.6.36-rc3-1 and I'm finding that iw >> doesn't work with fixed or limit: >> >> $ sudo iw wlan0 set txpower fixed 20 >> command failed: Operation not supported (-95) >> >> So it seems it's broken at the moment. >> To where should I report the bug? > > You can use bugzilla.kernel.org please report it there and we can fix > it. I can't look into right now though as I'm looking into another > issue. If someone else has cycles it would be appreciated. I might be able to work on this, in wireless-testing tree at least. Thanks, Ben > > Luis > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo at vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 16:48 ` Ben Greear 0 siblings, 0 replies; 29+ messages in thread From: Ben Greear @ 2010-10-08 16:48 UTC (permalink / raw) To: Luis R. Rodriguez; +Cc: At Santos, ath9k, linux-wireless On 10/08/2010 09:45 AM, Luis R. Rodriguez wrote: > On Fri, Oct 8, 2010 at 9:23 AM, At Santos<atsan@hotmail.co.uk> wrote: >> >> >>> Actually, you can set tx power with iw now: >>> >>> http://wireless.kernel.org/en/users/Documentation/iw#Setting_TX_power >>> >>> I will note you will need 2.6.36, or compat-wireless-2.6.36, otherwise >>> you have to use iwconfig, setting txpower with nl80211 was only added >>> as of 2.6.36. >>> >>> Luis >> >> Thanks for the response. >> >> I'm running with compat-wireless-2.6.36-rc3-1 and I'm finding that iw >> doesn't work with fixed or limit: >> >> $ sudo iw wlan0 set txpower fixed 20 >> command failed: Operation not supported (-95) >> >> So it seems it's broken at the moment. >> To where should I report the bug? > > You can use bugzilla.kernel.org please report it there and we can fix > it. I can't look into right now though as I'm looking into another > issue. If someone else has cycles it would be appreciated. I might be able to work on this, in wireless-testing tree at least. Thanks, Ben > > Luis > -- > 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 -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 16:48 ` Ben Greear @ 2010-10-08 16:52 ` Luis R. Rodriguez -1 siblings, 0 replies; 29+ messages in thread From: Luis R. Rodriguez @ 2010-10-08 16:52 UTC (permalink / raw) To: ath9k-devel On Fri, Oct 08, 2010 at 09:48:48AM -0700, Ben Greear wrote: > On 10/08/2010 09:45 AM, Luis R. Rodriguez wrote: > > On Fri, Oct 8, 2010 at 9:23 AM, At Santos<atsan@hotmail.co.uk> wrote: > >> > >> > >>> Actually, you can set tx power with iw now: > >>> > >>> http://wireless.kernel.org/en/users/Documentation/iw#Setting_TX_power > >>> > >>> I will note you will need 2.6.36, or compat-wireless-2.6.36, otherwise > >>> you have to use iwconfig, setting txpower with nl80211 was only added > >>> as of 2.6.36. > >>> > >>> Luis > >> > >> Thanks for the response. > >> > >> I'm running with compat-wireless-2.6.36-rc3-1 and I'm finding that iw > >> doesn't work with fixed or limit: > >> > >> $ sudo iw wlan0 set txpower fixed 20 > >> command failed: Operation not supported (-95) > >> > >> So it seems it's broken at the moment. > >> To where should I report the bug? > > > > You can use bugzilla.kernel.org please report it there and we can fix > > it. I can't look into right now though as I'm looking into another > > issue. If someone else has cycles it would be appreciated. > > I might be able to work on this, awesome, thanks! > in wireless-testing tree at least. All development is assumed to take places on wireless-testing.git anyway, and to send a fix for older kernels we first must address it there so indeed its always the right place to do development, even for stable. Luis ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 16:52 ` Luis R. Rodriguez 0 siblings, 0 replies; 29+ messages in thread From: Luis R. Rodriguez @ 2010-10-08 16:52 UTC (permalink / raw) To: Ben Greear; +Cc: Luis R. Rodriguez, ath9k, linux-wireless On Fri, Oct 08, 2010 at 09:48:48AM -0700, Ben Greear wrote: > On 10/08/2010 09:45 AM, Luis R. Rodriguez wrote: > > On Fri, Oct 8, 2010 at 9:23 AM, At Santos<atsan@hotmail.co.uk> wrote: > >> > >> > >>> Actually, you can set tx power with iw now: > >>> > >>> http://wireless.kernel.org/en/users/Documentation/iw#Setting_TX_power > >>> > >>> I will note you will need 2.6.36, or compat-wireless-2.6.36, otherwise > >>> you have to use iwconfig, setting txpower with nl80211 was only added > >>> as of 2.6.36. > >>> > >>> Luis > >> > >> Thanks for the response. > >> > >> I'm running with compat-wireless-2.6.36-rc3-1 and I'm finding that iw > >> doesn't work with fixed or limit: > >> > >> $ sudo iw wlan0 set txpower fixed 20 > >> command failed: Operation not supported (-95) > >> > >> So it seems it's broken at the moment. > >> To where should I report the bug? > > > > You can use bugzilla.kernel.org please report it there and we can fix > > it. I can't look into right now though as I'm looking into another > > issue. If someone else has cycles it would be appreciated. > > I might be able to work on this, awesome, thanks! > in wireless-testing tree at least. All development is assumed to take places on wireless-testing.git anyway, and to send a fix for older kernels we first must address it there so indeed its always the right place to do development, even for stable. Luis ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 16:52 ` Luis R. Rodriguez @ 2010-10-08 17:07 ` Ben Greear -1 siblings, 0 replies; 29+ messages in thread From: Ben Greear @ 2010-10-08 17:07 UTC (permalink / raw) To: ath9k-devel On 10/08/2010 09:52 AM, Luis R. Rodriguez wrote: > On Fri, Oct 08, 2010 at 09:48:48AM -0700, Ben Greear wrote: >>> You can use bugzilla.kernel.org please report it there and we can fix >>> it. I can't look into right now though as I'm looking into another >>> issue. If someone else has cycles it would be appreciated. >> >> I might be able to work on this, > > awesome, thanks! > >> in wireless-testing tree at least. > > All development is assumed to take places on wireless-testing.git anyway, and > to send a fix for older kernels we first must address it there so indeed > its always the right place to do development, even for stable. This doesn't seem to be an ath9k issue. Well, the command fails because of this check (mbm is 20 in his case) cfg.c: case NL80211_TX_POWER_FIXED: if (mbm < 0 || (mbm % 100)) return -EOPNOTSUPP; That mbm % 100 looks quite strange to me..any idea what that is supposed to accomplish? Thanks, Ben -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 17:07 ` Ben Greear 0 siblings, 0 replies; 29+ messages in thread From: Ben Greear @ 2010-10-08 17:07 UTC (permalink / raw) To: Luis R. Rodriguez; +Cc: Luis R. Rodriguez, ath9k, linux-wireless On 10/08/2010 09:52 AM, Luis R. Rodriguez wrote: > On Fri, Oct 08, 2010 at 09:48:48AM -0700, Ben Greear wrote: >>> You can use bugzilla.kernel.org please report it there and we can fix >>> it. I can't look into right now though as I'm looking into another >>> issue. If someone else has cycles it would be appreciated. >> >> I might be able to work on this, > > awesome, thanks! > >> in wireless-testing tree at least. > > All development is assumed to take places on wireless-testing.git anyway, and > to send a fix for older kernels we first must address it there so indeed > its always the right place to do development, even for stable. This doesn't seem to be an ath9k issue. Well, the command fails because of this check (mbm is 20 in his case) cfg.c: case NL80211_TX_POWER_FIXED: if (mbm < 0 || (mbm % 100)) return -EOPNOTSUPP; That mbm % 100 looks quite strange to me..any idea what that is supposed to accomplish? Thanks, Ben -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 17:07 ` Ben Greear @ 2010-10-08 17:12 ` Johannes Berg -1 siblings, 0 replies; 29+ messages in thread From: Johannes Berg @ 2010-10-08 17:12 UTC (permalink / raw) To: ath9k-devel On Fri, 2010-10-08 at 10:07 -0700, Ben Greear wrote: > Well, the command fails because of this check (mbm is 20 in his case) > cfg.c: > case NL80211_TX_POWER_FIXED: > if (mbm < 0 || (mbm % 100)) > return -EOPNOTSUPP; > > That mbm % 100 looks quite strange to me..any idea what that is supposed to > accomplish? There's a later division by 100 to go from mBm to dBm ... I think you want 2000, not 20. johannes ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 17:12 ` Johannes Berg 0 siblings, 0 replies; 29+ messages in thread From: Johannes Berg @ 2010-10-08 17:12 UTC (permalink / raw) To: Ben Greear; +Cc: Luis R. Rodriguez, Luis R. Rodriguez, ath9k, linux-wireless On Fri, 2010-10-08 at 10:07 -0700, Ben Greear wrote: > Well, the command fails because of this check (mbm is 20 in his case) > cfg.c: > case NL80211_TX_POWER_FIXED: > if (mbm < 0 || (mbm % 100)) > return -EOPNOTSUPP; > > That mbm % 100 looks quite strange to me..any idea what that is supposed to > accomplish? There's a later division by 100 to go from mBm to dBm ... I think you want 2000, not 20. johannes ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 17:12 ` Johannes Berg @ 2010-10-08 17:24 ` Ben Greear -1 siblings, 0 replies; 29+ messages in thread From: Ben Greear @ 2010-10-08 17:24 UTC (permalink / raw) To: ath9k-devel On 10/08/2010 10:12 AM, Johannes Berg wrote: > On Fri, 2010-10-08 at 10:07 -0700, Ben Greear wrote: > >> Well, the command fails because of this check (mbm is 20 in his case) >> cfg.c: >> case NL80211_TX_POWER_FIXED: >> if (mbm< 0 || (mbm % 100)) >> return -EOPNOTSUPP; >> >> That mbm % 100 looks quite strange to me..any idea what that is supposed to >> accomplish? > > There's a later division by 100 to go from mBm to dBm ... I think you > want 2000, not 20. Well, it's documented in iw to be 'mBm', though I surely wouldn't have known what that stood for (nothing useful shows up on google for 'mBm units'). Thanks, Ben > > johannes -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 17:24 ` Ben Greear 0 siblings, 0 replies; 29+ messages in thread From: Ben Greear @ 2010-10-08 17:24 UTC (permalink / raw) To: Johannes Berg; +Cc: Luis R. Rodriguez, Luis R. Rodriguez, ath9k, linux-wireless On 10/08/2010 10:12 AM, Johannes Berg wrote: > On Fri, 2010-10-08 at 10:07 -0700, Ben Greear wrote: > >> Well, the command fails because of this check (mbm is 20 in his case) >> cfg.c: >> case NL80211_TX_POWER_FIXED: >> if (mbm< 0 || (mbm % 100)) >> return -EOPNOTSUPP; >> >> That mbm % 100 looks quite strange to me..any idea what that is supposed to >> accomplish? > > There's a later division by 100 to go from mBm to dBm ... I think you > want 2000, not 20. Well, it's documented in iw to be 'mBm', though I surely wouldn't have known what that stood for (nothing useful shows up on google for 'mBm units'). Thanks, Ben > > johannes -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 17:24 ` Ben Greear @ 2010-10-08 17:28 ` Johannes Berg -1 siblings, 0 replies; 29+ messages in thread From: Johannes Berg @ 2010-10-08 17:28 UTC (permalink / raw) To: ath9k-devel On Fri, 2010-10-08 at 10:24 -0700, Ben Greear wrote: > > There's a later division by 100 to go from mBm to dBm ... I think you > > want 2000, not 20. > > Well, it's documented in iw to be 'mBm', though I surely wouldn't have known > what that stood for (nothing useful shows up on google for 'mBm units'). Suck. I don't even know why we did that in iw though, couldn't we have used dBm floats? johannes ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 17:28 ` Johannes Berg 0 siblings, 0 replies; 29+ messages in thread From: Johannes Berg @ 2010-10-08 17:28 UTC (permalink / raw) To: Ben Greear; +Cc: Luis R. Rodriguez, Luis R. Rodriguez, ath9k, linux-wireless On Fri, 2010-10-08 at 10:24 -0700, Ben Greear wrote: > > There's a later division by 100 to go from mBm to dBm ... I think you > > want 2000, not 20. > > Well, it's documented in iw to be 'mBm', though I surely wouldn't have known > what that stood for (nothing useful shows up on google for 'mBm units'). Suck. I don't even know why we did that in iw though, couldn't we have used dBm floats? johannes ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 17:28 ` Johannes Berg @ 2010-10-08 17:38 ` Ben Greear -1 siblings, 0 replies; 29+ messages in thread From: Ben Greear @ 2010-10-08 17:38 UTC (permalink / raw) To: ath9k-devel On 10/08/2010 10:28 AM, Johannes Berg wrote: > On Fri, 2010-10-08 at 10:24 -0700, Ben Greear wrote: > >>> There's a later division by 100 to go from mBm to dBm ... I think you >>> want 2000, not 20. >> >> Well, it's documented in iw to be 'mBm', though I surely wouldn't have known >> what that stood for (nothing useful shows up on google for 'mBm units'). > > Suck. I don't even know why we did that in iw though, couldn't we have > used dBm floats? Looks like this iw change has been out there a while. Maybe change iw: * If value is < 100, assume it's dBm and convert for user. * Warn them? * If it's a float, convert to dBm for user. Otherwise, leave it as is. For what it's worth, 'iwconfig' works as is (using dBm units). Thanks, Ben > > johannes -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 17:38 ` Ben Greear 0 siblings, 0 replies; 29+ messages in thread From: Ben Greear @ 2010-10-08 17:38 UTC (permalink / raw) To: Johannes Berg; +Cc: Luis R. Rodriguez, Luis R. Rodriguez, ath9k, linux-wireless On 10/08/2010 10:28 AM, Johannes Berg wrote: > On Fri, 2010-10-08 at 10:24 -0700, Ben Greear wrote: > >>> There's a later division by 100 to go from mBm to dBm ... I think you >>> want 2000, not 20. >> >> Well, it's documented in iw to be 'mBm', though I surely wouldn't have known >> what that stood for (nothing useful shows up on google for 'mBm units'). > > Suck. I don't even know why we did that in iw though, couldn't we have > used dBm floats? Looks like this iw change has been out there a while. Maybe change iw: * If value is < 100, assume it's dBm and convert for user. * Warn them? * If it's a float, convert to dBm for user. Otherwise, leave it as is. For what it's worth, 'iwconfig' works as is (using dBm units). Thanks, Ben > > johannes -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 17:24 ` Ben Greear @ 2010-10-08 17:41 ` David Lamparter -1 siblings, 0 replies; 29+ messages in thread From: David Lamparter @ 2010-10-08 17:41 UTC (permalink / raw) To: ath9k-devel On Fri, Oct 08, 2010 at 10:24:50AM -0700, Ben Greear wrote: > On 10/08/2010 10:12 AM, Johannes Berg wrote: > > On Fri, 2010-10-08 at 10:07 -0700, Ben Greear wrote: > > > >> Well, the command fails because of this check (mbm is 20 in his case) > >> cfg.c: > >> case NL80211_TX_POWER_FIXED: > >> if (mbm< 0 || (mbm % 100)) > >> return -EOPNOTSUPP; > >> > >> That mbm % 100 looks quite strange to me..any idea what that is supposed to > >> accomplish? > > > > There's a later division by 100 to go from mBm to dBm ... I think you > > want 2000, not 20. > > Well, it's documented in iw to be 'mBm', though I surely wouldn't have known > what that stood for (nothing useful shows up on google for 'mBm units'). d-B-m is deci-Bel-milliWatt, so a mBm ostensibly is a milli-Bel-milliWatt... (yes, the "m" really encodes "mW"...) -David ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 17:41 ` David Lamparter 0 siblings, 0 replies; 29+ messages in thread From: David Lamparter @ 2010-10-08 17:41 UTC (permalink / raw) To: Ben Greear; +Cc: Johannes Berg, linux-wireless, ath9k On Fri, Oct 08, 2010 at 10:24:50AM -0700, Ben Greear wrote: > On 10/08/2010 10:12 AM, Johannes Berg wrote: > > On Fri, 2010-10-08 at 10:07 -0700, Ben Greear wrote: > > > >> Well, the command fails because of this check (mbm is 20 in his case) > >> cfg.c: > >> case NL80211_TX_POWER_FIXED: > >> if (mbm< 0 || (mbm % 100)) > >> return -EOPNOTSUPP; > >> > >> That mbm % 100 looks quite strange to me..any idea what that is supposed to > >> accomplish? > > > > There's a later division by 100 to go from mBm to dBm ... I think you > > want 2000, not 20. > > Well, it's documented in iw to be 'mBm', though I surely wouldn't have known > what that stood for (nothing useful shows up on google for 'mBm units'). d-B-m is deci-Bel-milliWatt, so a mBm ostensibly is a milli-Bel-milliWatt... (yes, the "m" really encodes "mW"...) -David ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 17:41 ` David Lamparter @ 2010-10-08 18:00 ` David Willmore -1 siblings, 0 replies; 29+ messages in thread From: David Willmore @ 2010-10-08 18:00 UTC (permalink / raw) To: ath9k-devel On Fri, Oct 8, 2010 at 1:41 PM, David Lamparter <equinox@diac24.net> wrote: > d-B-m is deci-Bel-milliWatt, so a mBm ostensibly is a > milli-Bel-milliWatt... > > (yes, the "m" really encodes "mW"...) The value is a "Power", so the base unit of Watts is implicit. This particular unit has always confused the heck out of me. It's *not* milli-Bel-milliWatt or the division would be by 1000, so it's really centi-Bel-milliWatt, no? Cheers, David ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 18:00 ` David Willmore 0 siblings, 0 replies; 29+ messages in thread From: David Willmore @ 2010-10-08 18:00 UTC (permalink / raw) To: David Lamparter; +Cc: Ben Greear, Johannes Berg, ath9k, linux-wireless On Fri, Oct 8, 2010 at 1:41 PM, David Lamparter <equinox@diac24.net> wrote: > d-B-m is deci-Bel-milliWatt, so a mBm ostensibly is a > milli-Bel-milliWatt... > > (yes, the "m" really encodes "mW"...) The value is a "Power", so the base unit of Watts is implicit. This particular unit has always confused the heck out of me. It's *not* milli-Bel-milliWatt or the division would be by 1000, so it's really centi-Bel-milliWatt, no? Cheers, David ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 18:00 ` David Willmore @ 2010-10-08 18:05 ` Johannes Berg -1 siblings, 0 replies; 29+ messages in thread From: Johannes Berg @ 2010-10-08 18:05 UTC (permalink / raw) To: ath9k-devel On Fri, 2010-10-08 at 14:00 -0400, David Willmore wrote: > On Fri, Oct 8, 2010 at 1:41 PM, David Lamparter <equinox@diac24.net> wrote: > > d-B-m is deci-Bel-milliWatt, so a mBm ostensibly is a > > milli-Bel-milliWatt... > > > > (yes, the "m" really encodes "mW"...) > > The value is a "Power", so the base unit of Watts is implicit. > > This particular unit has always confused the heck out of me. > It's *not* milli-Bel-milliWatt or the division would be by 1000, > so it's really centi-Bel-milliWatt, no? No, the d in dB already means it's 1/10 B, and mB is (was meant to be) 1/1000 B -- so the conversion factor is 100. johannes ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 18:05 ` Johannes Berg 0 siblings, 0 replies; 29+ messages in thread From: Johannes Berg @ 2010-10-08 18:05 UTC (permalink / raw) To: David Willmore; +Cc: David Lamparter, Ben Greear, ath9k, linux-wireless On Fri, 2010-10-08 at 14:00 -0400, David Willmore wrote: > On Fri, Oct 8, 2010 at 1:41 PM, David Lamparter <equinox@diac24.net> wrote: > > d-B-m is deci-Bel-milliWatt, so a mBm ostensibly is a > > milli-Bel-milliWatt... > > > > (yes, the "m" really encodes "mW"...) > > The value is a "Power", so the base unit of Watts is implicit. > > This particular unit has always confused the heck out of me. > It's *not* milli-Bel-milliWatt or the division would be by 1000, > so it's really centi-Bel-milliWatt, no? No, the d in dB already means it's 1/10 B, and mB is (was meant to be) 1/1000 B -- so the conversion factor is 100. johannes ^ permalink raw reply [flat|nested] 29+ messages in thread
* [ath9k-devel] trying to set tx power (using txpower option) 2010-10-08 18:05 ` Johannes Berg @ 2010-10-08 23:10 ` David Willmore -1 siblings, 0 replies; 29+ messages in thread From: David Willmore @ 2010-10-08 23:10 UTC (permalink / raw) To: ath9k-devel On Fri, Oct 8, 2010 at 2:05 PM, Johannes Berg <johannes@sipsolutions.net> wrote: > No, the d in dB already means it's 1/10 B, and mB is (was meant to be) > 1/1000 B -- so the conversion factor is 100. I stand corrected! Well said. Cheers, David ^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [ath9k-devel] trying to set tx power (using txpower option) @ 2010-10-08 23:10 ` David Willmore 0 siblings, 0 replies; 29+ messages in thread From: David Willmore @ 2010-10-08 23:10 UTC (permalink / raw) To: Johannes Berg; +Cc: David Lamparter, Ben Greear, ath9k, linux-wireless On Fri, Oct 8, 2010 at 2:05 PM, Johannes Berg <johannes@sipsolutions.net> wrote: > No, the d in dB already means it's 1/10 B, and mB is (was meant to be) > 1/1000 B -- so the conversion factor is 100. I stand corrected! Well said. Cheers, David ^ permalink raw reply [flat|nested] 29+ messages in thread
end of thread, other threads:[~2010-10-08 23:10 UTC | newest] Thread overview: 29+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-10-01 12:04 [ath9k-devel] trying to set tx power (using txpower option) At Santos 2010-10-08 9:46 ` At Santos 2010-10-08 11:12 ` Peter Stuge 2010-10-08 15:27 ` Luis R. Rodriguez 2010-10-08 16:23 ` At Santos 2010-10-08 16:45 ` Luis R. Rodriguez 2010-10-08 16:45 ` Luis R. Rodriguez 2010-10-08 16:48 ` Ben Greear 2010-10-08 16:48 ` Ben Greear 2010-10-08 16:52 ` Luis R. Rodriguez 2010-10-08 16:52 ` Luis R. Rodriguez 2010-10-08 17:07 ` Ben Greear 2010-10-08 17:07 ` Ben Greear 2010-10-08 17:12 ` Johannes Berg 2010-10-08 17:12 ` Johannes Berg 2010-10-08 17:24 ` Ben Greear 2010-10-08 17:24 ` Ben Greear 2010-10-08 17:28 ` Johannes Berg 2010-10-08 17:28 ` Johannes Berg 2010-10-08 17:38 ` Ben Greear 2010-10-08 17:38 ` Ben Greear 2010-10-08 17:41 ` David Lamparter 2010-10-08 17:41 ` David Lamparter 2010-10-08 18:00 ` David Willmore 2010-10-08 18:00 ` David Willmore 2010-10-08 18:05 ` Johannes Berg 2010-10-08 18:05 ` Johannes Berg 2010-10-08 23:10 ` David Willmore 2010-10-08 23:10 ` David Willmore
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.