diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-05-12 22:05:40 +0200 |
---|---|---|
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) | |
download | op-kernel-dev-d3707d9918d47c0997a6b1e4ae24e7ab55e43796.zip op-kernel-dev-d3707d9918d47c0997a6b1e4ae24e7ab55e43796.tar.gz |
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 5f9a8d7..8f68bf9 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1087,7 +1087,10 @@ __ieee80211_tx_prepare(struct ieee80211_tx_data *tx, info->flags |= IEEE80211_TX_CTL_NO_ACK; } else { tx->flags |= IEEE80211_TX_UNICAST; - info->flags &= ~IEEE80211_TX_CTL_NO_ACK; + if (unlikely(local->wifi_wme_noack_test)) + info->flags |= IEEE80211_TX_CTL_NO_ACK; + else + info->flags &= ~IEEE80211_TX_CTL_NO_ACK; } if (tx->flags & IEEE80211_TX_FRAGMENTED) { |