Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: GNUser on July 02, 2020, 03:14:59 PM

Title: [Solved] hostapd fails silently (no error messages whatsoever)
Post by: GNUser on July 02, 2020, 03:14:59 PM
I'm on TC11 64-bit, playing around with my hardware and trying to figure out how to use my wireless interface in STA (client) and AP (host) modes simultaneously, which the hardware supports. I found a nice step-by-step guide here: http://arnaudr.io/2015/12/05/setting-up-a-wi-fi-software-access-point/

But never mind the particularities. The problem is that  hostapd  refuses to talk to me: It fails silently, with no terminal output whatsoever.

It doesn't matter if I edit /usr/local/etc/hostapd.conf then start  hostapd  like this:

Code: [Select]
$ sudo /usr/local/etc/init.d/hostapd start
Or create /home/bruno/hostapd.conf and start  hostapd  like this:

Code: [Select]
$ sudo hostapd -dd /home/bruno/hostapd.confEither way, it's a silent failure with no output from hostapd whatsoever.

Can anyone image a reason why even with verbose output (-d or -dd) there is absolutely no terminal output from hostapd? I don't need help with the specifics of my project, I just need to figure out a way to make  hostapd  talk to me (make its error messages visible)!
Title: Re: hostapd fails silently (no error messages whatsoever)
Post by: GNUser on July 02, 2020, 08:46:49 PM
hostapd outputs messages to the terminal just fine in TC10 32bit, TC11 32bit, and other GNU/Linux distros. The problem seems specific to TC10 64bit and TC11 64bit.

I will try recompiling hostapd for TC10/TC11 64bit. If it works as expected, I'll submit updated extensions.
Title: Re: hostapd fails silently (no error messages whatsoever)
Post by: GNUser on July 02, 2020, 10:37:57 PM
Recompiling fixed the problem. I submitted an updated extension for TC11 64bit.
Title: Re: hostapd fails silently (no error messages whatsoever)
Post by: curaga on July 03, 2020, 02:27:16 AM
In such situations, strace or gdb may offer some info.
Title: Re: hostapd fails silently (no error messages whatsoever)
Post by: GNUser on July 03, 2020, 08:12:01 AM
Thank you, curaga. In this case, it was easier to just recompile. Everything works perfectly now.
juanito, kindly post the updated extension at your convenience.

Thread may be marked as solved.
Title: Re: hostapd fails silently (no error messages whatsoever)
Post by: Rich on July 03, 2020, 08:40:38 AM
Hi GNUser
... Thread may be marked as solved.
Done. :)