G
G
GeekFromUa2016-03-27 21:03:32
linux
GeekFromUa, 2016-03-27 21:03:32

Can't set up Raspberry as an access point with RT5370 adapter?

I'm trying to set up an access point, when I start it
sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
shows this error

Configuration file: /etc/hostapd/hostapd.conf
Line 7: invalid/unknown driver 'nl80211'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'

when I put a comment on the line with the driver - writes:
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_packet_init: ioctl[SIOCGIFINDEX]: No such device
no br0 interface , let l2_sock_recv==l2_sock_xmit=0x0x17e2638
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to mode(3)!
Could not set interface to master mode!
rtl871xdrv driver initialization failed.
rmdir[ctrl_interface]: No such file or directory

Contents of the hostapd.conf file:
ctrl_interface=/var/run/hostapd
###############################
# Basic Config
###############################
macaddr_acl=0 auth_algs=1
# Most modern wireless drivers in the kernel need driver=nl80211
driver=nl80211
##########################
# Local configuration...
##########################
interface=wlan0
bridge=br0
hw_mode=g
ieee80211n=1
channel=1
ssid=RaspberryPI_AP
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0

Is it necessary to install the driver somehow or what could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Chudnovsky, 2016-03-28
@Frankenstine

You need to build your hostapd, with CONFIG_DRIVER_NL80211 = Y.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question