Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: wey-yi.w.guy@intel.com
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/2] mac80211: add offload channel switch support
Date: Thu, 06 May 2010 09:44:36 +0200	[thread overview]
Message-ID: <1273131876.3573.28.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1273116842-27189-1-git-send-email-wey-yi.w.guy@intel.com>

Sorry, just thought of something.

On Wed, 2010-05-05 at 20:34 -0700, wey-yi.w.guy@intel.com wrote:

> + * @timestamp: value in microseconds of the 64-bit Time Synchronization
> + *	Function (TSF) timer when the channel switch ie received.

This is not accurate now but see below.

> +		if (beacon)
> +			timestamp = le64_to_cpu(mgmt->u.beacon.timestamp);
> +		else
> +			timestamp = le64_to_cpu(mgmt->u.probe_resp.timestamp);
> +		ieee80211_sta_process_chanswitch(sdata, sw_elem,
> +						 bss, timestamp);
>  	}
>  }
>  
> @@ -1647,7 +1691,8 @@ static void ieee80211_sta_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata,
>  
>  			ieee80211_sta_process_chanswitch(sdata,
>  					&mgmt->u.action.u.chan_switch.sw_elem,
> -					(void *)ifmgd->associated->priv);
> +					(void *)ifmgd->associated->priv,
> +					rx_status->mactime);

For some reason I didn't notice the action frame handling before. Maybe
it would be more consistent to keep using rx_status->mactime even for
beacons? I apologise, this is totally my fault since I suggested using
the beacon time before, but that has a slightly different value relative
to the frame... Hmm. Maybe it would be better after all to require
drivers to provide mactime at least for mgmt frames (beacons + actions)
when they want to implement this callback.

Anyone else have ideas?

johannes


  parent reply	other threads:[~2010-05-06  7:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-06  3:34 [PATCH 1/2] mac80211: add offload channel switch support wey-yi.w.guy
2010-05-06  3:34 ` [PATCH 2/2] mac80211: check channel switch mode for future frames transmit wey-yi.w.guy
2010-05-06  7:44 ` Johannes Berg [this message]
2010-05-06 14:09   ` [PATCH 1/2] mac80211: add offload channel switch support Guy, Wey-Yi W

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1273131876.3573.28.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=wey-yi.w.guy@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox