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

2014-11-29 Thread Lorenzo Bianconi
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

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

2014-11-28 Thread Johannes Berg
I would like to enable TPC in ath9k using iw command: iw dev wlan0 set txpower auto I knew user_power_level is set to IEEE80211_UNSET_POWER_LEVEL in that case. Is there a better way than to check user_power_level? But ... the API already allows for that flexibility? I think if anything

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

2014-11-28 Thread Lorenzo Bianconi
I would like to enable TPC in ath9k using iw command: iw dev wlan0 set txpower auto I knew user_power_level is set to IEEE80211_UNSET_POWER_LEVEL in that case. Is there a better way than to check user_power_level? But ... the API already allows for that flexibility? I think if anything

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

2014-11-27 Thread Johannes Berg
On Thu, 2014-11-27 at 14:39 +0100, Lorenzo Bianconi wrote: Configure per packet Transmit Power Control (TPC) in lower drivers checking if user_power_level has been set to IEEE80211_UNSET_POWER_LEVEL Err, what? Why? how? what does this do? johannes -- To unsubscribe from this list: send the

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

2014-11-27 Thread Lorenzo Bianconi
On Thu, 2014-11-27 at 14:39 +0100, Lorenzo Bianconi wrote: Configure per packet Transmit Power Control (TPC) in lower drivers checking if user_power_level has been set to IEEE80211_UNSET_POWER_LEVEL Err, what? Why? how? what does this do? johannes I would like to enable TPC in ath9k using