Home
last modified time | relevance | path

Searched refs:sn_len (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/modem/
Dhl7800.c2273 int sn_len; in on_cmd_atcmdinfo_serial_number() local
2302 sn_len = len - (val_start - value); in on_cmd_atcmdinfo_serial_number()
2303 if (sn_len < MDM_HL7800_SERIAL_NUMBER_STRLEN) { in on_cmd_atcmdinfo_serial_number()
2304 LOG_WRN("sn too short (len:%d)", sn_len); in on_cmd_atcmdinfo_serial_number()
2305 } else if (sn_len > MDM_HL7800_SERIAL_NUMBER_STRLEN) { in on_cmd_atcmdinfo_serial_number()
2306 LOG_WRN("sn too long (len:%d)", sn_len); in on_cmd_atcmdinfo_serial_number()
2307 sn_len = MDM_HL7800_SERIAL_NUMBER_STRLEN; in on_cmd_atcmdinfo_serial_number()
2310 strncpy(iface_ctx.mdm_sn, val_start, sn_len); in on_cmd_atcmdinfo_serial_number()
2311 iface_ctx.mdm_sn[sn_len] = 0; in on_cmd_atcmdinfo_serial_number()