On Sat, 2011-10-22 at 00:02 +0200, Gábor Stefanik wrote: > 2011/10/21 Patryk Żółtowski <patryk.zoltowski@xxxxxxxxx>: > > I'm doing a research and I'm wondering if it's possible to hack > > wireless drivers to allow setting txpower to smaller value than 1mW > > (e.g. 0.1mW = -10dBM, or even 0.01mW). I've checked source code and in > > net/mac80211/cfg.c there is the following check: > > > > if (mbm < 0 || (mbm % 100)) > > return -EOPNOTSUPP; > > The "mbm % 100" part is even weirder; why do we even use millibels if > we only allow whole-decibel values? This is really just historic -- nobody has so far cared about TX power enough to clean up the APIs for it etc. The distinction between "automatic", "fixed" and "limited" (auto <= some value) is also not really done very well here. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html