source: trunk/package/mac80211/patches/530-mac80211_cur_txpower.patch @ 28093

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

mac80211: update to wireless-testing 2011-08-26

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

    a b enum ieee80211_smps_mode { 
    790790 */ 
    791791struct ieee80211_conf { 
    792792        u32 flags; 
    793         int power_level, dynamic_ps_timeout; 
     793        int cur_power_level, power_level, dynamic_ps_timeout; 
    794794        int max_sleep_period; 
    795795 
    796796        u16 listen_interval; 
  • net/mac80211/cfg.c

    a b static int ieee80211_get_tx_power(struct 
    15511551{ 
    15521552        struct ieee80211_local *local = wiphy_priv(wiphy); 
    15531553 
    1554         *dbm = local->hw.conf.power_level; 
     1554        *dbm = local->hw.conf.cur_power_level; 
    15551555 
    15561556        return 0; 
    15571557} 
  • 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.