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:

[email protected]:~ $ 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
[email protected]:~ $ ^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 [email protected]:~ $ 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

RFID RC522 Reader & Chromium Web Page

1  Asked on December 5, 2020


Access Raspberry pi jenkins server over the internet

1  Asked on December 4, 2020 by emil-mller-ringgaard


Stuck in matchbox window

1  Asked on December 2, 2020 by christian-benner


How to use PI4J with a brushless motor?

1  Asked on November 27, 2020 by cy8berpunk


Android Things for RaspBerry

0  Asked on November 16, 2020 by flower


Pioneer TV shows “unsupported” when connected to RPI 4

1  Asked on October 29, 2020 by dannyniu


Docker disables network connectivity

0  Asked on October 16, 2020 by stevepoling


Is there documentation for RPi.GPIO

2  Asked on October 15, 2020 by milliways


Redirecting Traffic to local mqtt server

2  Asked on October 11, 2020 by elior


Playing Kodi without UPnP

0  Asked on October 6, 2020 by hasan


Powering a Servo with 12V Battery and Buck Converter

0  Asked on September 26, 2020 by gumby4231


Trying to get SSH over USB to work (Raspberry pi Zero W)

1  Asked on September 26, 2020 by damightyzombie


Raspberry PI random connection interruptions

1  Asked on September 22, 2020 by ben


Connect sim800 to Raspberry PI (RX, TX)

4  Asked on September 15, 2020 by max


make: *** No rule to make target ‘Install’. Stop

1  Asked on September 12, 2020 by travism


Ask a Question

Get help from others!

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