diff --git a/lte/alt1250/usock_handlers/alt1250_sms.c b/lte/alt1250/usock_handlers/alt1250_sms.c index 0a2dea196..119967617 100644 --- a/lte/alt1250/usock_handlers/alt1250_sms.c +++ b/lte/alt1250/usock_handlers/alt1250_sms.c @@ -728,7 +728,7 @@ int alt1250_sms_init(FAR struct alt1250_s *dev, FAR struct usock_s *usock, if (IS_SMS_UNAVAIL_FWVERSION(dev)) { dbg_alt1250("This ALT1250 FW version does not support SMS.\n"); - *usock_result = -ENOTSUP; + *usock_result = -EAFNOSUPPORT; return REP_SEND_ACK_WOFREE; }