<p>Robert Falkenberg <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/23632">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Use zero padding for EF['ACC'] field<br><br>The ``EF_ACC`` field defines the access control class (ACC)<br>for a subscriber.<br><br>Without this patch, the implementation adds padding 1 towards<br>the most significant bits if the input is shorter than 2 bytes.<br><br>However, it should be padded with 0, otherwise additional ACCs<br>are allocated to the subscriber. (Probably only a single bit<br>shall be set to 1)<br><br>Excerpt from [ETSI TS 131 102, 4.2.15](https://www.etsi.org/deliver/etsi_ts/131100_131199/131102/04.15.00_60/ts_131102v041500p.pdf):<br><br>```<br>EF_ACC: Two bytes: B1, B2<br><br>B1.b8...B1.b4: high priority users (class 15...11)<br>B1.b3: always 0<br>B1.b2...B1.b2 and B2.b7...B2.b0: normal priority users (class 9...0) - to be evenly distributed across subscribers<br>```<br><br>**Legend:** Byte X, bit Y: BX.bY<br><br><br>Change-Id: Ie9040c6b127c268878a0845ed73d0918ec6bbb08<br>---<br>M pySim/cards.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/32/23632/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23632">change 23632</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23632"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie9040c6b127c268878a0845ed73d0918ec6bbb08 </div>
<div style="display:none"> Gerrit-Change-Number: 23632 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Robert Falkenberg <robert.falkenberg@tu-dortmund.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>