aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorYanbo Li <yanbol@qti.qualcomm.com>2015-01-22 19:18:20 -0500
committerKalle Valo <kvalo@qca.qualcomm.com>2015-01-29 05:25:17 -0500
commitd68bb12ab4a306ee76ab33a57b2a0067d4d5092d (patch)
tree4f67dc8dd34856447ff3e60d283c0dea5d24b958 /drivers/net
parent46725b15334ca0598f1cc7ea34d2f6963bec11cb (diff)
ath10k: Enable the MCS8 and MCS9 at 2.4G band
Enable the MCS8 and MCS9 support for 2.4G band, it will use these data rate with other devices having the same capability. Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c14
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.h2
2 files changed, 13 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 4ee74f660443..f9440deffa26 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -1586,6 +1586,10 @@ static void ath10k_peer_assoc_h_vht(struct ath10k *ar,
1586 return; 1586 return;
1587 1587
1588 arg->peer_flags |= WMI_PEER_VHT; 1588 arg->peer_flags |= WMI_PEER_VHT;
1589
1590 if (ar->hw->conf.chandef.chan->band == IEEE80211_BAND_2GHZ)
1591 arg->peer_flags |= WMI_PEER_VHT_2G;
1592
1589 arg->peer_vht_caps = vht_cap->cap; 1593 arg->peer_vht_caps = vht_cap->cap;
1590 1594
1591 ampdu_factor = (vht_cap->cap & 1595 ampdu_factor = (vht_cap->cap &
@@ -1664,7 +1668,12 @@ static void ath10k_peer_assoc_h_phymode(struct ath10k *ar,
1664 1668
1665 switch (ar->hw->conf.chandef.chan->band) { 1669 switch (ar->hw->conf.chandef.chan->band) {
1666 case IEEE80211_BAND_2GHZ: 1670 case IEEE80211_BAND_2GHZ:
1667 if (sta->ht_cap.ht_supported) { 1671 if (sta->vht_cap.vht_supported) {
1672 if (sta->bandwidth == IEEE80211_STA_RX_BW_40)
1673 phymode = MODE_11AC_VHT40;
1674 else
1675 phymode = MODE_11AC_VHT20;
1676 } else if (sta->ht_cap.ht_supported) {
1668 if (sta->bandwidth == IEEE80211_STA_RX_BW_40) 1677 if (sta->bandwidth == IEEE80211_STA_RX_BW_40)
1669 phymode = MODE_11NG_HT40; 1678 phymode = MODE_11NG_HT40;
1670 else 1679 else
@@ -5301,7 +5310,8 @@ int ath10k_mac_register(struct ath10k *ar)
5301 band->bitrates = ath10k_g_rates; 5310 band->bitrates = ath10k_g_rates;
5302 band->ht_cap = ht_cap; 5311 band->ht_cap = ht_cap;
5303 5312
5304 /* vht is not supported in 2.4 GHz */ 5313 /* Enable the VHT support at 2.4 GHz */
5314 band->vht_cap = vht_cap;
5305 5315
5306 ar->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = band; 5316 ar->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = band;
5307 } 5317 }
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h
index 4b654083b857..20ce3603e64b 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.h
+++ b/drivers/net/wireless/ath/ath10k/wmi.h
@@ -4514,7 +4514,7 @@ struct wmi_peer_set_q_empty_callback_cmd {
4514#define WMI_PEER_SPATIAL_MUX 0x00200000 4514#define WMI_PEER_SPATIAL_MUX 0x00200000
4515#define WMI_PEER_VHT 0x02000000 4515#define WMI_PEER_VHT 0x02000000
4516#define WMI_PEER_80MHZ 0x04000000 4516#define WMI_PEER_80MHZ 0x04000000
4517#define WMI_PEER_PMF 0x08000000 4517#define WMI_PEER_VHT_2G 0x08000000
4518 4518
4519/* 4519/*
4520 * Peer rate capabilities. 4520 * Peer rate capabilities.