Wireless API for Linux in C or Java

前端 未结 2 1154
难免孤独
难免孤独 2020-12-30 07:36

my team and I are working in a project based on the drone Parrot API. We are trying to find an api to write a small program which can scan the wireless network and selects

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 08:10

    With newer kernels the framework for managing wireless cards is called nl80211. It's netlink based, so you can use libnl to issue commands and parse answers. More information:

    http://wireless.kernel.org/en/developers/Documentation/nl80211

    Currently iw is the command line utility that utilizes nl80211, so you can list available hardware, scan, etc:

    http://linuxwireless.org/en/users/Documentation/iw

    Its source code is easy to study and reuse in your own project, just check out their git repo.

提交回复
热议问题