# SLQSGetPLMNName not returning expected results

**URL:** <https://forum.sierrawireless.com/t/slqsgetplmnname-not-returning-expected-results/20569>\
**Category:** MC/EM Series\
**Created:** [June 8, 2020, 7:30pm UTC](https://forum.sierrawireless.com/t/slqsgetplmnname-not-returning-expected-results/20569 "2020-06-08T19:30:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob.dinoff.ext](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rob.dinoff.ext](https://forum.sierrawireless.com/u/rob.dinoff.ext)\
**Post date:** [June 8, 2020, 7:30pm UTC](https://forum.sierrawireless.com/t/slqsgetplmnname-not-returning-expected-results/20569/1 "2020-06-08T19:30:27Z")

</div>

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);
> 
> ```

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forum.sierrawireless.com/u/Donald)\
**Post date:** [June 11, 2020, 4:46am UTC](https://forum.sierrawireless.com/t/slqsgetplmnname-not-returning-expected-results/20569/2 "2020-06-11T04:46:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rob.dinoff.ext](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rob.dinoff.ext](https://forum.sierrawireless.com/u/rob.dinoff.ext)\
**Post date:** [June 11, 2020, 5:46pm UTC](https://forum.sierrawireless.com/t/slqsgetplmnname-not-returning-expected-results/20569/3 "2020-06-11T17:46:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rob.dinoff.ext](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rob.dinoff.ext](https://forum.sierrawireless.com/u/rob.dinoff.ext)\
**Post date:** [June 11, 2020, 6:09pm UTC](https://forum.sierrawireless.com/t/slqsgetplmnname-not-returning-expected-results/20569/4 "2020-06-11T18:09:55Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forum.sierrawireless.com/u/Donald)\
**Post date:** [June 12, 2020, 4:02am UTC](https://forum.sierrawireless.com/t/slqsgetplmnname-not-returning-expected-results/20569/5 "2020-06-12T04:02:31Z")

</div>

Hi rob.dinoff.ext

> [@rob.dinoff.ext](#):
>
> Is the code to qatesthostx86\_64 available?

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