command for creating virtual interface

Jouni Malinen j
Sat Oct 25 08:51:06 PDT 2014


On Wed, Oct 22, 2014 at 01:18:35PM +0530, Jithu Jance wrote:
> Could you share your thoughts on having commands for virtual interface
> creation and deletion?
> 
> I have submitted a patch for the same:
> http://patchwork.ozlabs.org/patch/351403/
> 
> The purpose is to create a virtual interface for a secondary STA or
> supplicant based AP interface on the fly.

That patch seems to be adding only WPA_IF_STATION type interfaces which
would be fine for another station, but maybe not ideal for AP. Could you
please clarify why this functionality should be in wpa_supplicant?

Since driver_nl80211.c is tracking interfaces added and removed through
if_add() and if_remove() some of these operations triggered by external
control could result in unexpected results. As such, this does not look
like the safest way of addressing a need to add/remove a virtual
interface for independent of internal wpa_supplicant needs. If I
understood the use case correctly, doing this without storing any state
in driver_nl80211.c for the interface that was used to remove/add and
interface could be more appropriate for this.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list