All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Johnson <quic_jjohnson@quicinc.com>
To: Luca Coelho <luca@coelho.fi>, <johannes@sipsolutions.net>,
	<kvalo@kernel.org>
Cc: <gregory.greenman@intel.com>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 2/7] cfg80211: add a function for reporting TX status with hardware timestamps
Date: Wed, 6 Apr 2022 10:18:40 -0700	[thread overview]
Message-ID: <907e5b13-ceaa-4ae3-9d61-a0a5d0eab20b@quicinc.com> (raw)
In-Reply-To: <iwlwifi.20220406145756.721e5cd5a682.I411bb8c79a26ffb33898bea2075f6779c7da0cb4@changeid>

On 4/6/2022 5:09 AM, Luca Coelho wrote:
> From: Avraham Stern <avraham.stern@intel.com>
> 
> Add a function for reporting TX status with hardware timestamps. This
> function shall be used for reporting the TX status of Timing
> measurement and Fine timing measurement action frames by devices that
> support reporting hardware timestamps.
> 
> Signed-off-by: Avraham Stern <avraham.stern@intel.com>
> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
> ---
>   include/net/cfg80211.h | 47 ++++++++++++++++++++++++++++++++++++++++--
>   net/wireless/nl80211.c | 42 ++++++++++++++++++++++++-------------
>   2 files changed, 73 insertions(+), 16 deletions(-)
> 
> diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
> index 68713388b617..13c2ad88adb1 100644
> --- a/include/net/cfg80211.h
> +++ b/include/net/cfg80211.h
> @@ -7574,6 +7574,38 @@ static inline bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq,
>   				    flags);
>   }
>   
> +/**
> + * struct cfg80211_tx_status - TX status for management frame information
> + *
> + * @cookie: Cookie returned by cfg80211_ops::mgmt_tx()
> + * @tx_tstamp: hardware TX timestamp in nanoseconds
> + * @ack_tstamp: hardware ack RX timestamp in nanoseconds
> + * @buf: Management frame (header + body)
> + * @len: length of the frame data
> + * @ack: Whether frame was acknowledged
> + */
> +struct cfg80211_tx_status {
> +	u64 cookie;
> +	u64 tx_tstamp;
> +	u64 ack_tstamp;
> +	const u8 *buf;
> +	size_t len;
> +	bool ack;
> +};
> +
> +/**
> + * cfg80211_mgmt_tx_status_ext - TX status notification with extended info
> + * @wdev: wireless device receiving the frame
> + * @status: TX status data
> + * @gfp: context flags
> + *
> + * This function is called whenever a management frame was requested to be
> + * transmitted with cfg80211_ops::mgmt_tx() to report the TX status of the
> + * transmission attempt with extended info.
> + */
> +void cfg80211_mgmt_tx_status_ext(struct wireless_dev *wdev,
> +				 struct cfg80211_tx_status *status, gfp_t gfp);

can/should status be const?

snipping the rest, but consider for all cases where status is now passed 
as a struct pointer

/jeff

  reply	other threads:[~2022-04-06 19:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 12:09 [PATCH 0/7] cfg80211/mac80211: updates intended for v5.19 2022-04-06 Luca Coelho
2022-04-06 12:09 ` [PATCH 1/7] nl80211: add RX and TX timestamp attributes Luca Coelho
2022-04-07  4:10   ` Kalle Valo
2022-04-06 12:09 ` [PATCH 2/7] cfg80211: add a function for reporting TX status with hardware timestamps Luca Coelho
2022-04-06 17:18   ` Jeff Johnson [this message]
2022-04-06 12:09 ` [PATCH 3/7] cfg80211/nl80211: move rx management data into a struct Luca Coelho
2022-04-06 17:20   ` Jeff Johnson
2022-04-06 12:09 ` [PATCH 4/7] cfg80211: add hardware timestamps to frame RX info Luca Coelho
2022-04-06 12:09 ` [PATCH 5/7] ieee80211: add helper functions for detecting TM/FTM frames Luca Coelho
2022-04-06 12:09 ` [PATCH 6/7] mac80211: add hardware timestamps for RX and TX Luca Coelho
2022-04-07  4:16   ` Kalle Valo
2022-04-06 12:09 ` [PATCH 7/7] iwlwifi: mvm: report hardware timestamps in RX/TX status Luca Coelho

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=907e5b13-ceaa-4ae3-9d61-a0a5d0eab20b@quicinc.com \
    --to=quic_jjohnson@quicinc.com \
    --cc=gregory.greenman@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=kvalo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luca@coelho.fi \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.