Searched refs:sn_len (Results 1 – 1 of 1) sorted by relevance
2199 int sn_len; in on_cmd_atcmdinfo_serial_number() local2228 sn_len = len - (val_start - value); in on_cmd_atcmdinfo_serial_number()2229 if (sn_len < MDM_HL7800_SERIAL_NUMBER_STRLEN) { in on_cmd_atcmdinfo_serial_number()2230 LOG_WRN("sn too short (len:%d)", sn_len); in on_cmd_atcmdinfo_serial_number()2231 } else if (sn_len > MDM_HL7800_SERIAL_NUMBER_STRLEN) { in on_cmd_atcmdinfo_serial_number()2232 LOG_WRN("sn too long (len:%d)", sn_len); in on_cmd_atcmdinfo_serial_number()2233 sn_len = MDM_HL7800_SERIAL_NUMBER_STRLEN; in on_cmd_atcmdinfo_serial_number()2236 strncpy(iface_ctx.mdm_sn, val_start, sn_len); in on_cmd_atcmdinfo_serial_number()2237 iface_ctx.mdm_sn[sn_len] = 0; in on_cmd_atcmdinfo_serial_number()