aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mac80211_hwsim.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-05-01 12:53:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-03 14:53:10 -0400
commita75b4363eaafa99d909da4f1192322a78b074c73 (patch)
tree3eb89854769c07e1607549904dc490cddb622be2 /drivers/net/wireless/mac80211_hwsim.c
parent07cefe7ac983374ee4c369f1d4aee3093bf3b44f (diff)
mac80211: allow controlling aggregation manually
This allows enabling TX and disabling both TX and RX aggregation sessions manually in debugfs. It is very useful for debugging session initiation and teardown problems since with this you don't have to force a lot of traffic to get aggregation and thus have less data to analyse. Also, to debug mac80211 code itself, make hwsim "support" aggregation sessions. It will still just transfer the frame, but go through the setup and teardown handshakes. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index d016933d7573..ebcf43904291 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -1299,7 +1299,8 @@ static int __init init_mac80211_hwsim(void)
1299 hw->flags = IEEE80211_HW_MFP_CAPABLE | 1299 hw->flags = IEEE80211_HW_MFP_CAPABLE |
1300 IEEE80211_HW_SIGNAL_DBM | 1300 IEEE80211_HW_SIGNAL_DBM |
1301 IEEE80211_HW_SUPPORTS_STATIC_SMPS | 1301 IEEE80211_HW_SUPPORTS_STATIC_SMPS |
1302 IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS; 1302 IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS |
1303 IEEE80211_HW_AMPDU_AGGREGATION;
1303 1304
1304 /* ask mac80211 to reserve space for magic */ 1305 /* ask mac80211 to reserve space for magic */
1305 hw->vif_data_size = sizeof(struct hwsim_vif_priv); 1306 hw->vif_data_size = sizeof(struct hwsim_vif_priv);