[PLUG] Wireless Interface APIs needed

Vasudeo Bidve vkbidve at gmail.com
Fri Dec 5 19:12:04 IST 2014


On Fri, Dec 5, 2014 at 2:46 PM, Kiran Divekar <kirandivekar at gmail.com>
wrote:

> On Fri, Nov 28, 2014 at 4:28 PM, Vasudeo Bidve <vkbidve at gmail.com> wrote:
>
> > Hi,
> >
> > I am working on a networking project where only Wi-Fi interfaces are
> > used on all hosts for communication. It has to be a private network,
> > operating on IPv6 without using DHCP(v6). So obviously, the trick is
> > to assign Link-Local IPv6 addresses to all hosts using their
> > respective MAC ids and proceed.
> >
> > I did a proof-of-concept of such networking using Ethernet and PCs
> > with ubuntu (14.04 LTS). But this is not working with wireless
> > interfaces.
> >
> > I tried to do this with command line utilities like 'iw' and
> > 'iwconfig' on my PCs, but as soon as I plug in the USB-wifi adapter,
> > the network-manager in ubuntu sets it in 'managed' mode, which I don't
> > want. Further, if I try to assign another mode, I get an error message
> > as 'device is busy'. Then by taking the link down, it doesn't add any
> > modes. Using the network setting panel in ubuntu, I can configure it
> > in 'ad-hoc' mode, but I want to do it programmatically (through a C
> > code, shell script, anything) without using that network-manager
> > utility finally in my project.
> >
> >
> Hi,
>   https://wiki.archlinux.org/index.php/ad-hoc_networking
>   Please check above link to setup adhoc networking. Use iw commands
> mentioned there to start the network. Also, Turn off network-manager
> completely.
>

Thanks a lot Kiran for this link. This is what I was looking for. It worked
flawlessly.

Actually, I was controlling multiple PCs using ssh, so the network-manager
was needed and hence couldn't turn it off. But surprisingly, the
instructions worked despite of it running!


>
> In my project, finally all PCs will be replaced by embedded linux
> > SBCs. USB wi-fi adapters will possibly be replaced by wi-fi modules.
> > But programmatically, they should be able to communicate with each
> > other at Link-Local IPv6 addresses in Ad-Hoc mode.
> >
> > At this moment, what I need is a set of wireless interface APIs, (of
> > course with some helpful documentation) to configure the wifi
> > interface in Ad-Hoc mode (possibly in AP/Station mode as and when
> > needed), get a Link-Local IPv6 address assigned to itself and start
> > networking. Any URL to such information will also do.
> >
> > If there is any step-by-step guide (or example codes) then it will be
> > even more helpful.
> >
> > Thanks and Regards
> >
> > Vasudeo K. Bidve
> >
> >
> Thanks
> - Kiran
>
> > _______________________________________
> > Pune GNU/Linux Users Group Mailing List
> >
> _______________________________________
> Pune GNU/Linux Users Group Mailing List
>



More information about the Plug-mail mailing list