Jump to content

luc.small

Members
  • Posts

    2
  • Joined

  • Last visited

  1. I was playing around with this last night and the following worked for me... I created an /etc/udev/rules.d/70-persistent-net.rules with the following contents: SUBSYSTEM=="ieee80211", ACTION=="add|change", ATTR{macaddress}=="aa:bb:cc:dd:ee:xx", KERNEL=="phy1", \ RUN+="/sbin/iw dev wlan0 del", \ RUN+="/sbin/iw phy phy1 interface add wlan0_station type station", \ RUN+="/sbin/iw phy phy1 interface add wlan0_ap type __ap", \ RUN+="/bin/ip link set wlan0_ap address aa:bb:cc:dd:ee:yy" Substitute aa:bb:cc:dd:ee:xx with your wlan0 mac address. For aa:bb:cc:dd:ee:yy select a mac that will be unique on your network. I just took the wlan0 mac and incremented by 1. After a reboot, ifconfig -a listed wlan0_station and wlan0_ap interfaces. (My reference for this was this blog post: http://www.0xf8.org/2016/02/using-your-raspberry-pi-zeros-usb-wifi-adapter-as-both-wifi-client-and-access-point/)
  2. I think I am seeing the same issue in legacy 3.4.113. I can get hostapd working with wlan0 in access point only mode. Other computers can see the SSID and connect to it. I then try to configure wlan0 as two virtual interfaces: sudo iw dev wlan0 del sudo iw phy phy1 interface add wlan0_station type station sudo iw phy phy1 interface add wlan0_ap type __ap This all works fine. ifconfig and iwconfig both list the two new interfaces: wlan0_station and wlan0_ap. I can edit /etc/network/interfaces and add entries for wlan0_station and wlan0_ap. I can use ifup to bring up both interfaces. wlan0_station connected to my home router and assigned an address via dhcp. wlan0_ap assigned a static ip address. I then start up hostapd with my hostapd.conf set to use wlan0_ap interface (interface=wlan0_ap) and the channel set to the same channel as used by my router (channel=11). Hostapd starts up normally and reports that the access point is up. But no other computers ever see the SSID of the access point and none can connect even if the SSID is manually entered. I'm out of ideas, so I'm suspecting it's a driver issue. Naturally, I would be very interested to know if anyone has got this working or if there's anything obvious I've missed.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines