Re: two iface in one device
toggle quoted messageShow quoted text
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.
Thanks for your response.
It's not offloading driver. It's out of tree in development.
are you talking about wifi offloading device or some out-of-tree wifi
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.
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
> Do you have any idea？
> Best Regards,