linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Pedersen, Thomas" <c_tpeder@qca.qualcomm.com>
To: Kalle Valo <kvalo@qca.qualcomm.com>
Cc: <linux-wireless@vger.kernel.org>, <ath6kl-devel@qualcomm.com>
Subject: Re: [PATCH] ath6kl: support TX error rate notification
Date: Wed, 11 Jul 2012 12:37:44 -0700	[thread overview]
Message-ID: <20120711193744.GA4334@pista> (raw)
In-Reply-To: <4FFDD42E.6010401@qca.qualcomm.com>

On Wed, Jul 11, 2012 at 10:29:50PM +0300, Kalle Valo wrote:
> On 07/11/2012 10:23 PM, Thomas Pedersen wrote:
> > The ath6kl firmware can monitor a connection and report when a certain
> > TX failure threshold is crossed. Support this configuration and event
> > reporting on compatible firmwares.
> > 
> > Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
> 
> [...]
> 
> > +	ev = (struct wmi_txe_notify_event *) datap;
> > +	rate = le32_to_cpu(ev->rate);
> > +	pkts = le32_to_cpu(ev->pkts);
> > +	ath6kl_dbg(ATH6KL_DBG_WMI, "TXE notify event: peer %pM rate %d pkts %d\n",
> > +		   vif->bssid, rate, pkts);
> 
> Empty line before the ath6kl_dbg() call, please.

Merge damage. Will fix.

> > +int ath6kl_wmi_set_txe_notify(struct wmi *wmi, u8 idx,
> > +			      u32 rate, u32 pkts, u32 intvl)
> > +{
> > +	struct sk_buff *skb;
> > +	struct wmi_txe_notify_cmd *cmd;
> > +
> > +	skb = ath6kl_wmi_get_new_buf(sizeof(*cmd));
> > +	if (!skb)
> > +		return -ENOMEM;
> > +
> > +	cmd = (struct wmi_txe_notify_cmd *) skb->data;
> > +	cmd->rate = rate;
> > +	cmd->pkts = pkts;
> > +	cmd->intvl = intvl;
> 
> cpu_to_le32()?

Of course.

> > +/* WMI_SET_TXE_NOTIFY_CMD */
> > +struct wmi_txe_notify_cmd {
> > +	u32 rate;
> > +	u32 pkts;
> > +	u32 intvl;
> > +} __packed;
> > +
> > +/* WMI_TXE_NOTIFY_EVENTID */
> > +struct wmi_txe_notify_event {
> > +	u32 rate;
> > +	u32 pkts;
> > +} __packed;
> 
> Endian annotation?

Ok. v2 coming.

Thanks!
Thomas

      reply	other threads:[~2012-07-11 19:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11 19:23 [PATCH] ath6kl: support TX error rate notification Thomas Pedersen
2012-07-11 19:29 ` Kalle Valo
2012-07-11 19:37   ` Pedersen, Thomas [this message]

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=20120711193744.GA4334@pista \
    --to=c_tpeder@qca.qualcomm.com \
    --cc=ath6kl-devel@qualcomm.com \
    --cc=kvalo@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).