All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Bruno Randolf <bruno@thinktube.com>
Cc: ath5k-devel@lists.ath5k.org, mcgrof@gmail.com,
	mickflemm@gmail.com, linux-wireless@vger.kernel.org,
	linville@tuxdriver.com
Subject: Re: [PATCH 6/6] ath5k: simplify beacon configuration
Date: Wed, 09 Jan 2008 10:32:08 +0100	[thread overview]
Message-ID: <47849498.5070605@gmail.com> (raw)
In-Reply-To: <1199870169-10476-7-git-send-email-bruno@thinktube.com>

On 01/09/2008 10:16 AM, Bruno Randolf wrote:
> make ath5k_beacon_config() clearer and move timer configuration into a seperate
> function. it will be needed later when we can detect HW merges.
> 
> Changes-licensed-under: 3-clause-BSD
> Signed-off-by: Bruno Randolf <bruno@thinktube.com>
> ---
>  drivers/net/wireless/ath5k/base.c |  105 +++++++++++++++++-------------------
>  1 files changed, 50 insertions(+), 55 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
> index 92361df..4f1ff1a 100644
> --- a/drivers/net/wireless/ath5k/base.c
> +++ b/drivers/net/wireless/ath5k/base.c
[...]
> +/*
> + * Configure the beacon timers and interrupts based on the operating mode
> + *
> + * When operating in station mode we want to receive a BMISS interrupt when we
> + * stop seeing beacons from the AP we've associated with so we can look for
> + * another AP to associate with.
> + *
> + * In IBSS mode we need to configure the beacon timers and use a self-linked tx
> + * descriptor if possible. If the hardware cannot deal with that we enable SWBA
> + * interrupts to send the beacons from the interrupt handler.
> + */
> +static void
> +ath5k_beacon_config(struct ath5k_softc *sc)
> +{
> +	struct ath5k_hw *ah = sc->ah;
>  
> -		sc->bmisscount = 0;
> -		ath5k_hw_set_intr(ah, sc->imask);
> +	ath5k_hw_set_intr(ah, 0);
> +	sc->bmisscount = 0;
> +
> +	if (sc->opmode == IEEE80211_IF_TYPE_STA) {
> +		sc->imask |= AR5K_INT_BMISS;
> +	}
> +	else if (sc->opmode == IEEE80211_IF_TYPE_IBSS) {

checkpatch doesn't like this, please put the else path next time on the same 
line as } is.

the output:
WARNING: braces {} are not necessary for single statement blocks
#144: FILE: drivers/net/wireless/ath5k/base.c:2026:
+       if (sc->opmode == IEEE80211_IF_TYPE_STA) {
+               sc->imask |= AR5K_INT_BMISS;
+       }

ERROR: else should follow close brace '}'
#147: FILE: drivers/net/wireless/ath5k/base.c:2029:
+       }
+       else if (sc->opmode == IEEE80211_IF_TYPE_IBSS) {

total: 1 errors, 1 warnings, 130 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

  reply	other threads:[~2008-01-09  9:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09  9:16 ath5k: beacon patches Bruno Randolf
2008-01-09  9:16 ` [PATCH 1/6] ath5k: code cosmetics Bruno Randolf
2008-01-09  9:16   ` [PATCH 2/6] ath5k: rename function ath5k_hw_wait_for_beacon Bruno Randolf
2008-01-09  9:16     ` [PATCH 3/6] ath5k: comment out unused beacon functions and structures Bruno Randolf
2008-01-09  9:16       ` [PATCH 4/6] ath5k: centrally define TSF to TU conversion macro Bruno Randolf
2008-01-09  9:16         ` [PATCH 5/6] ath5k: configure beacons Bruno Randolf
2008-01-09  9:16           ` [PATCH 6/6] ath5k: simplify beacon configuration Bruno Randolf
2008-01-09  9:32             ` Jiri Slaby [this message]
2008-01-09  9:37               ` bruno randolf
2008-01-09 10:11                 ` [PATCH] " Bruno Randolf
2008-01-10 20:21       ` [PATCH 3/6] ath5k: comment out unused beacon functions and structures Luis R. Rodriguez
2008-01-10  0:54   ` [PATCH 1/6] ath5k: code cosmetics Johannes Berg
2008-01-10 13:42     ` Nick Kossifidis
2008-01-10 13:46       ` 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=47849498.5070605@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=ath5k-devel@lists.ath5k.org \
    --cc=bruno@thinktube.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mcgrof@gmail.com \
    --cc=mickflemm@gmail.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 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.