Page 1 of 1

ADHOC & Raspbian

Posted: Fri Feb 22, 2013 11:35 am
by docteur.blanchard
Hello,

In tutorial, lot of people said that the Edimax EW-7811Un 150m/s is ad-hoc compliant.
So I bought it and try to create an adhoc.

I do not want a dhcp server because i want to fix IP on my wifi device clients

... and, It seems that nothing is working:

In my interface:
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0

sudo apt-get install hostapd

In hostapd:
DAEMON_CONF="/etc/hostapd/hostapd.conf"

In hostapd.conf
interface=wlan0
ssid=TEST_AP
hw_mode=g
channel=6
auth_algs=1
wmm_enabled=0

In systcl.conf:
net.ipv4.ip_forward=1

iptables:
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT

sudo service hostapd start ---> Failed


--> I suspect that there is a bug on hostpad

What do you think?

Thanks for your help

Re: ADHOC & Raspbian

Posted: Fri Feb 22, 2013 12:12 pm
by SirLagz
I believe this uses the realtek 8192CU chipset.
The default drivers in Raspbian don't support the nl80211 driver for this chipset.
Have a search around, and there is a thread that can get this chipset working with nl80211 which hostapd requires.

Re: ADHOC & Raspbian

Posted: Fri Feb 22, 2013 1:25 pm
by docteur.blanchard
Thank you for the quick answer.
Indeed, i'll investigate in this way

Thanks

Re: ADHOC & Raspbian

Posted: Fri Feb 22, 2013 1:50 pm
by Cloudcentric
There was a post since Christmas which had the nl80211 driver listed..

They had to reconfigure to point the default Chipset Driver

Re: ADHOC & Raspbian

Posted: Fri Feb 22, 2013 2:58 pm
by docteur.blanchard
All,

I just tested the patch on this address, it is not working
http://blog.sip2serve.com/search/hotspot

If someone is able to explain me step by step exactly what to do to activate the RPI as an HotSpot/AP, I'll your auditor ;-)

I'm newb on RPI a little bit less on debian ;-)

Thanks to all
Best Regards

Re: ADHOC & Raspbian

Posted: Sat Feb 23, 2013 12:15 pm
by SirLagz