In result log which was on expired pastebin it was visible that patch that was printed after "Let's check cdc_mbim_module_path" message include line break. It was right after kernel version, that filled by #define OSRELEASE_FILE "/proc/sys/kernel/osrelease"
Problem is that string in /proc/sys/kernel/osrelease include line break symbol, and nothing in dispatcher-c-rewrite.patch drop this new line symbol, so when check_mbim_available trying to check if cdc_mbim kernel module is present, it looking for "4.19.0-041900-generic\n" (\n is not visible but it's part of the string) instead of "4.19.0-041900-generic" folder.
> Please include all the debugging information you can here
check_mbim_ available function was modified like this:
check_mbim_ available (void) module_ path;
{
int kver_fd = -1;
ssize_t read_count;
char kversion[100];
char *cdc_mbim_
struct stat buf;
kver_fd = open(OSRELEASE_ FILE, O_RDONLY);
asprintf( &cdc_mbim_ module_ path, "%s/%s/%s",
MODULES_ PATH,
kversion,
CDC_ MBIM_DRIVER_ PATH); module_ path : %s\n", cdc_mbim_ module_ path); cdc_mbim_ module_ path, &buf)) CDC_MBIM_ SYS_PATH, &buf))
if (kver_fd > -1) {
read_count = read(kver_fd, &kversion, 100);
if (read_count > 0) {
+ modeswitch_log("\n -> Let's check cdc_mbim_
if (!stat(
goto success;
if (!stat(
goto success;
}
}
free( cdc_mbim_ module_ path); cdc_mbim_ module_ path);
return 0;
success:
free(
return 1;
}
In result log which was on expired pastebin it was visible that patch that was printed after "Let's check cdc_mbim_ module_ path" message include line break. It was right after kernel version, that filled by #define OSRELEASE_FILE "/proc/ sys/kernel/ osrelease"
Example: kernel/ osrelease 041900- generic kernel/ osrelease | hexdump
~$ cat /proc/sys/
4.19.0-
~$ cat /proc/sys/
0000000 2e34 3931 302e 302d 3134 3039 2d30 6567
0000010 656e 6972 0a63
0000016
Problem is that string in /proc/sys/ kernel/ osrelease include line break symbol, and nothing in dispatcher- c-rewrite. patch drop this new line symbol, so when check_mbim_ available trying to check if cdc_mbim kernel module is present, it looking for "4.19.0- 041900- generic\ n" (\n is not visible but it's part of the string) instead of "4.19.0- 041900- generic" folder.