We currently use a zero language ID to retrieve strings such as the ECM/NCM MAC address. This works on most hardware devices, but is known to fail on some software emulated CDC-NCM devices. Fix by using the first supported language ID, falling back to English (0x0409) if any error occurs when fetching the list of supported languages. This matches the behaviour of the Linux kernel. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
843 |
|
843 |
|
844 |
|
844 |
|
845 |
|
845 |
|
|
846 |
|
|
|
847 |
|
|
|
848 |
|
|
|
849 |
|
|
|
850 |
|
|
|
851 |
|
|
|
852 |
|
|
|
853 |
|
|
|
854 |
|
|
|
855 |
|
|
|
856 |
|
|
|
857 |
|
|
|
858 |
|
|
|
859 |
|
|
|
860 |
|
|
|
861 |
|
|
|
862 |
|
|
|
863 |
|
|
|
864 |
|
|
|
865 |
|
|
|
866 |
|
|
|
867 |
|
|
|
868 |
|
|
|
869 |
|
|
|
870 |
|
|
|
871 |
|
|
|
872 |
|
|
|
873 |
|
|
846 |
|
874 |
|
847 |
|
875 |
|
848 |
|
876 |
|
849 |
|
877 |
|
850 |
|
878 |
|
851 |
|
|
|
|
879 |
|
|
852 |
|
880 |
|
853 |
|
881 |
|
854 |
|
882 |
|
|
|
||
864 |
|
892 |
|
865 |
|
893 |
|
866 |
|
894 |
|
|
895 |
|
|
|
896 |
|
|
|
897 |
|
|
|
898 |
|
|
|
899 |
|
|
|
900 |
|
|
|
901 |
|
|
867 |
|
902 |
|
868 |
|
903 |
|
869 |
|
904 |
|
|
|
||
223 |
|
223 |
|
224 |
|
224 |
|
225 |
|
225 |
|
|
226 |
|
|
|
227 |
|
|
|
228 |
|
|
226 |
|
229 |
|
227 |
|
230 |
|
228 |
|
231 |
|
|
|
||
728 |
|
731 |
|
729 |
|
732 |
|
730 |
|
733 |
|
|
734 |
|
|
|
735 |
|
|
|
736 |
|
|
731 |
|
737 |
|
732 |
|
738 |
|
733 |
|
739 |
|