aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/af_ieee802154.h
diff options
context:
space:
mode:
authorRomuald CARI <romuald.cari@devialet.com>2018-06-07 16:08:02 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2018-07-13 12:18:18 -0400
commit811e299f4645588cc7a1b78d97b6847c155324b9 (patch)
treeab73de5d56f6d2ac75a1cecc4096184abe6dda5f /include/net/af_ieee802154.h
parentnet: gemini: Indicate that we can handle jumboframes (diff)
downloadwireguard-linux-811e299f4645588cc7a1b78d97b6847c155324b9.tar.xz
wireguard-linux-811e299f4645588cc7a1b78d97b6847c155324b9.zip
ieee802154: add rx LQI from userspace
The Link Quality Indication data exposed by drivers could not be accessed from userspace. Since this data is per-datagram received, it makes sense to make it available to userspace application through the ancillary data mechanism in recvmsg rather than through ioctls. This can be activated using the socket option WPAN_WANTLQI under SOL_IEEE802154 protocol. This LQI data is available in the ancillary data buffer under the SOL_IEEE802154 level as the type WPAN_LQI. The value is an unsigned byte indicating the link quality with values ranging 0-255. Signed-off-by: Romuald Cari <romuald.cari@devialet.com> Signed-off-by: Clément Peron <clement.peron@devialet.com> Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'include/net/af_ieee802154.h')
-rw-r--r--include/net/af_ieee802154.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/af_ieee802154.h b/include/net/af_ieee802154.h
index a5563d27a3eb..8003a9f6eb43 100644
--- a/include/net/af_ieee802154.h
+++ b/include/net/af_ieee802154.h
@@ -56,6 +56,7 @@ struct sockaddr_ieee802154 {
#define WPAN_WANTACK 0
#define WPAN_SECURITY 1
#define WPAN_SECURITY_LEVEL 2
+#define WPAN_WANTLQI 3
#define WPAN_SECURITY_DEFAULT 0
#define WPAN_SECURITY_OFF 1