STA+AP mode

Ben Greear greearb at candelatech.com
Wed Jun 27 09:38:06 PDT 2018


On 06/26/2018 10:04 PM, kiran k wrote:
> Hi,
> Is it possible to run WPA Supplicant on primary interface so that
> primary interface would act as station interface and hostapd would run
> on other VAPs. From second interface the VAPs would function in AP
> mode.

You need a driver that supports multiple vdevs, and then create one vdev to
act as a station and use another (maybe the auto-created wlanX) as the AP.

Thanks,
Ben

> I have started supplicant and the primary STA interface connects to
> upstream interface. When I start hostapd, hostapd sets the interface
> mode in kernel to AP using  nl command NL80211_CMD_SET_INTERFACE. The
> driver sets the interface to AP mode. The driver supports AP+station
> mode. The config files I am using are
> wpa_supplicant.conf
>
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> ap_scan=1
> network={
> ssid="UPSTREAM"
> key_mgmt=NONE
> }
>
> hostapd.conf
> interface=eth6
> driver=nl80211
> ssid=UPSTREAM
> hw_mode=b
> channel=1
> start_disabled=1
> wpa=0
> bss=wl1.1
> wpa=0
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=0
> bssid=02:90:4C:2C:20:84
> ssid=VAP1
> ctrl_interface=/var/run/hostapd_wl01
> ctrl_interface_group=0
>
>
> Can someone please provide more information how this is configured
> from hostapd or is there an issue with the configuration or other
> issues.
>
> Thanks & Regards,
> Kiran
>
> _______________________________________________
> Hostap mailing list
> Hostap at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/hostap
>


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com




More information about the Hostap mailing list