Re: [PATCH] net: ieee802154: adf7242: Fix erroneous RX enable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2018-07-09 at 11:01 +0200, Stefan Schmidt wrote:
> Hello Alexandru.
> 
> On 25.06.2018 15:49, Alexandru Ardelean wrote:
> > From: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
> > 
> > Only enable RX mode if the netdev is opened.
> > 
> > Signed-off-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
> > Signed-off-by: Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx>
> > ---
> >  drivers/net/ieee802154/adf7242.c | 5 ++++-
> >  1 file changed, 4 insertions(+), 1 deletion(-)
> > 
> > diff --git a/drivers/net/ieee802154/adf7242.c
> > b/drivers/net/ieee802154/adf7242.c
> > index 3e85e9500233..0a240a3f7817 100644
> > --- a/drivers/net/ieee802154/adf7242.c
> > +++ b/drivers/net/ieee802154/adf7242.c
> > @@ -739,7 +739,10 @@ static int adf7242_channel(struct ieee802154_hw
> > *hw, u8 page, u8 channel)
> >  	adf7242_write_reg(lp, REG_CH_FREQ1, freq >> 8);
> >  	adf7242_write_reg(lp, REG_CH_FREQ2, freq >> 16);
> >  
> > -	return adf7242_cmd(lp, CMD_RC_RX);
> > +	if (test_bit(FLAG_START, &lp->flags))
> > +		return adf7242_cmd_rx(lp);
> > +	else
> > +		return adf7242_cmd(lp, CMD_RC_PHY_RDY);
> >  }
> >  
> >  static int adf7242_set_hw_addr_filt(struct ieee802154_hw *hw,
> > 
> 
> This patch has been applied to the wpan tree and will be
> part of the next pull request to net. Thanks!

Thanks

Sorry for the slowness in replying.
I meant to reply sooner to your question, but I needed to take a look
first.

Thanks again
Alex

> 
> regards
> Stefan Schmidt
> ��.n��������+%������w��{.n�����{��
Z���ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux