Changeset 28261


Ignore:
Timestamp:
2011-09-20T12:42:45+02:00 (6 years ago)
Author:
nbd
Message:

ath9k: fix antenna gain calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/581-ath9k_cleanup_txpower_handling.patch

    r28260 r28261  
    156156+       chan_pwr = min_t(int, channel->max_power * 2, MAX_RATE_POWER); 
    157157+       new_pwr = min_t(int, chan_pwr, reg->power_limit); 
    158 +       max_gain = new_pwr - chan_pwr + channel->max_antenna_gain * 2; 
     158+       max_gain = chan_pwr - new_pwr + channel->max_antenna_gain * 2; 
    159159+ 
    160160+       ant_gain = get_antenna_gain(ah, chan); 
     
    176176-       int chan_pwr = channel->max_power * 2; 
    177177  
    178 +       reg->power_limit = min_t(int, limit * 2, MAX_RATE_POWER); 
     178+       reg->power_limit = min_t(int, limit, MAX_RATE_POWER); 
    179179        if (test) 
    180180-               reg_pwr = chan_pwr = MAX_RATE_POWER; 
Note: See TracChangeset for help on using the changeset viewer.