Hi,
I bought a nano wifi adapter and followed your tutorial to set up a wireless access point on a raspberry pi (http://learn.adafruit.com/setting-up-a- ... l-software). This is a great tutorial and works great on my raspberry pi.
However, I wanted to try the same thing on an i386 PC with debian wheezy, but couldn't get it to work. I used the same wifi adapter, followed the same tutorial and compiled hostapd on the i386 PC following your tutorial at http://learn.adafruit.com/setting-up-a- ... ng-hostapd
Running hostapd, I get
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x9bbe638
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to mode(3)!
Could not set interface to master mode!
rtl871xdrv driver initialization failed.
In theory, should I be able to follow the tutorials and make the wifi dongle work on an i386 debian system?
Wireless Access Point
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Wireless Access Point
It looks like you have the wrong driver taking control of the wifi device. The ones we sell use the rtl8192cu chipset, which has its own driver.
You can get the correct driver from Realtek: http://www.realtek.com.tw/downloads/dow ... loads=true
It's about halfway down the page.
You can get the correct driver from Realtek: http://www.realtek.com.tw/downloads/dow ... loads=true
It's about halfway down the page.
-
- Posts: 5
- Joined: Thu Oct 10, 2013 3:20 am
Re: Wireless Access Point
Thanks for the reply. The adapter I got is based on RTL8188CUS and I followed your link to the Realtek drivers page and downloaded the file for rtl8188cus. It happens to be exactly the same file used for rtl8192cu (both chipsets use same driver). I compiled hostapd from this package with same results.
I could buy a wifi adapter from adafruit but think I would have the same problem. Has anyone tried the wireless access point tutorial on an i386 based Debian wheezy 7.1.x and got it working?
Thanks again.
I could buy a wifi adapter from adafruit but think I would have the same problem. Has anyone tried the wireless access point tutorial on an i386 based Debian wheezy 7.1.x and got it working?
Thanks again.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Wireless Access Point
Ah.. if it's a non-Adafruit adapter I'd suggest you contact Realtek and see what information they have. Wifi support in Linux can be tricky, and each chipset has its own quirks.
We selected the rtc8192cu devices we carry because they provide the best service on the hardware we sell, and we continue to learn the details of making those work, but we don't have any experience with other chipsets.
We selected the rtc8192cu devices we carry because they provide the best service on the hardware we sell, and we continue to learn the details of making those work, but we don't have any experience with other chipsets.
-
- Posts: 5
- Joined: Thu Oct 10, 2013 3:20 am
Re: Wireless Access Point
ok, I bought a couple of adafruit adapters so I'll retry when I receive them.
-
- Posts: 5
- Joined: Thu Oct 10, 2013 3:20 am
Re: Wireless Access Point
Following on from the above, I received my genuine adafruit wifi adapters and re-tried the wireless access point tutorial (but on an x86 platform).
Still the same problem, so I guess it's not possible for some reason that's beyond me.
Since this isn't strictly a raspberry pi topic, I guess I'll have to give up.
In case anyone's interested, the x86 compiled version of hostapd gives the following error...
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=4
l2_sock_recv==l2_sock_xmit=0x0x89fe638
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to mode(3)!
Could not set interface to master mode!
rtl871xdrv driver initialization failed.
Thanks anyway.
Still the same problem, so I guess it's not possible for some reason that's beyond me.
Since this isn't strictly a raspberry pi topic, I guess I'll have to give up.
In case anyone's interested, the x86 compiled version of hostapd gives the following error...
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=4
l2_sock_recv==l2_sock_xmit=0x0x89fe638
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to mode(3)!
Could not set interface to master mode!
rtl871xdrv driver initialization failed.
Thanks anyway.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Wireless Access Point
Just to check, which driver did you download and compile?
-
- Posts: 5
- Joined: Thu Oct 10, 2013 3:20 am
Re: Wireless Access Point
Hi
I didn't compile a driver. Instead, I installed using the following instructions from debian web site...
https://wiki.debian.org/rtl819x#Debian_7.0_.22Wheezy.22
This part...
This release supports Realtek RTL8188CE, RTL8188CUS, RTL8188DE, RTL8188SU, RTL8191SE, RTL8191SU, RTL8192CE, RTL8192CU, RTL8192DE, RTL8192E, RTL8192SE, RTL8192SU and RTL8192U-based devices.
Add a "non-free" component to /etc/apt/sources.list, for example:
# Debian 7.0 "Wheezy"
deb http://http.debian.net/debian/ wheezy main contrib non-free
Update the list of available packages and install the firmware-realtek package:
# apt-get update && apt-get install firmware-realtek
However, for hostapd, I compiled using the following packages from realtek (I tried both)...
RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip
RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip
Maybe there is a mismatch between hostapd and driver?
fyi, lsusb reports 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
I don't know how to find out the driver version(lsmod?)
Thanks
I didn't compile a driver. Instead, I installed using the following instructions from debian web site...
https://wiki.debian.org/rtl819x#Debian_7.0_.22Wheezy.22
This part...
This release supports Realtek RTL8188CE, RTL8188CUS, RTL8188DE, RTL8188SU, RTL8191SE, RTL8191SU, RTL8192CE, RTL8192CU, RTL8192DE, RTL8192E, RTL8192SE, RTL8192SU and RTL8192U-based devices.
Add a "non-free" component to /etc/apt/sources.list, for example:
# Debian 7.0 "Wheezy"
deb http://http.debian.net/debian/ wheezy main contrib non-free
Update the list of available packages and install the firmware-realtek package:
# apt-get update && apt-get install firmware-realtek
However, for hostapd, I compiled using the following packages from realtek (I tried both)...
RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip
RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip
Maybe there is a mismatch between hostapd and driver?
fyi, lsusb reports 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
I don't know how to find out the driver version(lsmod?)
Thanks
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/