netlink-1.1.1.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

Instances
Eq StaInfo Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

(==) :: StaInfo -> StaInfo -> Bool

(/=) :: StaInfo -> StaInfo -> Bool

Read StaInfo Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

readsPrec :: Int -> ReadS StaInfo

readList :: ReadS [StaInfo]

readPrec :: ReadPrec StaInfo

readListPrec :: ReadPrec [StaInfo]

Show StaInfo Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

showsPrec :: Int -> StaInfo -> ShowS

show :: StaInfo -> String

showList :: [StaInfo] -> ShowS

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.

Instances
Eq SignalWidth Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

(==) :: SignalWidth -> SignalWidth -> Bool

(/=) :: SignalWidth -> SignalWidth -> Bool

Read SignalWidth Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

readsPrec :: Int -> ReadS SignalWidth

readList :: ReadS [SignalWidth]

readPrec :: ReadPrec SignalWidth

readListPrec :: ReadPrec [SignalWidth]

Show SignalWidth Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

showsPrec :: Int -> SignalWidth -> ShowS

show :: SignalWidth -> String

showList :: [SignalWidth] -> ShowS

newtype Signal Source #

Type for "chain signal"

Constructors

Signal [Word8] 
Instances
Eq Signal Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

(==) :: Signal -> Signal -> Bool

(/=) :: Signal -> Signal -> Bool

Read Signal Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

readsPrec :: Int -> ReadS Signal

readList :: ReadS [Signal]

readPrec :: ReadPrec Signal

readListPrec :: ReadPrec [Signal]

Show Signal Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

showsPrec :: Int -> Signal -> ShowS

show :: Signal -> String

showList :: [Signal] -> ShowS

data StaRate Source #

Type for the rate attributes in StaInfo

Constructors

StaRate 

Fields

Instances
Eq StaRate Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

(==) :: StaRate -> StaRate -> Bool

(/=) :: StaRate -> StaRate -> Bool

Read StaRate Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

readsPrec :: Int -> ReadS StaRate

readList :: ReadS [StaRate]

readPrec :: ReadPrec StaRate

readListPrec :: ReadPrec [StaRate]

Show StaRate Source # 
Instance details

Defined in System.Linux.Netlink.GeNetlink.NL80211.StaInfo

Methods

showsPrec :: Int -> StaRate -> ShowS

show :: StaRate -> String

showList :: [StaRate] -> ShowS

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.