All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: Johannes Berg <johannes@sipsolutions.net>
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:24:22 +0100	[thread overview]
Message-ID: <52AF1B26.3020702@openwrt.org> (raw)
In-Reply-To: <1387206567.2057.21.camel@jlt4.sipsolutions.net>

On 2013-12-16 16:09, Johannes Berg wrote:
> 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"?
Arbitrary value. It tries to merge up to 5 intervals of each NoA
descriptor. I can't let it try forever because that can easily make it
run into an infinite loop if the combination of the NoA descriptors
doesn't leave any presence time inbetween.

- Felix


  reply	other threads:[~2013-12-16 15:24 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
2013-12-16 15:24   ` Felix Fietkau [this message]
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=52AF1B26.3020702@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=johannes@sipsolutions.net \
    --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 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.