I updated to kernel 6.17.7 and finally it compiled. I wasn't able to replicate the compilation manually, i still get the typedefs.h not found error but i might be doing something wrong, idk. I just installed the kernel from newest kernel from sid and it worked. I am finally able to update kernel and i'm very happy about it. :) Thanks! I don't know if it's still broken but at least my wifi works so idk.

