source: trunk/package/mac80211/patches/531-ath9k_cur_txpower.patch @ 30742

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

mac80211: update to wireless-testing 2012-02-23

File size: 653 bytes
  • drivers/net/wireless/ath/ath9k/main.c

    a b int ath9k_config(struct ieee80211_hw *hw 
    16731673                        return -EINVAL; 
    16741674                } 
    16751675 
     1676                conf->cur_power_level = sc->curtxpow / 2; 
     1677 
    16761678                /* 
    16771679                 * The most recent snapshot of channel->noisefloor for the old 
    16781680                 * channel is only available after the hardware reset. Copy it to 
    int ath9k_config(struct ieee80211_hw *hw 
    16871689                sc->config.txpowlimit = 2 * conf->power_level; 
    16881690                ath9k_cmn_update_txpow(ah, sc->curtxpow, 
    16891691                                       sc->config.txpowlimit, &sc->curtxpow); 
     1692                conf->cur_power_level = sc->curtxpow / 2; 
    16901693        } 
    16911694 
    16921695        mutex_unlock(&sc->mutex); 
Note: See TracBrowser for help on using the repository browser.