[rt2x00-users] [PATCH 2/3] Revert "rt2x00 : avoid timestamp for monitor injected frame."

Gertjan van Wingerde gwingerde at gmail.com
Fri Feb 11 21:38:45 AEDT 2011


On Fri, Feb 11, 2011 at 9:53 AM, Helmut Schaa
<helmut.schaa at googlemail.com> wrote:
> This reverts commit e81e0aef32bfa7f593b14479b9c7eaa7196798ac "rt2x00 : avoid
> timestamp for monitor injected frame." as it breaks proper timestamp insertion
> into probe responses injected by hostapd for example.
>
> Signed-off-by: Helmut Schaa <helmut.schaa at googlemail.com>
> Cc: Benoit PAPILLAULT <benoit.papillault at free.fr>
> Cc: Alban Browaeys <prahal at yahoo.com>

Acked-by: Gertjan van Wingerde <gwingerde at gmail.com>

> ---
>  drivers/net/wireless/rt2x00/rt2x00queue.c |    9 +++------
>  1 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c
> index ca82b3a..25eb81e 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00queue.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c
> @@ -365,13 +365,10 @@ static void rt2x00queue_create_tx_descriptor(struct queue_entry *entry,
>
>        /*
>         * Beacons and probe responses require the tsf timestamp
> -        * to be inserted into the frame, except for a frame that has been injected
> -        * through a monitor interface. This latter is needed for testing a
> -        * monitor interface.
> +        * to be inserted into the frame.
>         */
> -       if ((ieee80211_is_beacon(hdr->frame_control) ||
> -           ieee80211_is_probe_resp(hdr->frame_control)) &&
> -           (!(tx_info->flags & IEEE80211_TX_CTL_INJECTED)))
> +       if (ieee80211_is_beacon(hdr->frame_control) ||
> +           ieee80211_is_probe_resp(hdr->frame_control))
>                __set_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags);
>
>        /*
> --
> 1.7.1
>
>
> _______________________________________________
> users mailing list
> users at rt2x00.serialmonkey.com
> http://rt2x00.serialmonkey.com/mailman/listinfo/users_rt2x00.serialmonkey.com
>



-- 
---
Gertjan




More information about the users mailing list