linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>
Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org
Subject: Re: [RFT 3/3] cfg80211: move world roaming check for beacon hints
Date: Thu, 13 Dec 2012 13:23:17 -0800	[thread overview]
Message-ID: <50CA4745.5020904@candelatech.com> (raw)
In-Reply-To: <1355430534-7881-4-git-send-email-mcgrof@do-not-panic.com>

On 12/13/2012 12:28 PM, Luis R. Rodriguez wrote:
> From: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>
>
> We should not add new beacon hints even if the wiphy

Maybe 'even' shouldn't be there?

I'll add this series to our kernels for testing...

Thanks,
Ben

> is not world roaming. Without this we were always adding
> a beacon hint if not world roaming for every non world
> roaming wiphy interface.
>
> Reported-by: Ben Greear <greearb@candelatech.com>
> Reported-by: Johannes Berg <johannes@sipsolutions.net>
> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
> ---
>   net/wireless/reg.c |    5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/net/wireless/reg.c b/net/wireless/reg.c
> index f649b5e..bdc42d9 100644
> --- a/net/wireless/reg.c
> +++ b/net/wireless/reg.c
> @@ -1076,6 +1076,9 @@ static void handle_reg_beacon(struct wiphy *wiphy,
>
>   	chan->beacon_found = true;
>
> +	if (!reg_is_world_roaming(wiphy))
> +		return;
> +
>   	if (wiphy->flags & WIPHY_FLAG_DISABLE_BEACON_HINTS)
>   		return;
>
> @@ -1149,8 +1152,6 @@ static void reg_process_beacons(struct wiphy *wiphy)
>   	 */
>   	if (!last_request)
>   		return;
> -	if (!reg_is_world_roaming(wiphy))
> -		return;
>   	wiphy_update_beacon_reg(wiphy);
>   }
>
>


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


  reply	other threads:[~2012-12-13 21:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-13 20:28 [RFT 0/3] cfg80211: beacon hint improvements Luis R. Rodriguez
2012-12-13 20:28 ` [RFT 1/3] cfg80211: do not process beacon hints if one is already queued Luis R. Rodriguez
2012-12-13 20:28 ` [RFT 2/3] cfg80211: move reg_is_world_roaming() Luis R. Rodriguez
2012-12-13 20:28 ` [RFT 3/3] cfg80211: move world roaming check for beacon hints Luis R. Rodriguez
2012-12-13 21:23   ` Ben Greear [this message]
2012-12-14 18:10 ` [RFT 0/3] cfg80211: beacon hint improvements Ben Greear

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=50CA4745.5020904@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@do-not-panic.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).