tici: fix leftover APN config from AT&T (#30458)

This commit is contained in:
Adeeb Shihadeh 2023-11-13 21:33:22 -08:00 committed by GitHub
parent c0942dbf9f
commit cc32a6bf9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -533,8 +533,9 @@ class Tici(HardwareBase):
pass
# blue prime config
if sim_id.startswith('8901410'):
os.system('mmcli -m any --3gpp-set-initial-eps-bearer-settings="apn=Broadband"')
blue_prime = sim_id.startswith('8901410')
initial_apn = "Broadband" if blue_prime else ""
os.system(f'mmcli -m any --3gpp-set-initial-eps-bearer-settings="apn={initial_apn}"')
def get_networks(self):
r = {}