Code: Select all
sudo iw dev wlan0 interface add wlan1 type __ap
Code: Select all
sudo hostapd /etc/hostapd/hostapd.conf
Code: Select all
iw dev wlan0 interface add uap0 type __ap
ip addr add 192.168.2.1/24 dev uap0
Code: Select all
interface=uap0
driver=nl80211
ssid=My_SSID
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=My_passphrase
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
I'm reluctant to EVER say something's impossible. I can only speak to what I've been able to do and I haven't been able to do it without finding what channel wlan0 is onDoes anyone know if it's possible for the access point to use a different channel than the connected network? My Pi 3 refuses to connect to, for example, a network on channel 11 if hostapd is using channel 1. I'd prefer not to install another dongle, nor to reconfigure hostapd on the fly, if it can be avoided. Thanks
Code: Select all
iwlist channel
Did you get this working?stopgaplabs wrote:I'm extremely new here (as can be seen by this post's #) and fairly new to raspberry pi (like 2-3 months) but I've lurked here the whole time.
Just got in the new 3 and am enjoying it. Through this forum and a few others I'm close to getting sta+client going.
Setting up hostapd mostly normally (but change wlan0 to wlan1; change the channel to whatever iwlist shows for wlan0) and then setting up interfaces with wlan1 having whatever default gateway you want for the router thenand thenCode: Select all
sudo iw dev wlan0 interface add wlan1 type __ap
starts showing your new network available while still being able to use the client side on wlan0(what I'm communicating with it with to start with.Code: Select all
sudo hostapd /etc/hostapd/hostapd.conf
As I get it cleaned up, I'll start making better step by steps. I just knew that with a little nudge, people with much more *nix skill will have it done in minutes vs. my hours or days.
Thank y'all for a great forum.
Robbie
stopgaplabs wrote:Yes, but it still has some issues I haven't figured out yet. After about 3 hours, the ssid I had set up changes its name to the network I'm connected to through wlan0 and pretty much becomes unreachable.
Any chance you could share the configuration?stopgaplabs wrote:Yes, but it still has some issues I haven't figured out yet. After about 3 hours, the ssid I had set up changes its name to the network I'm connected to through wlan0 and pretty much becomes unreachable.
Code: Select all
iwlist channel
Code: Select all
interface=wlan1
#driver=rtl871xdrv
ssid=Cirice
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=bootsiecollins
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Code: Select all
sudo iw dev wlan0 interface add wlan1 type __ap
Code: Select all
sudo hostapd /etc/hostapd/hostapd.conf