source: branches/backfire/package/mac80211/patches/590-mac80211_cur_txpower.patch @ 27789

Last change on this file since 27789 was 27789, checked in by nbd, 5 years ago

ath9k: rework tx power handling - display the correct *current* tx power, and also fix tx power limits with ATH_USER_REGD set (backport of r27788)

File size: 849 bytes
  • include/net/mac80211.h

    a b enum ieee80211_smps_mode { 
    779779 */ 
    780780struct ieee80211_conf { 
    781781        u32 flags; 
    782         int power_level, dynamic_ps_timeout; 
     782        int cur_power_level, power_level, dynamic_ps_timeout; 
    783783        int max_sleep_period; 
    784784 
    785785        u16 listen_interval; 
  • net/mac80211/cfg.c

    a b static int ieee80211_get_tx_power(struct 
    15241524{ 
    15251525        struct ieee80211_local *local = wiphy_priv(wiphy); 
    15261526 
    1527         *dbm = local->hw.conf.power_level; 
     1527        *dbm = local->hw.conf.cur_power_level; 
    15281528 
    15291529        return 0; 
    15301530} 
  • net/mac80211/main.c

    a b int ieee80211_hw_config(struct ieee80211 
    210210 
    211211        if (local->hw.conf.power_level != power) { 
    212212                changed |= IEEE80211_CONF_CHANGE_POWER; 
     213                local->hw.conf.cur_power_level = power; 
    213214                local->hw.conf.power_level = power; 
    214215        } 
    215216 
Note: See TracBrowser for help on using the repository browser.