Date
1 - 4 of 4
two iface in one device
"K.I.R.A.
Hi , I would like to define two net ifaces in one device. Wi-Fi STA and softap are two types of ifaces at app layer, but only one device at driver layer is enough,that is only one NET_DEVICE_INIT invoked. Do you have any idea? Best Regards, Bub |
|
Jukka Rissanen
Hi Bub,
toggle quoted message
Show quoted text
are you talking about wifi offloading device or some out-of-tree wifi device? The NET_DEVICE_OFFLOAD_INIT() would need to be changed a bit to create more than one network interface for a given device if you have offloading wifi driver. There exists already ETH_NET_DEVICE_INIT() for ethernet which supports more than one network interface (for VLAN support) for a given device. You could see how it is doing things to create more than one network interface for a given device. Cheers, Jukka On Mon, 2018-10-29 at 14:58 +0800, "K.I.R.A. wrote:
Hi , |
|
"K.I.R.A.
Hi Jukka, Thanks for your response. It's not offloading driver. It's out of tree in development. Best Regards, Bub Wei ---Original--- From: "Jukka Rissanen"<jukka.rissanen@...> Date: Mon, Oct 29, 2018 16:01 PM To: "devel"<devel@...>;"\"K.I.R.A."<38900484@...>; Subject: Re: [Zephyr-devel] two iface in one device Hi Bub, are you talking about wifi offloading device or some out-of-tree wifi device? The NET_DEVICE_OFFLOAD_INIT() would need to be changed a bit to create more than one network interface for a given device if you have offloading wifi driver. There exists already ETH_NET_DEVICE_INIT() for ethernet which supports more than one network interface (for VLAN support) for a given device. You could see how it is doing things to create more than one network interface for a given device. Cheers, Jukka On Mon, 2018-10-29 at 14:58 +0800, "K.I.R.A. wrote:
> Hi , > I would like to define two net ifaces in one device. > Wi-Fi STA and softap are two types of ifaces at app layer, but only > one device at driver layer is enough,that is only one NET_DEVICE_INIT > invoked. > > Do you have any idea? > > Best Regards, > Bub |
|
"K.I.R.A.
Actually, I only need do one time initialization that is for CP startup. In CP, STA and softap will be running after initializing. But now, I define two devices for STA and softap that are different models for app. In init function, I have to check if CP has been initialized by STA or softap. Best Regards, Bub ---Original--- From: "\"K.I.R.A."<38900484@...> Date: Mon, Oct 29, 2018 16:20 PM To: "devel"<devel@...>;"Jukka Rissanen"<jukka.rissanen@...>; Subject: Re: [Zephyr-devel] two iface in one device Hi Jukka, Thanks for your response. It's not offloading driver. It's out of tree in development. Best Regards, Bub Wei ---Original--- From: "Jukka Rissanen"<jukka.rissanen@...> Date: Mon, Oct 29, 2018 16:01 PM To: "devel"<devel@...>;"\"K.I.R.A."<38900484@...>; Subject: Re: [Zephyr-devel] two iface in one device Hi Bub, are you talking about wifi offloading device or some out-of-tree wifi device? The NET_DEVICE_OFFLOAD_INIT() would need to be changed a bit to create more than one network interface for a given device if you have offloading wifi driver. There exists already ETH_NET_DEVICE_INIT() for ethernet which supports more than one network interface (for VLAN support) for a given device. You could see how it is doing things to create more than one network interface for a given device. Cheers, Jukka On Mon, 2018-10-29 at 14:58 +0800, "K.I.R.A. wrote:
> Hi , > I would like to define two net ifaces in one device. > Wi-Fi STA and softap are two types of ifaces at app layer, but only > one device at driver layer is enough,that is only one NET_DEVICE_INIT > invoked. > > Do you have any idea? > > Best Regards, > Bub |
|