Open chrisvollorenew opened 1 year ago
I don't have SUNxI device, so you had to test yourself.
After thinking about the code more, I am wondering if CONFIG_PLATFORM_SUNxI
makes any difference to the wifi opertation at all. There are only two functions int platform_wifi_power_on(void)
and int platform_wifi_power_off(void)
. I think the default behavior of these functions for other platforms is just return 0 and do nothing. So it seems that this is for platforms that need special instruction to turn on/off their wifi. This doesn't seem to be an issue with the SUNxI boards. Am I missing something? Does CONFIG_PLATFORM_SUNxI
do anything else important?
It seems also changed MAX_XMITBUF_SZ
, but maybe not important.
Hello, this is a side issue from another issue:
https://github.com/RinCat/RTL88x2BU-Linux-Driver/issues/165
To re-cap: CONFIG_PLATFORM_SUNxI was not compiling because of mach/sys_config.h missing.
I did some research - It looks like we might be able to remove mach/sys_config.h and modify the code to replace. Basically the output from those functions in sys_config.h doesn't seem to be of critical importance.
Here is the mach/sysconfig.h ... it only has a few function definitions that start with script https://github.com/allwinner-zh/linux-3.4-sunxi/blob/master/arch/arm/mach-sunxi/include/mach/sys_config.h
Here's the file in this repo that references those functions, it looks like those functuons are only used to detect errors, and may not be critical to the main operations of the wifi driver ...
https://github.com/RinCat/RTL88x2BU-Linux-Driver/blob/657b7cfde9958e273febdeaeac579902e407f577/platform/platform_ARM_SUNxI_usb.c
I tried this patch and was able to compile successfully with
make CONFIG_PLATFORM_SUNxI=y
, but still need to test: