aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-10-24 00:25:27 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:02:14 -0400
commit8b30b1fe368ab03049435884c11c5c50e4c4ef0b (patch)
tree02b27b36cf90267d59584b493ad652e3a4cc6a7e /drivers
parent4393dce9402c58744433c7a4f3931e17ddde4fb4 (diff)
mac80211: Re-enable aggregation
Wireless HW without any dedicated queues for aggregation do not need the ampdu_queues mechanism present right now in mac80211. Since mac80211 is still incomplete wrt TX MQ changes, do not allow aggregation sessions for drivers that set ampdu_queues. This is only an interim hack until Intel fixes the requeue issue. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: Luis Rodriguez <Luis.Rodriguez@Atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath9k/main.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index 795fed5cadfa..f6dc4c826044 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -953,10 +953,7 @@ static int ath_attach(u16 devid,
953 &sc->sbands[IEEE80211_BAND_5GHZ]; 953 &sc->sbands[IEEE80211_BAND_5GHZ];
954 } 954 }
955 955
956 /* FIXME: Have to figure out proper hw init values later */
957
958 hw->queues = 4; 956 hw->queues = 4;
959 hw->ampdu_queues = 1;
960 957
961 /* Register rate control */ 958 /* Register rate control */
962 hw->rate_control_algorithm = "ath9k_rate_control"; 959 hw->rate_control_algorithm = "ath9k_rate_control";
@@ -1745,7 +1742,8 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1745 hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | 1742 hw->flags = IEEE80211_HW_RX_INCLUDES_FCS |
1746 IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | 1743 IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING |
1747 IEEE80211_HW_SIGNAL_DBM | 1744 IEEE80211_HW_SIGNAL_DBM |
1748 IEEE80211_HW_NOISE_DBM; 1745 IEEE80211_HW_NOISE_DBM |
1746 IEEE80211_HW_AMPDU_AGGREGATION;
1749 1747
1750 hw->wiphy->interface_modes = 1748 hw->wiphy->interface_modes =
1751 BIT(NL80211_IFTYPE_AP) | 1749 BIT(NL80211_IFTYPE_AP) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 20c7ff382914..ba05f5ddc6d0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -871,7 +871,8 @@ int iwl_setup_mac(struct iwl_priv *priv)
871 871
872 /* Tell mac80211 our characteristics */ 872 /* Tell mac80211 our characteristics */
873 hw->flags = IEEE80211_HW_SIGNAL_DBM | 873 hw->flags = IEEE80211_HW_SIGNAL_DBM |
874 IEEE80211_HW_NOISE_DBM; 874 IEEE80211_HW_NOISE_DBM |
875 IEEE80211_HW_AMPDU_AGGREGATION;
875 hw->wiphy->interface_modes = 876 hw->wiphy->interface_modes =
876 BIT(NL80211_IFTYPE_AP) | 877 BIT(NL80211_IFTYPE_AP) |
877 BIT(NL80211_IFTYPE_STATION) | 878 BIT(NL80211_IFTYPE_STATION) |