Search Linux Wireless

Re: [RFC v2 13/12] cfg80211/mac80211: allow management TX to not wait for ACK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 27, 2011 at 9:32 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
>
> For probe responses it can be useful to not wait for ACK
> to save airtime, so allow userspace to request not waiting
> with a new nl80211 flag.
>
> Since mac80211 needs to be updated for the new function
> prototype anyway implement it right away -- it's just a
> few lines of code.
>
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
> ---
[RFC v2 13/12] ? :)

>        struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
>        struct ieee80211_local *local = sdata->local;
> @@ -1944,10 +1944,15 @@ static int ieee80211_mgmt_tx(struct wiph
>        struct sta_info *sta;
>        struct ieee80211_work *wk;
>        const struct ieee80211_mgmt *mgmt = (void *)buf;
> -       u32 flags = IEEE80211_TX_INTFL_NL80211_FRAME_TX |
> -                   IEEE80211_TX_CTL_REQ_TX_STATUS;
> +       u32 flags;
>        bool is_offchan = false;
>
> +       if (!dont_wait_for_ack)
> +               flags = IEEE80211_TX_CTL_NO_ACK;
> +       else
> +               flags = IEEE80211_TX_INTFL_NL80211_FRAME_TX |
> +                       IEEE80211_TX_CTL_REQ_TX_STATUS;
> +

shouldn't it be the other way around? (i.e. set NO_ACK if dont_wait_for_ack)

Eliad.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux