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

2014-12-17 Thread Johannes Berg
On Mon, 2014-12-15 at 14:40 +0100, Lorenzo Bianconi wrote: In pending driver (ath9k) patches TPC related info in hw conf and bss_conf are not used for the same purpose. The first one is used to configure HW TPC registers, since TPC should be enabled in hw if there is at least one interface

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

2014-12-15 Thread Lorenzo Bianconi
On Fri, 2014-12-12 at 15:16 +0100, Lorenzo Bianconi wrote: In multi-vif scenario, TPC could be enabled just on given interfaces, but driver TPC registers should be configured anyway (so I used a glob flag). However I can move that logic in driver code, what do you suggest? It seems strange

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

2014-12-12 Thread Johannes Berg
On Mon, 2014-12-01 at 11:30 +0100, Lorenzo Bianconi wrote: Enable/disable per packet Transmit Power Control (TPC) in lower drivers according to TX power settings configured by the user. In particular TPC is enabled if value passed in enum nl80211_tx_power_setting is NL80211_TX_POWER_AUTOMATIC

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

2014-12-12 Thread Lorenzo Bianconi
On Mon, 2014-12-01 at 11:30 +0100, Lorenzo Bianconi wrote: Enable/disable per packet Transmit Power Control (TPC) in lower drivers according to TX power settings configured by the user. In particular TPC is enabled if value passed in enum nl80211_tx_power_setting is NL80211_TX_POWER_AUTOMATIC

[PATCHv2] mac80211: enable TPC through mac80211 stack

2014-12-01 Thread Lorenzo Bianconi
Enable/disable per packet Transmit Power Control (TPC) in lower drivers according to TX power settings configured by the user. In particular TPC is enabled if value passed in enum nl80211_tx_power_setting is NL80211_TX_POWER_AUTOMATIC (no limit from userspace) or NL80211_TX_POWER_LIMITED (allow