source: trunk/package/mac80211/patches/582-ath9k_remove_current_rd_ext.patch @ 28253

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

ath9k: add some cleanup patches and rework tx power handling

File size: 1.2 KB
  • drivers/net/wireless/ath/ath.h

    a b struct ath_regulatory { 
    7272        u16 country_code; 
    7373        u16 max_power_level; 
    7474        u16 current_rd; 
    75         u16 current_rd_ext; 
    7675        int16_t power_limit; 
    7776        struct reg_dmn_pair_mapping *regpair; 
    7877}; 
  • drivers/net/wireless/ath/ath9k/hw.c

    a b int ath9k_hw_fill_cap_info(struct ath_hw 
    20472047        eeval = ah->eep_ops->get_eeprom(ah, EEP_REG_0); 
    20482048        regulatory->current_rd = eeval; 
    20492049 
    2050         eeval = ah->eep_ops->get_eeprom(ah, EEP_REG_1); 
    2051         if (AR_SREV_9285_12_OR_LATER(ah)) 
    2052                 eeval |= AR9285_RDEXT_DEFAULT; 
    2053         regulatory->current_rd_ext = eeval; 
    2054  
    20552050        if (ah->opmode != NL80211_IFTYPE_AP && 
    20562051            ah->hw_version.subvendorid == AR_SUBVENDOR_ID_NEW_A) { 
    20572052                if (regulatory->current_rd == 0x64 || 
  • drivers/net/wireless/ath/carl9170/main.c

    a b static int carl9170_parse_eeprom(struct  
    19121912                ar->hw->channel_change_time = 80 * 1000; 
    19131913 
    19141914        regulatory->current_rd = le16_to_cpu(ar->eeprom.reg_domain[0]); 
    1915         regulatory->current_rd_ext = le16_to_cpu(ar->eeprom.reg_domain[1]); 
    19161915 
    19171916        /* second part of wiphy init */ 
    19181917        SET_IEEE80211_PERM_ADDR(ar->hw, ar->eeprom.mac_address); 
Note: See TracBrowser for help on using the repository browser.