📣📪 🚚 Adafruit will not be shipping USPS orders Monday October 14, 2019 🗓. Expedited USPS orders placed after 11am ET 🕚 Friday October 11 will go out Tuesday October 15 📣📪🚚
0

Raspberry Pi, wireless dongle, hostapd
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Raspberry Pi, wireless dongle, hostapd

by pbhound on Mon Feb 15, 2016 10:10 am

Hello all, I too need help with this issue (sorta)

when I run "sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf"

I get the following error:
configuration file: /etc/hostapd/hostapd.conf
Line 4: unknown hw_mode "N"
1 errors found in configuration file '/etc/hostapd/hostapd.conf'

the content of my hostapd.conf file is as such:

interface=wlan0
driver=rt2870
ssid=Pi_AP
hw_mode=N
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=Raspberry
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

I have tried, it with "g" and with "n" and get the same error.

if I comment out "hw_mode=N" I get the following error

Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0f3e638
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to mode(3)!
Could not set interface to master mode!
rtl871xdrv driver initialization failed.

my wireless adapter is from element14 (https://www.element14.com/community/doc ... #downloads) I have the drivers for the device placed them in to the /bin folder.
any and all help will be greatly appreciated.

thank you

pbhound
 
Posts: 1
Joined: Mon Feb 15, 2016 7:41 am

Re: Raspberry Pi, wireless dongle, hostapd

by cdorsal on Mon Oct 03, 2016 5:39 pm

Oh Adafruit... I spun my wheels for days getting your rtl8192cu usb wifi dongle to work in ap mode. You should put the two following commands somewhere on the product page so that another poor customer doesn't pull all of his hair out like I did. Please and thank you.

curl -sLS https://apt.adafruit.com/add | sudo bash
sudo apt-get install adafruit-ap

cdorsal
 
Posts: 2
Joined: Mon Oct 03, 2016 5:36 pm

Re: Raspberry Pi, wireless dongle, hostapd

by ewentekxia on Tue Apr 17, 2018 8:25 am

For the "invalid argument" error, the link for RTL driver, given at the end of the first page of this post, is broken.

This is a new available link : https://www.touslesdrivers.com/index.ph ... _langue=en

Its working for me now thanks to this driver and special hostapd version. Wifi adapter used : TL WN 823N V3

Regards,

ewentekxia
 
Posts: 1
Joined: Tue Apr 17, 2018 8:21 am

Please be positive and constructive with your questions and comments.