netlink-1.1.0.0: Netlink communication for Haskell

Maintainerongy
Stabilitytesting
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Description

This module providis utility functions for NL80211 subsystem. In particular the NL80211_ATTR_STA_INFO part of NL80211. For more information see usrincludelinuxnl80211.h

Synopsis

Documentation

data StaInfo Source #

Structure for wifi station information.

Constructors

StaInfo 

Fields

data SignalWidth Source #

Type for the signal width reported by the kernel.

The nl80211 header defines more than this, but nl80211.c only uses the widths defined here.

newtype Signal Source #

Type for "chain signal"

Constructors

Signal [Word8] 

data StaRate Source #

Type for the rate attributes in StaInfo

Constructors

StaRate 

Fields

signalFromAttributes :: Attributes -> Signal Source #

Get a Signal from the nested attributes.

staRateFromAttributes :: Attributes -> StaRate Source #

Get the StaRate from a parsed nested Attribute

staInfoFromAttributes :: Attributes -> StaInfo Source #

Parse the nested Netlink Attributes into an StaInfo

getStaInfo :: Get StaInfo Source #

Get an StaInfo from a Bytestring

staInfoFromPacket :: Packet a -> Maybe StaInfo Source #

extract the StaInfo from a Packet. Use with caution.