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/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/19997 ) Change subject: generate_ma_for_ts(): use OSMO_BYTES_FOR_BITS() macro ...................................................................... generate_ma_for_ts(): use OSMO_BYTES_FOR_BITS() macro Change-Id: I119f930e9cb5d6e52d4b0e1160604c709d942a18 --- M src/osmo-bsc/osmo_bsc_main.c 1 file changed, 1 insertion(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/97/19997/1 diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c index 95eab4a..5aa52cf 100644 --- a/src/osmo-bsc/osmo_bsc_main.c +++ b/src/osmo-bsc/osmo_bsc_main.c @@ -258,9 +258,7 @@ } /* pad it to octet-aligned number of bits */ - ts->hopping.ma_len = num_cell_arfcns / 8; - if (num_cell_arfcns % 8) - ts->hopping.ma_len++; + ts->hopping.ma_len = OSMO_BYTES_FOR_BITS(num_cell_arfcns); n_chan = 0; for (i = 0; i < 1024; i++) { -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/19997 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: I119f930e9cb5d6e52d4b0e1160604c709d942a18 Gerrit-Change-Number: 19997 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200906/75828d1f/attachment.htm>