source: trunk/package/mac80211/patches/520-mac80211_cur_txpower.patch @ 32002

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

mac80211: update to wireless-testing 2012-05-29

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

    a b enum ieee80211_smps_mode { 
    829829 */ 
    830830struct ieee80211_conf { 
    831831        u32 flags; 
    832         int power_level, dynamic_ps_timeout; 
     832        int cur_power_level, power_level, dynamic_ps_timeout; 
    833833        int max_sleep_period; 
    834834 
    835835        u16 listen_interval; 
  • net/mac80211/cfg.c

    a b static int ieee80211_get_tx_power(struct 
    19361936{ 
    19371937        struct ieee80211_local *local = wiphy_priv(wiphy); 
    19381938 
    1939         *dbm = local->hw.conf.power_level; 
     1939        *dbm = local->hw.conf.cur_power_level; 
    19401940 
    19411941        return 0; 
    19421942} 
  • net/mac80211/main.c

    a b int ieee80211_hw_config(struct ieee80211 
    167167 
    168168        if (local->hw.conf.power_level != power) { 
    169169                changed |= IEEE80211_CONF_CHANGE_POWER; 
     170                local->hw.conf.cur_power_level = power; 
    170171                local->hw.conf.power_level = power; 
    171172        } 
    172173 
Note: See TracBrowser for help on using the repository browser.