Pi 3 wifi access point

Raspberry Pi Asked by NeilK on January 2, 2022

I want to create a dedicated wifi connection between my Raspberry Pi 3 and a windows 7 laptop. I thought the method here would do the job. Managed to get the Pi wifi point visible from my windows laptop about a week ago. But my Pi was crashing a lot so I did a complete re-install from NOOBS. Now I can not get hostapd to run at all. My /etc/hostapd/hostapd.conf looks like this:


When I try to run hostapd I get the following error message:

pi@localhost:~ $ sudo hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
'ine 2: invalid/unknown driver 'nl80211
'ine 16: invalid key_mgmt 'WPA-PSK
'.ne 17: invalid cipher 'TKIP
'.ne 18: invalid cipher 'CCMP
'ine 20: unknown hw_mode 'g
FT (IEEE 802.11r) requires nas_identifier to be configured as a 1..48 octet string
7 errors found in configuration file '/etc/hostapd/hostapd.conf'
Failed to set up interface with /etc/hostapd/hostapd.conf
Failed to initialize interface
pi@localhost:~ $ ^C

I’ve tried many searches of the internet before posting here but I’m not getting any closer.

Any help would be much appreciated.

Thanks & Regards
Neil Keron

Jaromanda, Many thanks for your help. I’ve followed the instructions in your link but hostapd still not running.
When I try pi@localhost:~ $ sudo service hostapd status, I get the following message |" hostapd.service – Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2020-07-17 09:55:22 AEST; 127ms ago
Process: 1091 ExecStart=/usr/sbin/hostapd -B -P /run/ -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE)

One of the many previous websites I have visited for this problem told me to put "DAEMON_CONF="/etc/hostapd/hostapd.conf" in to the /etc/default/hostapd file. Is this now going to mess up the starting of hostapd?

As I said in my original post, I did get the Pi3 wireless exposed to my Windows laptop before I did my last system re-install so I assume the wifi hardware is working. Is there a test I can run to check this?

Many thanks again.

One Answer

Using NOOBS is not a good idea. We have seen many problems here using it. If you only want to have an access point running on the RasPi then just download Raspberry Pi OS (32-bit) Lite, flash it to an SD-Card and boot it in your RasPi. Then you can follow to Setting up a Raspberry Pi as an access point - the easy way.

Answered by Ingo on January 2, 2022

Add your own answers!

Related Questions

RPI samba stopped working

1  Asked on October 5, 2021 by poody


hostapd: Pi 3 built-in WiFi going up and down every second

0  Asked on October 5, 2021 by synthesis


How to unlock password for Pi account

2  Asked on October 5, 2021


How to delete SMB shortcuts/links from the desktop?

1  Asked on October 5, 2021 by intexx


nobody user running demon

2  Asked on February 19, 2021 by zindik


Raspberry Pi 3 with Windows 10 IOT using USB Webcam

2  Asked on February 17, 2021 by randy


gmediarender configure output mono

1  Asked on February 16, 2021


rpi3 distro optimized for linuxsampler

1  Asked on February 11, 2021 by cafetechne


PyQt5 on a Raspberry Pi

5  Asked on February 10, 2021 by charliehorse


Can’t blink a LED using SPI interface on Raspberry Pi v3

2  Asked on February 10, 2021 by potatobox


How to read any connected DS18B20 temperature sensors with C/C++

1  Asked on February 10, 2021 by alexandre-a


pigpio’s sending only partial and inaccurate data

0  Asked on February 9, 2021 by emanuel-graf


Raspberry Pi WiFi Hotspot / Access Point

1  Asked on February 8, 2021 by h-h


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP