Search Linux Wireless

Re: [ath9k-devel] trying to set tx power (using txpower option)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux