Well my case is I want to practise setting up Adhoc network using WLAN.
Without giving the specific use case it is not possible to provide
ideas. You can access net in VirtualBox guest if host has internet
connection. This should be sufficient for most use case.
Qemu has PCI pass through. I am not sure whether that is mainlined orI did not get the point "whether that is mainlined"
will it work for you. If you are geeky enough to try just give it a
try and write about it if successful.
If you have ample time and knowledge use libpciaccess to access theI would wish to be that geeky however I am not :-( at least for now. As
Wifi card from user space (i.e., from within Virtual Box and let the
guest know about the PCI card). For this you may need to modify
Virtual Box source code and also the guest kernel (may be a Linux
kernel module). I don't have much info than this and I am not sure how
much time it will take. I guess it may take more than 3 months for a
normal developer doing this work full time (If virtual box source code
is needed to be modified and a linux kernel module has to be written).
I know this route from googling, It involves purchase of WLAN usb dongles
If it is based on USB you need not do anything big - just choose a
menu in the Virtual Box to associate the USB device to the guest.