Newbie here.
I am trying to install a device driver and it does ‘dkms’ in the background.
I have Ubuntu 22.04.5 that has kernel 6.*
When dkms is run, I get compilation errors as the api’s called from device driver source files don’t match Linux headers.
The same driver gets installed on Ubuntu 18 that has kernel 5.*
Can I somehow fix this issue on Ubuntu 22 by installing 5.* headers and forcing dkms to take that ?