Operator name

Hi, I have an RC7620. I am trying to get operator name using both AT and QMI commands. I have noticed that for some SIMs, the at+cops? gives out the correct operator name, but libqmi doesn’t. I tried this API, which keeps returning error code ‘5’ (probably QMI_CORE_ERROR_TLV_NOT_FOUND), for AT&T SIM, though ‘at+cops?’ gives the correct information.
qmi_message_nas_get_operator_name_output_get_service_provider_name()

If anyone has seen this before and has some fix or inputs, kindly share.

Regards,
Sai.

How about using qmicli command?