]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: handle TX power per virtual interface
authorJohannes Berg <johannes.berg@intel.com>
Wed, 24 Oct 2012 08:59:25 +0000 (10:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Oct 2012 08:11:34 +0000 (09:11 +0100)
commit7557ddba21558bf2ee7ecc9c8c8dc76d27edeee2
tree5a589d0bccfcac6ba0952942a04482b99752ddcc
parent6a0af2e9970d4db3fcdf9ff31d50cf6c4e3a9e93
mac80211: handle TX power per virtual interface

Even before channel contexts/multi-channel, having a
single global TX power limit was already problematic,
in particular if two managed interfaces connected to
two APs with different power constraints. The channel
context introduction completely broke this though and
in fact I had disabled TX power configuration there
for drivers using channel contexts.

Change everything to track TX power per interface so
that different user settings and different channel
maxima are treated correctly. Also continue tracking
the global TX power though for compatibility with
applications that attempt to configure the wiphy's
TX power globally.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/cfg.c
net/mac80211/chan.c
net/mac80211/debugfs_netdev.c
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/main.c
net/mac80211/mlme.c
net/mac80211/trace.h
net/mac80211/util.c