lwfinger / rtl8723bu

Driver for RTL8723BU
285 stars 145 forks source link

implicit declaration of function ‘rtw_resume_process’ #55

Open gobo38 opened 7 years ago

gobo38 commented 7 years ago

Want to compile the driver at a odroid c1 and get the error : implicit declaration of function ‘rtw_resume_process’

make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.10.104/build M=/root/rtl8723bu modules make[1]: Entering directory '/lib/modules/3.10.104/build' CC [M] /root/rtl8723bu/core/rtw_cmd.o CC [M] /root/rtl8723bu/core/rtw_security.o CC [M] /root/rtl8723bu/core/rtw_debug.o CC [M] /root/rtl8723bu/core/rtw_io.o CC [M] /root/rtl8723bu/core/rtw_ioctl_query.o CC [M] /root/rtl8723bu/core/rtw_ioctl_set.o CC [M] /root/rtl8723bu/core/rtw_ieee80211.o CC [M] /root/rtl8723bu/core/rtw_mlme.o CC [M] /root/rtl8723bu/core/rtw_mlme_ext.o CC [M] /root/rtl8723bu/core/rtw_wlan_util.o CC [M] /root/rtl8723bu/core/rtw_vht.o CC [M] /root/rtl8723bu/core/rtw_pwrctrl.o /rtl8723bu/core/rtw_pwrctrl.c: In function ‘rtw_late_resume’: /rtl8723bu/core/rtw_pwrctrl.c:2127:3: error: implicit declaration of function ‘rtw_resume_process’ [-Werror=implicit-function-declaration] please can you help me?

lwfinger commented 7 years ago

Apparently no one has tried to build this under Android before. I just pushed some changes that should help. Let me know of other problems,

gobo38 commented 7 years ago

Oh sorry, but you missunderstood. I don't try to run it at Android! I try to compile on an ODROID C1( http://www.hardkernel.com/main/products/prdt_info.php ) running Linux (DietPI) on it. It's mostely the same as a Raspberry2 but with stronger Hardware

lwfinger commented 7 years ago

The code that failed is inside some #ifdef CONFIG_ANDROID* restrictions. That is what suggested Android to me. Does it work now?

gobo38 commented 7 years ago

good morning from here.. ;-) It looks better but not perfect. Now another error is showing

... ... CC [M] /root/rtl8723bu/os_dep/osdep_service.o CC [M] /root/rtl8723bu/os_dep/os_intfs.o CC [M] /root/rtl8723bu/os_dep/usb_intf.o /root/rtl8723bu/os_dep/usb_intf.c:686:12: error: static declaration of ‘rtw_resume_process’ follows non-static declaration static int rtw_resume_process(_adapter padapter) In file included from /root/rtl8723bu/os_dep/usb_intf.c:23:0: /root/rtl8723bu/include/hal_data.h:602:5: note: previous declaration of ‘rtw_resume_process’ was here int rtw_resume_process(_adapter padapter);

`

lwfinger commented 7 years ago

Remote debugging is so much fun. Another try is now ready.

BTW, is your ODROID available for ssh login by me?

gobo38 commented 7 years ago

lol, I'm glad that you have fun..... ;-)

please try

ssh lwfinger@82.149.101.9 pw: remotedebug

Tell me if you need something else

2017-02-26 17:39 GMT+01:00 lwfinger notifications@github.com:

Remote debugging is so much fun.

BTW, is your ODROID available for ssh login by me?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lwfinger/rtl8723bu/issues/55#issuecomment-282568469, or mute the thread https://github.com/notifications/unsubscribe-auth/AY0tp6RkGmPBejuVwZO7Z_1fGD67QeeOks5rgaq4gaJpZM4MMGLm .

lwfinger commented 7 years ago

It now compiles, but there are missing globals. The main cause is that your kernel does not include cfg80211 in the configuration. I disabled CONFIG_IOCTL_CFG80211 and RTW_USE_CFG80211_STA_EVENT in Makefile, and CONFIG_IOCTL_CFG80211 in include/autoconf.h. Once I did that and fixed another code error, then the driver builds. As the device is not plugged in, I could go no further.

Without the cfg80211 functionality, the driver should work, but without the modern hostapd interface. If you wish to use it as an access point, then you will need to rebuild your kernel with CFG80211 enabled.

As the remote account details were posted in an open forum, I have changed the password on that account.

gobo38 commented 7 years ago

wow, fast as lightning.... :) Tank you very much! no need for the cfg80211 functionality. i only use the odroid as a server for my 3d Printer an I don't want a 10meter network cable at my workdesk. Will try later this evening to plug in the WiFi usb stick and configure it. Again, Thank you very much

gobo38 commented 7 years ago

ok, module is up and running, wireless connection is enabled and working. Perfect! Iwill close the ssh Port at my firewall in the next 30 minutes. Tell me if you want to look at the Odroid again then i let the Port established

lwfinger commented 7 years ago

Good to hear. Turnaround is much faster without needing to report results through GitHub.

I meant to say this earlier, but that odroid is pretty snappy. That was my first experience with a 64-bit ARM. With a quad-core CPU at 2 GHz, that could get a lot of work done. I might consider buying one of those for myself.

gobo38 commented 7 years ago

Yes, I love the Odroid. The only problem is that not much support is given for some special tasks. There you are on the better side with an Raspberry pi. so i close down the ssh Port now. Thank you again BTW There is another fine little thing around .. http://www.nanopi.org/ i have one as a server.... it is 40x40mm