Re: [PATCH] mac802154: fix time calculation in ieee802154_configure_durations()

2024-05-20 Thread Miquel Raynal
Hi Stefan, ste...@datenfreihafen.org wrote on Sat, 18 May 2024 23:49:41 +0200: > Hello Miquel, > > On 13.05.24 09:09, Miquel Raynal wrote: > > Hi Dmitry, > > > > + Stefan > > > > dmanti...@yandex.ru wrote on Wed, 8 May 2024 14:40:10 +0300: > > > >> Since 'symbol_duration' of 'struct

Re: [PATCH] mac802154: fix time calculation in ieee802154_configure_durations()

2024-05-18 Thread Stefan Schmidt
Hello Dmitry, On 08.05.24 13:40, Dmitry Antipov wrote: Since 'symbol_duration' of 'struct wpan_phy' is in nanoseconds but 'lifs_period' and 'sifs_period' are both in microseconds, fix time calculation in 'ieee802154_configure_durations()' and use convenient 'NSEC_PER_USEC' in

Re: [PATCH] mac802154: fix time calculation in ieee802154_configure_durations()

2024-05-18 Thread Stefan Schmidt
Hello Miquel, On 13.05.24 09:09, Miquel Raynal wrote: Hi Dmitry, + Stefan dmanti...@yandex.ru wrote on Wed, 8 May 2024 14:40:10 +0300: Since 'symbol_duration' of 'struct wpan_phy' is in nanoseconds but 'lifs_period' and 'sifs_period' are both in microseconds, fix time calculation in

Re: [PATCH] mac802154: fix time calculation in ieee802154_configure_durations()

2024-05-13 Thread Alexander Aring
Hi, On Mon, May 13, 2024 at 3:09 AM Miquel Raynal wrote: > > Hi Dmitry, > > + Stefan > > dmanti...@yandex.ru wrote on Wed, 8 May 2024 14:40:10 +0300: > > > Since 'symbol_duration' of 'struct wpan_phy' is in nanoseconds but > > 'lifs_period' and 'sifs_period' are both in microseconds, fix time >

Re: [PATCH] mac802154: fix time calculation in ieee802154_configure_durations()

2024-05-13 Thread Miquel Raynal
Hi Dmitry, + Stefan dmanti...@yandex.ru wrote on Wed, 8 May 2024 14:40:10 +0300: > Since 'symbol_duration' of 'struct wpan_phy' is in nanoseconds but > 'lifs_period' and 'sifs_period' are both in microseconds, fix time > calculation in 'ieee802154_configure_durations()' and use convenient >

[PATCH] mac802154: fix time calculation in ieee802154_configure_durations()

2024-05-08 Thread Dmitry Antipov
Since 'symbol_duration' of 'struct wpan_phy' is in nanoseconds but 'lifs_period' and 'sifs_period' are both in microseconds, fix time calculation in 'ieee802154_configure_durations()' and use convenient 'NSEC_PER_USEC' in 'ieee802154_setup_wpan_phy_pib()' as well. Compile tested only. Found by