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

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

mac80211: update to wireless-testing 2012-04-13

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

    a b enum ieee80211_smps_mode { 
    825825 */ 
    826826struct ieee80211_conf { 
    827827        u32 flags; 
    828         int power_level, dynamic_ps_timeout; 
     828        int cur_power_level, power_level, dynamic_ps_timeout; 
    829829        int max_sleep_period; 
    830830 
    831831        u16 listen_interval; 
  • net/mac80211/cfg.c

    a b static int ieee80211_get_tx_power(struct 
    17381738{ 
    17391739        struct ieee80211_local *local = wiphy_priv(wiphy); 
    17401740 
    1741         *dbm = local->hw.conf.power_level; 
     1741        *dbm = local->hw.conf.cur_power_level; 
    17421742 
    17431743        return 0; 
    17441744} 
  • net/mac80211/main.c

    a b int ieee80211_hw_config(struct ieee80211 
    165165 
    166166        if (local->hw.conf.power_level != power) { 
    167167                changed |= IEEE80211_CONF_CHANGE_POWER; 
     168                local->hw.conf.cur_power_level = power; 
    168169                local->hw.conf.power_level = power; 
    169170        } 
    170171 
Note: See TracBrowser for help on using the repository browser.