WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1343
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, 05:39:43 AM by Rich »

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1343
Re: hostapd fails silently (no error messages whatsoever)
« Reply #1 on: July 02, 2020, 05: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

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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: hostapd fails silently (no error messages whatsoever)
« Reply #3 on: July 02, 2020, 11:27:16 PM »
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

  • Hero Member
  • *****
  • Posts: 1343
Re: hostapd fails silently (no error messages whatsoever)
« Reply #4 on: July 03, 2020, 05: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: 11178
Re: hostapd fails silently (no error messages whatsoever)
« Reply #5 on: July 03, 2020, 05:40:38 AM »
Hi GNUser
... Thread may be marked as solved.
Done. :)