SLQSGetPLMNName not returning expected results

when I pass mcc=310 and mnc=12 to SLQSGetPLMNName it is returning a short name of Sprint. It should be Verizon. Using SLQS04.00.25 on an EM7565. Any ideas?

From the Docs … "If pMncPcsStatus is not present, an MNC smaller than 100 is assumed to be a two-digit value, and an MNC greater than or equal to 100 is assumed to be a three digit value. " I am guessing this means that pMncPcsStatus is NULL;

char plmn_name[256];
nasPLMNNameReq req;
nasPLMNNameResp resp;
ULONG nRet;

req.mcc = 310;
req.mnc = 12;
req.pMncPcsStatus = NULL;

nRet = SLQSGetPLMNName( &req, &resp );
if ( nRet != eQCWWAN_ERR_NONE )
{
    fprintf(stderr, "Cannot get NAS PLMN Info! %d\n", nRet);
    exit(1);
}

strncpy(plmn_name, (char *)resp.shortName, resp.shortNameLen);
plmn_name[resp.shortNameLen] = '\0';
printf("plmn_name %s\n", plmn_name);

Hi rob.dinoff.ext

Could you please try pkgs API on EM7565?
./pkgs/qa/qatesthostx86_64 -p ./build/bin/hostx86_64/slqssdk -r

t378 SLQSGetPLMNName

Amazingly now saying AT&T …

Is the code to qatesthostx86_64 available? Would be nice to see examples of how to use all the APIs

Enter the testid/testsequence to be executed t378
Invoking test: SLQSGetPLMNName

Test Case 1 / 3 : Invalid Test Case - All params NULL
Return Code: 4 (0x4)
Return Reason: Invalid argument

Test Case 2 / 3 : Valid Test Case - MNC PCS Digit False
Return Code: 0 (0x0)
Return Reason: Success
SPN Encoding :: 0H
SPN Length :: 0H
shortname Encoding :: 0H
shortname Country Initial :: 0H
shortname Spare Bits :: 0H
shortname Length :: 7H
Short Name(ascii) :: BIGFOOT
longname Encoding :: 0H
longname Country Initial :: 0H
longname Spare Bits :: 0H
longname Length :: aH
Long Name(ascii) :: USABIGFOOT

Test Case 3 / 3 : Valid Test Case - All parameters set
Return Code: 0 (0x0)
Return Reason: Success
SPN Encoding :: 0H
SPN Length :: 0H
shortname Encoding :: 0H
shortname Country Initial :: 0H
shortname Spare Bits :: 0H
shortname Length :: 4H
Short Name(ascii) :: AT&T
longname Encoding :: 0H
longname Country Initial :: 0H
longname Spare Bits :: 0H
longname Length :: 4H
Long Name(ascii) :: AT&T

MCC and MNC are what I expect.

t372 SLQSNasGetSysInfo
[… deleted …]
LTE SYSTEM INFORMATION ----
Service Domain Valid : 1
Service Domain : 3
Service Capability Valid: 1
Service Capability : 3
Roam Status Valid : 1
Roam Status : 0
Forbidden System Valid : 1
Is Forbidden System : 1
LAC Valid : 0
LAC : ffff
Cell ID Valid : 1
Cell ID : 6300
Reg Rej Info Valid : 0
Reject Srvc Domain : 0
Reject Cause : 0
Network Id Valid : 1
MCC info : 310
MNC info : 012
TAC Valid : 1
Tracking Area Code : 1
Geo Sys Idx(CDMA) : ffff
Reg Period (CDMA) : ffff
Geo Sys Idx(HDR) : ffff
Geo Sys Idx(GSM) : ffff
Cell Br Cap(GSM) : ffffffff
Geo Sys Idx(WCDMA) : ffff
Cell Br Cap(WCDMA) : ffffffff
Geo Sys Idx(LTE) : ffff
CS Bar Status(GSM): ffffffff
PS Bar Status(GSM): ffffffff
CS Bar Status(WCDMA): ffffffff
PS Bar Status(WCDMA): ffffffff
Voice Supp on LTE: 0
GSM Cipher Domain: ff
WCDMA Cipher Domain: ff
Camped CIOT LTE Operational Mode: ffffffff

Completed t372…

Hi rob.dinoff.ext

No, I don’t have it. It has been built into a binary file.