User avatar
DougieLawson
Posts: 35364
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Apr 04, 2016 8:28 pm

That recipe worked perfectly for me when I tried it.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

CutPi
Posts: 4
Joined: Sun Apr 03, 2016 8:55 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Tue Apr 05, 2016 5:15 pm

Thanks, I'll try it later. I guess I didn't find it because I was searching for "hotspot" instead of "access point".

sturgismike
Posts: 2
Joined: Wed May 04, 2016 2:32 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed May 04, 2016 2:43 pm

the nl80211 driver hasn't been compiled into hostapd.

Code: Select all

wget http://w1.fi/releases/hostapd-2.0.tar.gz
tar -zxvf hostapd-2.0.tar.gz
cd hostapd-2.0
cd hostapd
(note, the following command copies defconfig to a dotfile .config)
cp defconfig .config
nano .config 
uncomment the line: CONFIG_DRIVER_NL80211=Y
Also uncomment the line: CONFIG_IEEE80211N=y
make
If there are errors, you most likely need to install some packages
sudo apt-get install libnl-dev
sudo apt-get install libssl-dev
Then try again
make
sudo make install
At this point you should be able to use the nl80211 driver
As well, you'll probably want to add
ieee80211n=1 to your hostapd.conf file
Also possibly
wme_enabled=1

There is also ht_capab=.. You'll want to like at iw list and see what capabilities you can add that your card supports
mine says
ht_capab=[HT40-] [HT40+] [SHORT-GI-40] [RX-STBC1]

Good luck.

Not sure what I actually have to do, to fix this:

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

I have the WI-PI wi-fi dongle, which appear as:
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
and use the nl80211 driver if i'm not mistaken ??

-thx

Kritharth
Posts: 3
Joined: Thu Apr 21, 2016 2:45 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed May 18, 2016 12:52 am

can someone please help me with this.
I think I'm in the right forum
ive been trying to convert the rpi to a wifi router. the rpi is shows a network but no internet.
Attachments
dif.png
dif.png (25.55 KiB) Viewed 5846 times

Kritharth
Posts: 3
Joined: Thu Apr 21, 2016 2:45 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed May 18, 2016 12:59 am

when I input sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf I get this
Configuration file: etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:a7:e1:cc and ssid "Pi3-AP"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

Nidhalo92
Posts: 3
Joined: Tue Feb 16, 2016 10:59 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Fri May 20, 2016 10:27 pm

Please how can i creat a 3G acces point with my raspberry pi b+
I have create an access point with ethernet but now i should replace ethernet connexion by 3g connexion
Help please

canyon
Posts: 38
Joined: Sun Jan 29, 2012 9:47 am
Location: London UK

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed Jun 22, 2016 4:43 pm

I am trying to set up my Raspberry Pi 3 as a Wireless hotspot following the instructions here but without any success:
https://frillip.com/using-your-raspberr ... h-hostapd/
I get exactly the same error message as Kritharth. I've extensively Googled it and found several places where people report the same problem, but nobody ever replies with an answer or any clarification.
Can anybody help?

mousseline0101
Posts: 2
Joined: Sat Jul 16, 2016 8:55 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Jul 30, 2016 4:54 pm

"when I input sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf I get this
Configuration file: etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:a7:e1:cc and ssid "Pi3-AP"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED"

Same, no internet access when i try to connect it, still no answer to this problem please ?

tibi
Posts: 5
Joined: Wed Aug 03, 2016 11:55 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed Aug 03, 2016 11:57 am

i too have the same error:

hostapd /etc/hostapd/hostapd.conf

Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:70:72:35 and ssid "My_AP"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

with other devices i can not 'see' the wifi connection 'My_AP'.

what can i do?

tibi
Posts: 5
Joined: Wed Aug 03, 2016 11:55 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed Aug 03, 2016 12:37 pm

i read through this post:
https://frillip.com/using-your-raspberr ... h-hostapd/

and found that i needed to add this:

Code: Select all

driver=nl80211
now i see my app ssid :D

and i also could be due to that i forgot to turn off my wlan in the interface:

Code: Select all


nano /etc/dhcpcd.conf 

denyinterfaces wlan0 


nano /etc/network/interfaces

allow-hotplug wlan0  
iface wlan0 inet static  
    address 172.24.1.1
    netmask 255.255.255.0
    network 172.24.1.0
    broadcast 172.24.1.255


Sibert
Posts: 1
Joined: Sun Aug 21, 2016 12:40 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Aug 21, 2016 12:46 pm

I finally got my hotspot working on my Pi Zero with a RT5370 dongle, but my Nexus 5X (Android 6.0) refuses to connect to the hotspot because it has no internet access (this is intentional, I don't need internet access, nor do I have access where I'm going to use it). Does anyone know how I can solve this?

tibi
Posts: 5
Joined: Wed Aug 03, 2016 11:55 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Aug 21, 2016 5:50 pm

i have dnsmasq so i can deliver the dns and have nginx to serve a simple web page. with these setup any device will think there is internet.


GamingStar
Posts: 8
Joined: Sat Apr 02, 2016 2:25 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Wed Aug 31, 2016 9:45 pm

Does this work with the Pi 2? Does it have to be Raspbian?

tibi
Posts: 5
Joined: Wed Aug 03, 2016 11:55 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Sep 01, 2016 7:47 am

not sure if you can install the apps (dnsmasq etc..) than it should be no problem

moonstroller
Posts: 14
Joined: Thu Dec 26, 2013 9:05 am
Location: USA
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Sep 19, 2016 6:52 am

The date of the comments are from a long time ago. I just started trying to use the raspberry pi as a replacement for many objects around my home, in cluding surveillance. I want to replace my router with a RP router. Using the intstructions I've been able to make a working hot spot. I using a R3pi and it works well.

I want to use a r3pi b plus and a tp-WN722N adapter. I will try to make the switch to the rp2 tomorrow.

User avatar
DougieLawson
Posts: 35364
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Sep 19, 2016 10:20 am

That's much too old and should have expired years ago.


https://frillip.com/using-your-raspberr ... h-hostapd/
works with an RPi3
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

moonstroller
Posts: 14
Joined: Thu Dec 26, 2013 9:05 am
Location: USA
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Sep 19, 2016 10:22 pm

GamingStar wrote:Does this work with the Pi 2? Does it have to be Raspbian?
I have an old NOOBS card with wheezy and I'm trying to make it work with a pi 2. I'm using a TP-LINK TL-WN722N.

I'm assuming non-systemd.

With the pi 3 the wrong wlan0 ip address comes up - 169.254.237.97

I'm doing something wrong or out of sequence.

moonstroller
Posts: 14
Joined: Thu Dec 26, 2013 9:05 am
Location: USA
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Tue Sep 20, 2016 12:13 am

GamingStar wrote:Does this work with the Pi 2? Does it have to be Raspbian?
I have an old NOOBS card with wheezy and I'm trying to make it work with a pi 2. I'm using a TP-LINK TL-WN722N.

I'm assuming non-systemd.

With the pi 3 the wrong wlan0 ip address comes up - 169.254.237.97

I'm doing something wrong or out of sequence.

TriggerFish
Posts: 3
Joined: Thu Oct 06, 2016 11:17 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Oct 06, 2016 11:22 am

Hi,

I probably am breaking in to this discussion, but is it possible to set up an access point on a Pi3 without routing it over ethernet to internet? I run a minecraft server on a Pi at home for my kid and his school mates. That connects to my router and the internet. It would be great if I could set the WiFi to AP and put it standalone at school, so they can connect to it wireless.

Best regards, Peter

senten
Posts: 6
Joined: Thu Oct 13, 2016 8:40 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Oct 16, 2016 11:36 am

Got this working on Raspberry Pi 3 using the steps here: https://frillip.com/using-your-raspberr ... h-hostapd/

This one uses dnsmasq and raspbian's own dhcpd. The other tutorial at http://elinux.org/RPI-Wireless-Hotspot uses udhcpd instead.

TriggerFish
Posts: 3
Joined: Thu Oct 06, 2016 11:17 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Oct 31, 2016 8:38 am

Hi All,

Got the pi working as standalone minecraft server with access point :)

My son will have a ball at school with this project :)

Peter

drew1028
Posts: 3
Joined: Tue Sep 27, 2016 8:58 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Fri Nov 11, 2016 6:18 pm

I have followed the directions at http://elinux.org/RPI-Wireless-Hotspot#Instructions. I can get the access point to appear but when I try to connect with my phone and/or tablet it never progresses past "Obtaining IP address." I'm still a noob at some of this so I have no idea how to fix this. Any help?

TriggerFish
Posts: 3
Joined: Thu Oct 06, 2016 11:17 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Nov 12, 2016 12:57 pm

drew1028 wrote:I have followed the directions at http://elinux.org/RPI-Wireless-Hotspot#Instructions. I can get the access point to appear but when I try to connect with my phone and/or tablet it never progresses past "Obtaining IP address." I'm still a noob at some of this so I have no idea how to fix this. Any help?
Hi,

That link assumes you will get your ip from somwhere further up the chain. If there is no dhcp overthere, you will never get an ip. I followed https://frillip.com/using-your-raspberr ... h-hostapd/ where hostapd will create the actual wireless access point and dnsmasq to provide a dhcp server, giving you ip numbers.

My link got me a working system.

Have fun,

Peter

dd667
Posts: 2
Joined: Mon Nov 14, 2016 5:12 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Nov 14, 2016 5:40 pm

following this guide and failing... rpi is either not broadcasting or i do not know the problem. i did everything step by step, nothing works. figured might be onboard wifi module so i bought ralink 5572, as it shows up as wlan1 i configured everything accordingly... still no joy. anyone can help out? although when i use start service hostapd udhcpd there are no errors popping up, which makes it so much harder to determine what is going on...

Return to “Networking and servers”