diff options
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/phy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ar9170/phy.c b/drivers/net/wireless/ath/ar9170/phy.c index 6ce20754b8e7..df86f70cd817 100644 --- a/drivers/net/wireless/ath/ar9170/phy.c +++ b/drivers/net/wireless/ath/ar9170/phy.c | |||
@@ -401,7 +401,7 @@ int ar9170_init_phy(struct ar9170 *ar, enum ieee80211_band band) | |||
401 | int i, err; | 401 | int i, err; |
402 | u32 val; | 402 | u32 val; |
403 | bool is_2ghz = band == IEEE80211_BAND_2GHZ; | 403 | bool is_2ghz = band == IEEE80211_BAND_2GHZ; |
404 | bool is_40mhz = false; /* XXX: for now */ | 404 | bool is_40mhz = conf_is_ht40(&ar->hw->conf); |
405 | 405 | ||
406 | ar9170_regwrite_begin(ar); | 406 | ar9170_regwrite_begin(ar); |
407 | 407 | ||
@@ -1200,7 +1200,7 @@ int ar9170_set_channel(struct ar9170 *ar, struct ieee80211_channel *channel, | |||
1200 | return -ENOSYS; | 1200 | return -ENOSYS; |
1201 | } | 1201 | } |
1202 | 1202 | ||
1203 | if (0 /* 2 streams capable */) | 1203 | if (ar->eeprom.tx_mask != 1) |
1204 | tmp |= 0x100; | 1204 | tmp |= 0x100; |
1205 | 1205 | ||
1206 | err = ar9170_write_reg(ar, 0x1c5804, tmp); | 1206 | err = ar9170_write_reg(ar, 0x1c5804, tmp); |
@@ -1214,7 +1214,7 @@ int ar9170_set_channel(struct ar9170 *ar, struct ieee80211_channel *channel, | |||
1214 | freqpar = ar9170_get_hw_dyn_params(channel, bw); | 1214 | freqpar = ar9170_get_hw_dyn_params(channel, bw); |
1215 | 1215 | ||
1216 | vals[0] = cpu_to_le32(channel->center_freq * 1000); | 1216 | vals[0] = cpu_to_le32(channel->center_freq * 1000); |
1217 | vals[1] = cpu_to_le32(bw == AR9170_BW_20 ? 0 : 1); | 1217 | vals[1] = cpu_to_le32(conf_is_ht40(&ar->hw->conf)); |
1218 | vals[2] = cpu_to_le32(offs << 2 | 1); | 1218 | vals[2] = cpu_to_le32(offs << 2 | 1); |
1219 | vals[3] = cpu_to_le32(freqpar->coeff_exp); | 1219 | vals[3] = cpu_to_le32(freqpar->coeff_exp); |
1220 | vals[4] = cpu_to_le32(freqpar->coeff_man); | 1220 | vals[4] = cpu_to_le32(freqpar->coeff_man); |