Thanks to visit codestin.com
Credit goes to lib.rs

#netlink #wifi #linux #nl80211

netlink_wi

A library to retrieve information about wireless hardware in Linux operating system using netlink protocol

18 releases

0.8.0 Oct 14, 2025
0.7.0-rc5 Mar 17, 2025
0.7.0-rc4 Aug 22, 2023
0.4.0 Jul 28, 2023
0.2.0 Nov 29, 2020

#250 in Unix APIs


Used in uption

MIT license

155KB
3K SLoC

Netlink Wireless Interface

Crates.io docs Crates.io CI

netlink_wi is a Rust library for interacting with wireless devices on Linux systems through the nl80211 netlink interface.

It provides programmatic access to wireless configuration and status information, allowing developers to query and control Wi-Fi interfaces directly from Rust code.

With netlink_wi, you can:

  • Enumerate and inspect wireless network interfaces
  • Retrieve hardware capabilities and detailed device specifications
  • Access information about connected stations and peers
  • Query wireless regulatory domain settings
  • Configure wireless interface parameters

Installation

cargo add netlink_wi

Features

The library supports both synchronous and asynchronous APIs:

  • sync (default) - Synchronous API using NlSocket
  • async - Asynchronous API using AsyncNlSocket

To use the async version:

cargo add netlink_wi --no-default-features --features async

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Dependencies

~3–14MB
~126K SLoC