WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] hostapd fails silently (no error messages whatsoever)  (Read 2731 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
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)!
« Last Edit: July 03, 2020, 08:39:43 AM by Rich »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: hostapd fails silently (no error messages whatsoever)
« Reply #1 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.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: hostapd fails silently (no error messages whatsoever)
« Reply #2 on: July 02, 2020, 10:37:57 PM »
Recompiling fixed the problem. I submitted an updated extension for TC11 64bit.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: hostapd fails silently (no error messages whatsoever)
« Reply #3 on: July 03, 2020, 02:27:16 AM »
In such situations, strace or gdb may offer some info.
The only barriers that can stop you are the ones you create yourself.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: hostapd fails silently (no error messages whatsoever)
« Reply #4 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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11631
Re: hostapd fails silently (no error messages whatsoever)
« Reply #5 on: July 03, 2020, 08:40:38 AM »
Hi GNUser
... Thread may be marked as solved.
Done. :)