Re: STA+AP mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux