Re: two iface in one device


Jukka Rissanen
 

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

Join devel@lists.zephyrproject.org to automatically receive all group messages.