From f4555b51b778ae5e677ce63eccdfd9376d07dd5d Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Sun, 16 Feb 2020 12:40:02 +0300 Subject: Wireless: support NL80211 userspace <-> kernelspace API NL80211 was introduced in Linux 2.6.24 in 2007 as a new extensible universal API, replacing "wireless extensions" ioctls. It works on top of netlink, and allows direct communication to cfg80211 kernel subsystem. Since then it became a hard requirement for all upstream wireless drivers to hook into cfg80211 (SoftMAC drivers do it via the common mac80211 layer). There's still additional compatibility code that allows limited Wext functionality for cfg80211 drivers but it's buggy and can be disabled altogether when CONFIG_CFG80211_WEXT is not set. This patch makes use of "netlink" Haskell library which doesn't have any additional runtime dependencies (so neither iwlib nor libnl are required). The operation is the same as performed by "iw dev link" command. The signal level is transformed to "quality" by first clamping it to [-110; -40], then adding 110 and dividing by 70 (same meaningless formula as used by the cfg80211 Wext compatibility layer). "essid" template argument is replaced by more appropriate "ssid" (with the old variant still available for backwards compatibility) --- changelog.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'changelog.md') diff --git a/changelog.md b/changelog.md index a52fce3..93fa31e 100644 --- a/changelog.md +++ b/changelog.md @@ -20,6 +20,8 @@ _New features_ - New more efficient time coalescing strategy for monitor updates, available with the threaded runtime: use the `with_threaded` flag to enable it (see #410; thanks to Tomáš Janoušek). + - `Wireless` supports current nl80211 API on Linux now, old Wext ioctls still + available as compile-time option (thanks to Paul Fertser). ## Version 0.32 (December, 2019) -- cgit v1.2.3