Hi Ben, Additionally for ath9k or ath10k do you run both wpa supplicant and hostapd or only one userspace process which sets both the vdevs. Is there a specific order which you start and can you please share the configuration files as well. Thanks, Kiran On Wed, Jul 4, 2018 at 12:34 PM kiran k <ikirank@xxxxxxxxx> wrote: > > Hi Ben, > When I start wpa_supplicant on primary interface the wpa supplicant > associates with upstream AP. Now when I start hostapd, hostpad invokes > function wpa_driver_nl80211_finish_drv_init as part of driver > initialization, then it calls wpa_driver_nl80211_set_mode which sets > interface tp AP mode and which sends the netlink message > NL80211_CMD_SET_INTERFACE which eventually calls > rdev_change_virtual_intf or change virtual interface in the driver. Is > there something which needs to be added in to the hostapd config file > to make sure primary interface operates only in Station mode. > > Any inputs how do achieve this. > > Thanks, > Kiran > On Wed, Jul 4, 2018 at 9:46 AM Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote: > > > > I've no idea about bcom, but ath9k and ath10k (on pcie boards at least) can support > > AP + STA on two different vdevs. > > > > Thanks, > > Ben > > > > On 07/03/2018 08:20 PM, kiran k wrote: > > > Hi, > > > I am using Broadcom driver and doing some modifications. When we start > > > hostapd, hostapd sets the primary interface to AP mode based on > > > configuration. Is there a way to trigger hostapd not to set the > > > primary interface in AP mode. > > > > > > Thanks, > > > Kiran > > > On Tue, Jul 3, 2018 at 9:36 PM Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote: > > >> > > >> What driver and firmware (if applicable) are you using? > > >> > > >> Virtual stations should be independent of each other unless > > >> the driver/firmware has limitations. > > >> > > >> Thanks, > > >> Ben > > >> > > >> On 07/03/2018 04:19 AM, kiran k wrote: > > >>> Hi, > > >>> I tried creating multiple interface creation using iw. Started wpa > > >>> supplicant and it associates with upstream AP. Then created a new > > >>> virtual interface using iw command "iw dev [radio-dev-name] interface > > >>> add [virtual-ap-name] type __ap " > > >>> Now the virtual interface is created and I am able to see the > > >>> secondary interface sending out beacons. Is it possible to replicate > > >>> the same functionality using wpa_supplicant and hostapd running > > >>> simultaneously. > > >>> If I put in configuration as described above the station interface > > >>> goes down since hostapd sets the primary interface in to AP mode. Can > > >>> you let me know how do I achieve this using hostapd and wpa > > >>> supplicant. > > >>> > > >>> Thanks, > > >>> Kiran > > >>> On Wed, Jun 27, 2018 at 10:08 PM Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote: > > >>>> > > >>>> 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@xxxxxxxxxxxxxxxxxxx > > >>>>> http://lists.infradead.org/mailman/listinfo/hostap > > >>>>> > > >>>> > > >>>> > > >>>> -- > > >>>> Ben Greear <greearb@xxxxxxxxxxxxxxx> > > >>>> Candela Technologies Inc http://www.candelatech.com > > >>>> > > >>> > > >> > > >> -- > > >> Ben Greear <greearb@xxxxxxxxxxxxxxx> > > >> Candela Technologies Inc http://www.candelatech.com > > > > > > > -- > > Ben Greear <greearb@xxxxxxxxxxxxxxx> > > Candela Technologies Inc http://www.candelatech.com _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap