This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.
☎ Max.Suraev at fairwaves.co17.06.2014 20:05, Sylvain Munaut пишет:
> static inline uint32_t
> osmo_a5_fn(uint32_t fn_count)
> {
> int t1 = fn_count >> 11;
> int t2 = fn_count & 0x1f;
> int t3 = (fn_count >> 5) & 0x3f;
> return (t1 * 26 * 51) + ((t3 - t2 + 26) % 26) * 51 + t3;
> }
>
> There, it's written. No need to debug it, it's correct. No need to
> test it, it's going to be in the test path of the A5/[3,4] test and
> tested automatically as part of them.
>
Surprisingly those tests fail for some of the test vectors for me.
How exactly you've applied and tested this function?
Could you share entire a5_test.c?
--
best regards,
Max, http://fairwaves.co