From: Felix Fietkau <nbd@openwrt.org>
To: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
johannes@sipsolutions.net, mickflemm@gmail.com,
mcgrof@qca.qualcomm.com, rmanohar@qca.qualcomm.com,
adrian@freebsd.org, ath5k-devel@lists.ath5k.org,
bvahl@net.t-labs.tu-berlin.de
Subject: Re: [PATCH v2] ath5k: make use of the new rate control API
Date: Fri, 07 Jun 2013 12:58:41 +0200 [thread overview]
Message-ID: <51B1BCE1.6080200@openwrt.org> (raw)
In-Reply-To: <1370593505-4439-1-git-send-email-thomas@net.t-labs.tu-berlin.de>
On 2013-06-07 10:25 AM, Thomas Huehn wrote:
> This patch enabels ath5k to use the new rate table to lookup each
> mrr rate and retry information per packet.
>
> Signed-off-by: Benjamin Vahl <bvahl@net.t-labs.tu-berlin.de>
> Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
> ---
> drivers/net/wireless/ath/ath5k/base.c | 77 ++++++++++++++++++++-----
> drivers/net/wireless/ath/ath5k/base.h | 14 +++--
> drivers/net/wireless/ath/ath5k/mac80211-ops.c | 2 +-
> 3 files changed, 72 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
> index 7f702fe..c63759f 100644
> --- a/drivers/net/wireless/ath/ath5k/base.c
> +++ b/drivers/net/wireless/ath/ath5k/base.c
> @@ -1587,6 +1633,8 @@ ath5k_tx_frame_completed(struct ath5k_hw *ah, struct sk_buff *skb,
>
> ieee80211_tx_info_clear_status(info);
>
> + memcpy(info->status.rates, bf->rates, sizeof(info->status.rates));
> +
> for (i = 0; i < ts->ts_final_idx; i++) {
> struct ieee80211_tx_rate *r =
> &info->status.rates[i];
Please make sure that either this code is able to deal with a size
mismatch of info->status.rates vs. bf->rates, or that it at least fails
at compile time if the size of info->status.rate gets changed.
- Felix
next prev parent reply other threads:[~2013-06-07 10:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-07 8:25 [PATCH v2] ath5k: make use of the new rate control API Thomas Huehn
2013-06-07 10:58 ` Felix Fietkau [this message]
2013-06-07 12:47 ` [ath5k-devel] " Thomas Hühn
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=51B1BCE1.6080200@openwrt.org \
--to=nbd@openwrt.org \
--cc=adrian@freebsd.org \
--cc=ath5k-devel@lists.ath5k.org \
--cc=bvahl@net.t-labs.tu-berlin.de \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mcgrof@qca.qualcomm.com \
--cc=mickflemm@gmail.com \
--cc=rmanohar@qca.qualcomm.com \
--cc=thomas@net.t-labs.tu-berlin.de \
/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.