mirror of git://git.sysmocom.de/ofono
sim: use mask for check of sim file status
It is the first bit of the sim file status who indicates if a file is valid or not. So a mask must be used to check this.
This commit is contained in:
parent
ec34a6f525
commit
aa2c87886f
|
@ -1290,7 +1290,7 @@ static void sim_efbdn_info_read_cb(int ok, unsigned char file_status,
|
|||
if (!ok)
|
||||
goto out;
|
||||
|
||||
if (file_status == SIM_FILE_STATUS_VALID)
|
||||
if (file_status & SIM_FILE_STATUS_VALID)
|
||||
sim_bdn_enabled(sim);
|
||||
|
||||
out:
|
||||
|
@ -1327,7 +1327,7 @@ static void sim_efadn_info_read_cb(int ok, unsigned char file_status,
|
|||
if (!ok)
|
||||
goto out;
|
||||
|
||||
if (file_status != SIM_FILE_STATUS_VALID)
|
||||
if (!(file_status & SIM_FILE_STATUS_VALID))
|
||||
sim_fdn_enabled(sim);
|
||||
|
||||
out:
|
||||
|
|
Loading…
Reference in New Issue