All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Schmidt <stefan@osg.samsung.com>
To: Alexander Aring <aar@pengutronix.de>, linux-wpan@vger.kernel.org
Cc: kernel@pengutronix.de
Subject: Re: [PATCH bluetooth-next] atusb: don't change csma settings while set channel
Date: Tue, 21 Jun 2016 11:36:47 +0200	[thread overview]
Message-ID: <57690AAF.2070000@osg.samsung.com> (raw)
In-Reply-To: <20160620150135.13250-1-aar@pengutronix.de>

Hello.

On 20/06/16 17:01, Alexander Aring wrote:
> This patch fixes the behaviour to not overwrite csma settings when
> set channel afterwards.
>
> Cc: Stefan Schmidt <stefan@osg.samsung.com>
> Signed-off-by: Alexander Aring <aar@pengutronix.de>
> ---
>   drivers/net/ieee802154/atusb.c | 6 +-----
>   1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/net/ieee802154/atusb.c b/drivers/net/ieee802154/atusb.c
> index 52c9051..1056ed1 100644
> --- a/drivers/net/ieee802154/atusb.c
> +++ b/drivers/net/ieee802154/atusb.c
> @@ -366,11 +366,7 @@ static int atusb_channel(struct ieee802154_hw *hw, u8 page, u8 channel)
>   	struct atusb *atusb = hw->priv;
>   	int ret;
>   
> -	/* This implicitly sets the CCA (Clear Channel Assessment) mode to 0,
> -	 * "Mode 3a, Carrier sense OR energy above threshold".
> -	 * We should probably make this configurable. @@@
> -	 */
> -	ret = atusb_write_reg(atusb, RG_PHY_CC_CCA, channel);
> +	ret = atusb_write_subreg(atusb, SR_CHANNEL, channel);
>   	if (ret < 0)
>   		return ret;
>   	msleep(1);	/* @@@ ugly synchronization */

Good point. We have csma ops and iwpan support for csma now this setting 
is no longer needed.

Acked-by: Stefan Schmidt <stefan@osg.samsung.com>

regards
Stefan Schmidt

      reply	other threads:[~2016-06-21  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-20 15:01 [PATCH bluetooth-next] atusb: don't change csma settings while set channel Alexander Aring
2016-06-21  9:36 ` Stefan Schmidt [this message]

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=57690AAF.2070000@osg.samsung.com \
    --to=stefan@osg.samsung.com \
    --cc=aar@pengutronix.de \
    --cc=kernel@pengutronix.de \
    --cc=linux-wpan@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.