Maintainer | ongy |
---|---|
Stability | testing |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
This module providis utility functions for NL80211 subsystem. In particular the NL80211_ATTR_STA_INFO part of NL80211. For more information see usrincludelinuxnl80211.h
- data StaInfo = StaInfo {
- staConTime :: Maybe Word32
- staInaTime :: Maybe Word32
- staRXBytes :: Maybe Word64
- staTXBytes :: Maybe Word64
- staLLID :: Maybe Word16
- staPLID :: Maybe Word16
- staPLState :: Maybe Word8
- staRXDur :: Maybe Word64
- staSignalMBM :: Maybe Word8
- staSignalMBMA :: Maybe Word8
- staSignal :: Maybe Signal
- staSignalAvg :: Maybe Signal
- staTXRate :: Maybe StaRate
- staRXRate :: Maybe StaRate
- staRXPackets :: Maybe Word32
- staTXPackets :: Maybe Word32
- staTXRetries :: Maybe Word32
- staTXFailed :: Maybe Word32
- staExpectTP :: Maybe Word32
- staBeaconLoss :: Maybe Word32
- staLocalPM :: Maybe Word32
- staPeerPM :: Maybe Word32
- staNonPeerPM :: Maybe Word32
- staBssAttrs :: Maybe Attributes
- staInfoFlags :: Maybe ByteString
- staTOffset :: Maybe Word64
- staRXDropMisc :: Maybe Word64
- staBeaconRX :: Maybe Word64
- staBSignalAvg :: Maybe Word8
- staTidStats :: Maybe Attributes
- staAssocIES :: Maybe Attributes
- staSelf :: Attributes
- data SignalWidth
- newtype Signal = Signal [Word8]
- data StaRate = StaRate {}
- signalFromAttributes :: Attributes -> Signal
- staRateFromAttributes :: Attributes -> StaRate
- staInfoFromAttributes :: Attributes -> StaInfo
- getStaInfo :: Get StaInfo
- staInfoFromPacket :: Packet a -> Maybe StaInfo
Documentation
Structure for wifi station information.
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.
Type for "chain signal"
Type for the rate attributes in StaInfo
StaRate | |
|
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