Search Linux Wireless

Re: [PATCH] mac80211: enable TPC through mac80211 stack

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

 



On Fri, 2014-11-28 at 16:02 +0100, Lorenzo Bianconi wrote:

> I just need to notify lower driver (ath9k in my case) to setup TPC
> registers in order to take into account TX power configured in frame
> descriptors. For that purpose I added tpc_enabled flags in
> ieee80211_bss_conf and in ieee80211_conf. Is there any other variables
> I can use to notify that configuration?

Well, arguably, you can just do that unconditionally. If you want to do
it "right" according to the nl80211 API that we introduced due to wext
compatibility (IIRC), you'd have to look at the value passed in enum
nl80211_tx_power_setting. This can take

NL80211_TX_POWER_AUTOMATIC - no limit from userspace
NL80211_TX_POWER_LIMITED - limit, but allow using less than specified
NL80211_TX_POWER_FIXED - use exactly what userspace wanted

I don't think any driver really implements this today, but you could
take this as a hint and only enable TPC (with or without the user's
specified limit) in the first two cases.

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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux