Don’t know if this is really your problem but you may check the following:
#include <drv_types.h> looks in a standard list of system directories as mentioned in #include Syntax.
I confirmed the drv_types.h does exist in the header directory
Can you check that this header directory is included in the standard list of system directories. Or you can add your directory using the option in above link. Or you can try changing to a user include like #include "drv_types.h"
Guess the initial post is yours. And you had the same error with the previous kernel. Just want to make sure it’s not the same problem with same solution.
I think what you are referring to is sudo -i which gives you super privileges as the actual user named root. As for the wireless driver issue it seems to be a problem with the make seeing the include file it is in the proper directory. I have considered changing the makefile but wouldn’t know where and what to change in the file
Yes I have tried make both with and without sudo with the same results. I’m not understanding what you want me to do with the include can you post commands step by step please?
This is the directory where you downloaded from github. Right? I think the drv_types.h is supposed to be in the sub folder include. Can you check that?
It would be possible to alter the source file to use exactly this file in this location. But perhaps if going this way this has to be done for more source files…
As far as I understand the Makefile (never used make before!) it should pass the ‘include’ directory as an argument to gcc. But I do not know why this does not work.
I downloaded from github myself. Had to adapt two source files to match my headers (some difference based on kernel version). But after that everything compiles. No problems with missing header files yet (compiling while typing).
I suggest you remove (or rename) the complete folder rtl8831-main. Then do a fresh download from github and run make.
The git repository seems to be ok (worked for me). I guess there must be something in settings of make or/and gcc. Or there is an issue with environment variables.