I followed your great tutorial about how to create a Wifi Access Point from your RaspberryPi 3, but run to some errors.
First, I did some minor modifications, but these could not be a problem.
I decided to use IP range from 172.16.0.10 to 172.16.0.50. So in /etc/dhcp/dhcpd.conf I put this:
Code: Select all
subnet 172.16.0.0 netmask 255.255.255.0 {
range 172.16.0.10 172.16.0.50;
option broadcast-address 172.16.0.255;
option routers 172.16.0.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
}
Code: Select all
sudo ifconfig wlan0 172.16.0.1
Code: Select all
driver=rtl871xdrv
Code: Select all
sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Code: Select all
Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:cc:f0:87 and ssid "BlueSensor"
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED
OK, now to the problem...
I can see SSID and I can connect to my new shiny AP. However, when I connected to it with my Android phone, there is no internet connection and I cannot see website running on RaspberryPi - I am running tornado web server, which is listening to 172.16.0.1:8881.
Next try was connection to my AP with Ubuntu laptop. Connection was successful, I can get access to the internet and I can successfully connect to 172.16.0.1:8881.
Then I reboot the RaspberryPi device and tried to connect again. Now, connection from the laptop was possible, but there was no internet connection and I couldnt see web service on 172.16.0.1:8881.
Is it possible there is a problem with some wifi kernel drivers? Is this somehow connected to the error message above:
Code: Select all
Failed to create interface mon.wlan0: -95 (Operation not supported)
...
wlan0: Could not connect to kernel driver
Regards, M.