This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Invalid netId.
Description
Invalid netId value.
Possible causes
The netId value does not exist.
Solution
Enter a valid netId value.
Error Message
log off fail.
Description
Failed to exit extended authentication of the specified netId.
Possible causes
The netId value does not exist.
Solution
Enter a valid netId value.
Error Message
Invalid profile.
Description
This error code is reported if the eth eap configuration in profile is invalid.
Possible causes
The profile field value is incorrect.
Solution
Configure the profile field correctly.
Error Message
Invalid result.
Description
This error code is reported if the result value is invalid.
Possible causes
The input result value is not within the range of CustomResult.
Solution
Set result to a value within the range of CustomResult.
Error Message
Invalid size of eap data.
Description
Invalid EAP data length value.
Possible causes
The input EAP data length is different from the value of bufferLen in EapData.
Solution
Ensure that the value of bufferLen is the same as the EAP data length.
Error Message
Invalid net type.
Description
This error code is reported if the network type is invalid.
Possible causes
The input network type is not supported.
Solution
Pass in a supported valid network type: WLAN: 1; ETH: 2.
Error Message
Invalid eap code.
Description
The eapCode value is invalid.
Possible causes
The input eapCode is not within the valid value range.
Solution
The valid values of eapCode are 1, 2, 3, and 4.
Error Message
Invalid eap type.
Description
The eapType is invalid.
Possible causes
The input eapCode is not within the valid value range.
Solution
Pass in a valid eapType, with a value range of [1, 255].
Error Message
netmanager stop.
Description
The netmanager process does not exist.
Possible causes
This error code is reported if the netmanager process is abnormal.
Solution
Reboot the system.
Error Message
Invalid eth state.
Description
This error code is reported if the eth state is invalid.
Possible causes
The Ethernet adapter is not working properly.
Solution
Remove and insert the network cable and try again.
Error Message
internal error.
Description
This error code is reported if a program fails to operate properly.
Possible causes
EAP packet processing exception, such as packet parsing failure or data format error. You can locate and analyze the issue by filtering log keywords wpa_supplicant:EAP.
Authentication process exception, such as state machine error or authentication timeout without response. You can locate and analyze the issue by filtering log keywords entering state.
Certificate processing failure, such as certificate loading failure, certificate parsing error, or key operation failure. You can locate and analyze the issue by filtering log keywords wpa_supplicant:SSL.
Callback function exception, such as incorrect callback implementation or uncaught exception thrown. You can locate and analyze the issue by filtering log keywords replyCustomEapData.
Communication failure, such as socket communication exception or connection disconnection. This cause is common for the startEthEap and logOffEthEap APIs. You can filter log keywords startEap or stopEap to check whether the command is delivered properly.
Solution
Check system logs to locate the specific exception cause. Filter log keywords supplicant to locate EAP packet processing exceptions, and filter log keywords replyCustomEapData to locate callback function exceptions. For communication exceptions triggered by the startEthEap and logOffEthEap APIs, filter log keywords startEap or stopEap to locate the issue.
Ensure that the EAP authentication process call sequence is correct, and avoid proceeding to the next step before the previous step is complete.
Check whether the certificate and key configurations are correct, and ensure that the certificate format meets the requirements.
Ensure that the callback is not unregistered repeatedly before unregistration, and is used normally after registration.
If the problem persists, restart the device and try again.