• Johannes Berg's avatar
    mac80211: handle TX power per virtual interface · 1ea6f9c0
    Johannes Berg authored
    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: default avatarJohannes Berg <johannes.berg@intel.com>