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

Last change on this file since 31453 was 31453, checked in by nbd, 4 years ago

mac80211: update AP multicast fix to latest version submitted to linux-wireless@

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 
    17571757{ 
    17581758        struct ieee80211_local *local = wiphy_priv(wiphy); 
    17591759 
    1760         *dbm = local->hw.conf.power_level; 
     1760        *dbm = local->hw.conf.cur_power_level; 
    17611761 
    17621762        return 0; 
    17631763} 
  • 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.