Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Setting up a Raspberry Pi as a WiFi access point
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Setting up a Raspberry Pi as a WiFi access point

by gcdl96 on Thu May 21, 2020 4:43 pm

Hii,

Im Working on a Raspberry 4 with internal wifi. Whe I run sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf this is the error that it shows:
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x174d6d0
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to mode(3)!
Could not set interface to master mode!
rtl871xdrv driver initialization failed.

And as it appears on the tutorial i have comment out the line driver=rtl871xdrv. I have tried to solve this problem but i cant.
Thanks!!

gcdl96
 
Posts: 2
Joined: Thu May 21, 2020 4:38 pm

Re: Setting up a Raspberry Pi as a WiFi access point

by mikeysklar on Thu May 21, 2020 5:31 pm

Hello gcdl96,

It sounds as though you are not using our USB WiFi antenna which makes use of t he rtl871xdrv. Did you have another WiFi device you were using? What is the output of the command:

Code: Select all | TOGGLE FULL SIZE
ifconfig -a

mikeysklar
 
Posts: 1730
Joined: Mon Aug 01, 2016 8:10 pm

Re: Setting up a Raspberry Pi as a WiFi access point

by gcdl96 on Thu May 21, 2020 5:42 pm

Hi,

No, im using the internal wifi card of the raspberry.

This is the result of the command:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.51 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::9ba9:7a09:4c6c:a046 prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:6e:aa:f7 txqueuelen 1000 (Ethernet)
RX packets 64020 bytes 62991443 (60.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26633 bytes 3276308 (3.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 113 bytes 33773 (32.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 113 bytes 33773 (32.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.42.1 netmask 255.255.255.0 broadcast 192.168.42.255
inet6 fe80::c3dc:6b57:34c4:f4fd prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:6e:aa:f8 txqueuelen 1000 (Ethernet)
RX packets 6296 bytes 866771 (846.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2394 bytes 627112 (612.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

gcdl96
 
Posts: 2
Joined: Thu May 21, 2020 4:38 pm

Re: Setting up a Raspberry Pi as a WiFi access point

by mikeysklar on Sun May 24, 2020 9:16 pm

I see this guide is a little dated in regards to AP setup. Since you are using the internal WiFi there will be complications with using our configuration files and RTL driver stuff.

Since you are using an Raspberry Pi v4 you can follow the Raspbian setup instructions for setting up an AP.

https://thepi.io/how-to-use-your-raspbe ... ess-point/

If you wanted to try a GUI I've enjoyed using RaspAP:

https://github.com/billz/raspap-webgui

mikeysklar
 
Posts: 1730
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.