diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-05-12 16:05:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-13 15:44:53 -0400 |
commit | d3707d9918d47c0997a6b1e4ae24e7ab55e43796 (patch) | |
tree | dd05505563ae8b02bfd1a5db5d5bdde6e6750798 /net/mac80211/tx.c | |
parent | b59066a291ca7c12a1e5b58f3ada5ab6e32cb6bd (diff) |
mac80211: make noack test available
There's this internal wifi_wme_noack_test variable that
we use to set the QoS control if set. For one, it is
unlikely that it is set. Secondly, if set it needs to
influence the IEEE80211_TX_CTL_NO_ACK TX control flag,
and finally we should also be able to set it at all, so
make it available in debugfs.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 5f9a8d7af83d..8f68bf9746d0 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1087,7 +1087,10 @@ __ieee80211_tx_prepare(struct ieee80211_tx_data *tx, | |||
1087 | info->flags |= IEEE80211_TX_CTL_NO_ACK; | 1087 | info->flags |= IEEE80211_TX_CTL_NO_ACK; |
1088 | } else { | 1088 | } else { |
1089 | tx->flags |= IEEE80211_TX_UNICAST; | 1089 | tx->flags |= IEEE80211_TX_UNICAST; |
1090 | info->flags &= ~IEEE80211_TX_CTL_NO_ACK; | 1090 | if (unlikely(local->wifi_wme_noack_test)) |
1091 | info->flags |= IEEE80211_TX_CTL_NO_ACK; | ||
1092 | else | ||
1093 | info->flags &= ~IEEE80211_TX_CTL_NO_ACK; | ||
1091 | } | 1094 | } |
1092 | 1095 | ||
1093 | if (tx->flags & IEEE80211_TX_FRAGMENTED) { | 1096 | if (tx->flags & IEEE80211_TX_FRAGMENTED) { |