diff options
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/phy.c')
| -rw-r--r-- | drivers/net/wireless/ath/carl9170/phy.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/carl9170/phy.c b/drivers/net/wireless/ath/carl9170/phy.c index dca6df13fd5b..34d9fd77046e 100644 --- a/drivers/net/wireless/ath/carl9170/phy.c +++ b/drivers/net/wireless/ath/carl9170/phy.c | |||
| @@ -540,11 +540,11 @@ static int carl9170_init_phy_from_eeprom(struct ar9170 *ar, | |||
| 540 | return carl9170_regwrite_result(); | 540 | return carl9170_regwrite_result(); |
| 541 | } | 541 | } |
| 542 | 542 | ||
| 543 | static int carl9170_init_phy(struct ar9170 *ar, enum ieee80211_band band) | 543 | static int carl9170_init_phy(struct ar9170 *ar, enum nl80211_band band) |
| 544 | { | 544 | { |
| 545 | int i, err; | 545 | int i, err; |
| 546 | u32 val; | 546 | u32 val; |
| 547 | bool is_2ghz = band == IEEE80211_BAND_2GHZ; | 547 | bool is_2ghz = band == NL80211_BAND_2GHZ; |
| 548 | bool is_40mhz = conf_is_ht40(&ar->hw->conf); | 548 | bool is_40mhz = conf_is_ht40(&ar->hw->conf); |
| 549 | 549 | ||
| 550 | carl9170_regwrite_begin(ar); | 550 | carl9170_regwrite_begin(ar); |
| @@ -1125,13 +1125,13 @@ static int carl9170_set_freq_cal_data(struct ar9170 *ar, | |||
| 1125 | u8 f, tmp; | 1125 | u8 f, tmp; |
| 1126 | 1126 | ||
| 1127 | switch (channel->band) { | 1127 | switch (channel->band) { |
| 1128 | case IEEE80211_BAND_2GHZ: | 1128 | case NL80211_BAND_2GHZ: |
| 1129 | f = channel->center_freq - 2300; | 1129 | f = channel->center_freq - 2300; |
| 1130 | cal_freq_pier = ar->eeprom.cal_freq_pier_2G; | 1130 | cal_freq_pier = ar->eeprom.cal_freq_pier_2G; |
| 1131 | i = AR5416_NUM_2G_CAL_PIERS - 1; | 1131 | i = AR5416_NUM_2G_CAL_PIERS - 1; |
| 1132 | break; | 1132 | break; |
| 1133 | 1133 | ||
| 1134 | case IEEE80211_BAND_5GHZ: | 1134 | case NL80211_BAND_5GHZ: |
| 1135 | f = (channel->center_freq - 4800) / 5; | 1135 | f = (channel->center_freq - 4800) / 5; |
| 1136 | cal_freq_pier = ar->eeprom.cal_freq_pier_5G; | 1136 | cal_freq_pier = ar->eeprom.cal_freq_pier_5G; |
| 1137 | i = AR5416_NUM_5G_CAL_PIERS - 1; | 1137 | i = AR5416_NUM_5G_CAL_PIERS - 1; |
| @@ -1158,12 +1158,12 @@ static int carl9170_set_freq_cal_data(struct ar9170 *ar, | |||
| 1158 | int j; | 1158 | int j; |
| 1159 | 1159 | ||
| 1160 | switch (channel->band) { | 1160 | switch (channel->band) { |
| 1161 | case IEEE80211_BAND_2GHZ: | 1161 | case NL80211_BAND_2GHZ: |
| 1162 | cal_pier_data = &ar->eeprom. | 1162 | cal_pier_data = &ar->eeprom. |
| 1163 | cal_pier_data_2G[chain][idx]; | 1163 | cal_pier_data_2G[chain][idx]; |
| 1164 | break; | 1164 | break; |
| 1165 | 1165 | ||
| 1166 | case IEEE80211_BAND_5GHZ: | 1166 | case NL80211_BAND_5GHZ: |
| 1167 | cal_pier_data = &ar->eeprom. | 1167 | cal_pier_data = &ar->eeprom. |
| 1168 | cal_pier_data_5G[chain][idx]; | 1168 | cal_pier_data_5G[chain][idx]; |
| 1169 | break; | 1169 | break; |
| @@ -1340,7 +1340,7 @@ static void carl9170_calc_ctl(struct ar9170 *ar, u32 freq, enum carl9170_bw bw) | |||
| 1340 | /* skip CTL and heavy clip for CTL_MKK and CTL_ETSI */ | 1340 | /* skip CTL and heavy clip for CTL_MKK and CTL_ETSI */ |
| 1341 | return; | 1341 | return; |
| 1342 | 1342 | ||
| 1343 | if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_2GHZ) { | 1343 | if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) { |
| 1344 | modes = mode_list_2ghz; | 1344 | modes = mode_list_2ghz; |
| 1345 | nr_modes = ARRAY_SIZE(mode_list_2ghz); | 1345 | nr_modes = ARRAY_SIZE(mode_list_2ghz); |
| 1346 | } else { | 1346 | } else { |
| @@ -1607,7 +1607,7 @@ int carl9170_set_channel(struct ar9170 *ar, struct ieee80211_channel *channel, | |||
| 1607 | return err; | 1607 | return err; |
| 1608 | 1608 | ||
| 1609 | err = carl9170_init_rf_banks_0_7(ar, | 1609 | err = carl9170_init_rf_banks_0_7(ar, |
| 1610 | channel->band == IEEE80211_BAND_5GHZ); | 1610 | channel->band == NL80211_BAND_5GHZ); |
| 1611 | if (err) | 1611 | if (err) |
| 1612 | return err; | 1612 | return err; |
| 1613 | 1613 | ||
| @@ -1621,7 +1621,7 @@ int carl9170_set_channel(struct ar9170 *ar, struct ieee80211_channel *channel, | |||
| 1621 | return err; | 1621 | return err; |
| 1622 | 1622 | ||
| 1623 | err = carl9170_init_rf_bank4_pwr(ar, | 1623 | err = carl9170_init_rf_bank4_pwr(ar, |
| 1624 | channel->band == IEEE80211_BAND_5GHZ, | 1624 | channel->band == NL80211_BAND_5GHZ, |
| 1625 | channel->center_freq, bw); | 1625 | channel->center_freq, bw); |
| 1626 | if (err) | 1626 | if (err) |
| 1627 | return err; | 1627 | return err; |
