From: Christian Lamparter <chunkeey@googlemail.com>
To: Vivek Natarajan <vnatarajan@atheros.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
johannes@sipsolutions.net
Subject: Re: [PATCH v3] mac80211: Retry null data frame for power save.
Date: Mon, 8 Feb 2010 13:42:19 +0100 [thread overview]
Message-ID: <201002081342.20062.chunkeey@googlemail.com> (raw)
In-Reply-To: <1265631421-2574-1-git-send-email-vnatarajan@atheros.com>
On Monday 08 February 2010 13:17:00 Vivek Natarajan wrote:
> Even if the null data frame is not acked by the AP, mac80211
> goes into power save. This might lead to loss of frames
> from the AP.
> Prevent this by restarting dynamic_ps_timer when ack is not
> received for null data frames.
>
> Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
> ---
> include/net/mac80211.h | 1 +
> net/mac80211/ieee80211_i.h | 1 +
> net/mac80211/mlme.c | 20 +++++++++++++++-----
> net/mac80211/status.c | 16 ++++++++++++++--
> 4 files changed, 31 insertions(+), 7 deletions(-)
>
> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index 74ccf30..92a3caf 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -978,6 +978,7 @@ enum ieee80211_hw_flags {
> IEEE80211_HW_SUPPORTS_STATIC_SMPS = 1<<15,
> IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS = 1<<16,
> IEEE80211_HW_SUPPORTS_UAPSD = 1<<17,
> + IEEE80211_HW_TX_STATUS = 1<<18,
> };
It might be a good idea to add some documentation for new flags.
Otherwise this can easily lead to confusing (e.g.: Does
HW_TX_STATUS mean that the HW reports not just ACKs, but also
when if the frame was filtered by the HW, or if the HW reports
the rate control information (retries & retry index) as well?)
On a related issue: What about _inverting_ the flag, so it will
be set for devices which can't give any accurate tx_status
information. This has the advantage that we don't have to touch
other drivers?
Regards,
Chr
next prev parent reply other threads:[~2010-02-08 12:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-08 12:17 [PATCH v3] mac80211: Retry null data frame for power save Vivek Natarajan
2010-02-08 12:17 ` [PATCH] mac80211: Reset dynamic ps timer in Rx path Vivek Natarajan
2010-02-08 12:42 ` Christian Lamparter [this message]
2010-02-08 13:13 ` [PATCH v3] mac80211: Retry null data frame for power save Vivek Natarajan
2010-02-08 16:24 ` Johannes Berg
2010-02-08 20:30 ` Christian Lamparter
2010-02-08 21:02 ` Christian Lamparter
2010-02-09 7:57 ` Johannes Berg
2010-02-09 8:36 ` Vivek Natarajan
2010-02-09 8:57 ` Johannes Berg
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=201002081342.20062.chunkeey@googlemail.com \
--to=chunkeey@googlemail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=vnatarajan@atheros.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;
as well as URLs for NNTP newsgroup(s).