Unable to compile qmi_wwan_q driver on Jetson Linux 36.3 (Linux 5.15 LTS based)

I am trying to compile qmi_wwan_q driver (ver. 1.2.6) for Nvidia Jetson Orin Nano and I am getting the following error

ERROR: modpost: “rmnet_nss_callbacks” [/home/cm_v2/lemvos/5g/qmi_wwan_q/qmi_wwan_q.ko] undefined!
ERROR: modpost: “usb_cdc_wdm_register” [/home/cm_v2/lemvos/5g/qmi_wwan_q/qmi_wwan_q.ko] undefined!

make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.15.136-tegra/build M=/home/cm_v2/lemvos/5g/qmi_wwan_q modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.136-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source'
  CC [M]  /home/cm_v2/lemvos/5g/qmi_wwan_q/qmi_wwan_q.o
  MODPOST /home/cm_v2/lemvos/5g/qmi_wwan_q/Module.symvers
ERROR: modpost: "rmnet_nss_callbacks" [/home/cm_v2/lemvos/5g/qmi_wwan_q/qmi_wwan_q.ko] undefined!
ERROR: modpost: "usb_cdc_wdm_register" [/home/cm_v2/lemvos/5g/qmi_wwan_q/qmi_wwan_q.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:133: /home/cm_v2/lemvos/5g/qmi_wwan_q/Module.symvers] Error 1
make[2]: *** Deleting file '/home/cm_v2/lemvos/5g/qmi_wwan_q/Module.symvers'
make[1]: *** [Makefile:1830: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.136-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source'
make: *** [Makefile:28: default] Error 2

It does work in the previous releases of Jetson LInux based on 5.10 LTS.

Is there a new version of qmi_wwan_Q driver? or do I need to install anything else?

Please help!

Thank you!

it has nothing to do with the qmi_wwan_q.c.
You don’t need the rmnet_nss_callbacks.
For the usb_cdc_wdm_register, make sure that the cdc_wdm is buillt in already.