I've configured an access point on my Pi 3, largely using this tutorial:
https://blog.thewalr.us/2017/09/26/raspberry-pi-zero-w-simultaneous-ap-and-managed-mode-wifi/
So the Pi connects over wlan0
to my router, and devices connect to the Pi on ap0
. IPv4 forwarding is enabled so ap0
devices have transparent access through to everything offered by the router's DNS.
This works great... with some of my devices. My 2011 Compaq laptop, running Ubuntu 18.04, connects to the access point, and everything just works with the same performance as if it were connected straight to the router. This device has an Atheros 9485GN Wi-Fi adapter.
I can also connect to the network successfully from my Nokia Lumia 930 on Windows 10 Mobile.
However, some other devices don't seem to work at all. So far, I've found these to be my Surface Pro (2017, Marvell AVASTAR AC adapter), and my Nokia 6. In both instances, they connect successfully to the Pi access point, have an IP and show as connected. But there is no connectivity whatsoever - everything times out, even though the connection is established and stable.
Occasionally connectivity is achieved for a few seconds or so, and it becomes possible to ping, but then it drops again (but the connection itself never drops, it's just traffic seems to get stuck).
When multiple devices are connected, the same thing occurs. According to every indication inside Windows, the Surface has a working connection, but nothing actually gets through. The Compaq, connected at the same time, loads everything without any issues.
What could be causing this?
It's taken me long enough to get the Pi's Wi-Fi AP working at the same time as client mode. I'm not experienced with Linux networking, so I'm at a bit of a loss as to what's going on, and why only some devices are having problems. Initially I thought it was just the Surface, but it's now clear it's not.
My initial suspicion is something's wrong with the AP broadcast itself - channel or frequency band. I have observed that after starting the Pi always uses channel 1, even though channel 11 is specified in hostapd.conf
. I'm not quite sure yet what channel I should be using...
The aim for the project is to get the Pi working as a Wi-Fi repeater into the garden, so I can work outside... with the Surface. So right now, the only device I actually need to have working, isn't.
Tl;dr: Some devices connect fine. Some devices connect to the AP, but everything times out.
bash
script to "auto-configure" iaw the tutorial is offered... have you tried the latest version of that? – Seamus Jun 30 '18 at 12:22