Searched refs:sn_len (Results 1 – 1 of 1) sorted by relevance
2304 int sn_len; in on_cmd_atcmdinfo_serial_number() local2333 sn_len = len - (val_start - value); in on_cmd_atcmdinfo_serial_number()2334 if (sn_len < MDM_HL7800_SERIAL_NUMBER_STRLEN) { in on_cmd_atcmdinfo_serial_number()2335 LOG_WRN("sn too short (len:%d)", sn_len); in on_cmd_atcmdinfo_serial_number()2336 } else if (sn_len > MDM_HL7800_SERIAL_NUMBER_STRLEN) { in on_cmd_atcmdinfo_serial_number()2337 LOG_WRN("sn too long (len:%d)", sn_len); in on_cmd_atcmdinfo_serial_number()2338 sn_len = MDM_HL7800_SERIAL_NUMBER_STRLEN; in on_cmd_atcmdinfo_serial_number()2341 strncpy(iface_ctx.mdm_sn, val_start, sn_len); in on_cmd_atcmdinfo_serial_number()2342 iface_ctx.mdm_sn[sn_len] = 0; in on_cmd_atcmdinfo_serial_number()