fix: handle decode of _FreqListRange for Range512,256,128
Since Range512, Range256, and Range128 are all _freqListRange and have the same basic decode operation, they are decoded the same, but Range256 and Range128 add the decoded ARFCNs to the origin ARFCN mod 1024. Range512 does not add to the original ARFCN.
This commit is contained in:
parent
26c1a0a6bd
commit
722ee3e6d3
|
@ -305,8 +305,12 @@ class _FreqListAlt2(Envelope):
|
|||
"""returns the list of ARFCNs set
|
||||
"""
|
||||
orig_arfcn = self[1].get_val()
|
||||
return [orig_arfcn] + \
|
||||
list(map(lambda x: orig_arfcn + x, self[2].get_alt()._decode()))
|
||||
# 512 is a special case of _FreqListRange in that the ARFCNs are not added to ORIG-ARFCN mod 1024
|
||||
if self[2].get_alt()._Range == 512:
|
||||
return [orig_arfcn] + self[2].get_alt()._decode()
|
||||
else:
|
||||
return [orig_arfcn] + \
|
||||
list(map(lambda x: (orig_arfcn + x) % 1024, self[2].get_alt()._decode()))
|
||||
|
||||
def encode(self, arfcns):
|
||||
"""sets a list of ARFCNs
|
||||
|
|
Loading…
Reference in New Issue