Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: chromeos/compat-wireless/net/mac80211/main.c

Issue 2887009: Add kernel parameters for debugfs disable_*_ba values (Closed) Base URL: ssh://gitrw.chromium.org/kernel.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/compat-wireless/net/mac80211/main.c
diff --git a/chromeos/compat-wireless/net/mac80211/main.c b/chromeos/compat-wireless/net/mac80211/main.c
index 1eecab65daa5d222fe54775de461dddbf2d15540..7042de55ed398b8bbc03c686ea6e8a8848b9882d 100644
--- a/chromeos/compat-wireless/net/mac80211/main.c
+++ b/chromeos/compat-wireless/net/mac80211/main.c
@@ -40,6 +40,18 @@ module_param(ieee80211_disable_40mhz_24ghz, bool, 0644);
MODULE_PARM_DESC(ieee80211_disable_40mhz_24ghz,
"Disable 40MHz support in the 2.4GHz band");
+#ifdef CONFIG_MAC80211_DEBUGFS
+static bool ieee80211_default_disable_rx_ba = 0;
+module_param(ieee80211_default_disable_rx_ba, bool, 0644);
+MODULE_PARM_DESC(ieee80211_default_disable_rx_ba,
+ "Disable received HT aggregation requests by default");
+
+static bool ieee80211_default_disable_tx_ba = 0;
+module_param(ieee80211_default_disable_tx_ba, bool, 0644);
+MODULE_PARM_DESC(ieee80211_default_disable_tx_ba,
+ "Disable transmitted HT aggregation requests by default");
+#endif
+
void ieee80211_configure_filter(struct ieee80211_local *local)
{
u64 mc;
@@ -389,6 +401,11 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
local->uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES;
local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN;
+#ifdef CONFIG_MAC80211_DEBUGFS
+ local->debug_disable_rx_ba = ieee80211_default_disable_rx_ba;
+ local->debug_disable_tx_ba = ieee80211_default_disable_tx_ba;
+#endif
+
INIT_LIST_HEAD(&local->interfaces);
mutex_init(&local->iflist_mtx);
mutex_init(&local->scan_mtx);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698