Thread (10 messages) 10 messages, 2 authors, 2011-10-28

Re: [PATCH] mac80211: Allow NO_ACK flag overwrite for injected frames

From: Helmut Schaa <hidden>
Date: 2011-09-29 10:50:55

On Thu, Sep 29, 2011 at 12:21 PM, Johannes Berg
[off-list ref] wrote:
quoted
quoted
quoted
@@ -1257,7 +1265,7 @@ ieee80211_tx_prepare(struct ieee80211_sub_if_data *sdata,
              tx->flags |= IEEE80211_TX_UNICAST;
              if (unlikely(local->wifi_wme_noack_test))
                      info->flags |= IEEE80211_TX_CTL_NO_ACK;
-             else
+             else if (!(info->flags & IEEE80211_TX_CTL_NO_ACK))
                      info->flags &= ~IEEE80211_TX_CTL_NO_ACK;
??
Don't remove the IEEE80211_TX_CTL_NO_ACK flag when it was set via radiotap.
Well, ok, but the logic is:

if (flag not set)
       unset flag

which is kinda useless, right?
Haha, right!

Since the tx info is always initialized to 0 the code was useless before
as well :) but now it is even more useless ...

I guess it was good for documentary purposes. Hence, I'll replace it with
a comment instead ...

Helmut
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help