linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Felix Fietkau <nbd@openwrt.org>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2] mac80211: add helper functions for tracking P2P NoA state
Date: Mon, 16 Dec 2013 16:09:27 +0100	[thread overview]
Message-ID: <1387206567.2057.21.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1386626388-45880-1-git-send-email-nbd@openwrt.org>

On Mon, 2013-12-09 at 22:59 +0100, Felix Fietkau wrote:

> +static u32
> +ieee80211_get_noa_absent_time(struct ieee80211_noa_data *data, u32 tsf)
> +{
> +	s32 offset = 0;
> +	int tries = 0;
> +
> +	ieee80211_extend_absent_time(data, tsf, &offset);
> +	do {
> +		if (!ieee80211_extend_absent_time(data, tsf, &offset))
> +			break;
> +
> +		tries++;
> +	} while (tries < 5);

What's "tries < 5"?

johannes


  reply	other threads:[~2013-12-16 15:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-09 21:59 [PATCH v2] mac80211: add helper functions for tracking P2P NoA state Felix Fietkau
2013-12-16 15:09 ` Johannes Berg [this message]
2013-12-16 15:24   ` Felix Fietkau
2013-12-16 20:33 ` 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=1387206567.2057.21.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nbd@openwrt.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).