Questions tagged [hostapd]

A user space daemon for access point and authentication servers.

hostapd is a user space daemon for access point and authentication servers. It implements IEEE 802.11 access point management, IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS authentication server. The current version supports Linux (Host AP, madwifi, mac80211-based drivers) and FreeBSD (net80211).

hostapd is designed to be a "daemon" program that runs in the background and acts as the backend component controlling authentication. hostapd supports separate frontend programs and an example text-based frontend, hostapd_cli, is included with hostapd.

More information can be found at http://w1.fi/hostapd/.

88 questions
0
votes
2 answers

How to solve dereferencing pointer to incomplete type in C?

I tried to modify Hostapd's code to read the nl_pid. After I modified code as below image and compiled it. wpa_printf(MSG_DEBUG, "nl80211: Subscribe to mgmt frames with AP " "handle %p", bss->nl_mgmt); printf("%u",…
I'm Shyan
  • 35
  • 1
  • 6
0
votes
1 answer

WPA Passphrase Not Working for Raspberry Pi as Wireless Router

I have set my Raspberry Pi 3 as a wireless router per instructions here, so that now it has the following contents in…
Inon Peled
  • 691
  • 4
  • 11
0
votes
1 answer

Access point doesn't start with Raspberry Pi 3 built-in Wi-Fi

I have Raspberry Pi 3 and I use it as a Wi-Fi access point. I use Raspberry Pi 3 built-in Wi-Fi adapter for this. Until today, the access point worked. Today it stopped working. I think that Raspberry Pi crashed and I then turn the power off without…
Filip Š
  • 746
  • 2
  • 13
  • 22
0
votes
0 answers

When constantly change the mode(ap 2 sta) of hostapd, the process heap of netifd are rising

I write a script to change the hostapd mode ap to sta and sta to ap which lasts running for serval hours and the process of netifd hanged up. cat proc/id/maps 0400000-0041f000 r-xp 00000000 1f:06 1176 /sbin/netifd 0042f000-00430000 rw-p…
Ryan Hao
  • 11
  • 3
0
votes
2 answers

Hostapd BSSID configuration

We have a device that creates an access point using the MAC address of wlan1 as the BSSID. We are trying to change this default BSSID, and we somehow manage to do it, but it seems our changes don't take an effect on what the clients see as BSSID for…
Edu Ponz
  • 37
  • 1
  • 7
0
votes
1 answer

Change hostapd BSSID

We have several devices that create an access point using wlan1 with hostapd. The problem is that all of them come with the same MAC address for wlan1, which translates in all the devices having the same BSSID, so when we have more than one device…
Edu Ponz
  • 37
  • 1
  • 7
0
votes
0 answers

Name not unique on network error while adding virtual interface

I am trying to add an virtual interface type AP for my TP-Link TL-WN722N on Ubuntu 16.04 LTS. Below is the command I used vinay245@vinay245:~$sudo iw dev wlx60e327078eed interface add wlan0_ap type __ap There are no issues which creating this I…
Vinay KS
  • 35
  • 1
  • 11
0
votes
2 answers

Hostapd doesn't launch with udev

I have a problem, I want to launch a script to start "hostapd" when I insert a vga/hdmi adapter on my Asus E200ha. The script works well when I launch it directly in a commmand line but don't work when it's called by "udev" This is the line for the…
Tom
  • 29
  • 3
0
votes
1 answer

Cross compiling hostapd getting fatal error: openssl/bn.h: No such file or directory

I am running ubuntu on system & cross-compiling (for arm arch.) hostapd. Hostapd compilation terminates with fatal error: openssl/bn.h: No such file or directory error. bn.h file is already present at /usr/include/openssl/bn.h. I tried apt-get…
Rafal
  • 1,120
  • 3
  • 15
  • 23
0
votes
0 answers

Dnsmaq conflicts with regular internet connetion (ethernet)

i have a django server running on a desktop computer(linuxmint 18.3 64 bits), i use hostapd and dnsmasq to serve the django site in a local area via wifi(a room). desktop also have a regular Internet connection over Ethernet cable.(Internet access…
0
votes
1 answer

Hostapd: How to know the frequency of AP mode

On Linux, I'm using hostapd in AP mode. In other words, the system is the hotspot. I would like to know what is the frequency of the Wi-Fi via c code (or a bash script that I could translate to c code). The following code which queries the kernel,…
gregoiregentil
  • 1,793
  • 1
  • 26
  • 56
0
votes
1 answer

hostapd_cli chan_switch FAIL

I have successfully hosted a WiFi AP using hostapd on my RPi Zero (using an external USB WiFi adapter). I'm using a dual-band adapter and the AP can be initiated in both bands without any problem and also the channel can be changed via the…
Sam Karr
  • 61
  • 1
  • 5
0
votes
1 answer

Raspberry pi 2 Hostapd Get list of users

So I set up my raspberry pi 2 with a hostapd that casts out an access point using my wlan0 interface along with dnsmasq and apache2 as my defualt browser. Now when i did this a year ago i could type the command: arp -a and it would show a list of…
0
votes
0 answers

how to fix linux kernel bugs without upgrading kernel?

i am installing hostapd in CentOS6.7 with two methods: 1) via rpm command using hostapd-2.0-7.el6.x86_64.rpm 2) by compiling tar.gz file following this tutorial in both cases after editing hostapd.conf in /etc/hostapd/ directory, when i run 'service…
User_890
  • 169
  • 1
  • 9
0
votes
1 answer

hostapd in openWRT using last configuration fields instead of new one

I'm working with hostapd in openWRT. sometimes I need to change the configuration file and activate hostapd with the new configuration. the problem is when some fields are removed in the new configuration, hostapd uses those field from the old…
Izik
  • 746
  • 1
  • 9
  • 25