Categorygithub.com/mdlayher/wifi
modulepackage
0.4.0
Repository: https://github.com/mdlayher/wifi.git
Documentation: pkg.go.dev

# README

wifi Test Status Go Reference Go Report Card

Package wifi provides access to IEEE 802.11 WiFi device operations on Linux using nl80211. MIT Licensed.

# Functions

New creates a new Client.

# Constants

BSSStatusAssociated indicates that a client is associated with a BSS.
BSSStatusAuthenticated indicates that a client is authenticated with a BSS.
BSSStatusIBSSJoined indicates that a client has joined an independent BSS.
InterfaceTypeAdHoc indicates that an interface is part of an independent basic service set (BSS) of client devices without a controlling access point.
InterfaceTypeAP indicates that an interface is an access point.
InterfaceTypeAPVLAN indicates that an interface is a VLAN interface associated with an access point.
InterfaceTypeMeshPoint indicates that an interface is part of a wireless mesh network.
InterfaceTypeMonitor indicates that an interface is a monitor interface, receiving all frames from all clients in a given network.
InterfaceTypeNAN indicates that an interface is part of a near-me area network (NAN).
InterfaceTypeOCB indicates that an interface is outside the context of a basic service set (BSS).
InterfaceTypeP2PClient indicates that an interface is a client within a peer-to-peer network.
InterfaceTypeP2PDevice indicates that an interface is a device within a peer-to-peer client network.
InterfaceTypeP2PGroupOwner indicates that an interface is the group owner within a peer-to-peer network.
InterfaceTypeStation indicates that an interface is part of a managed basic service set (BSS) of client devices with a controlling access point.
InterfaceTypeUnspecified indicates that an interface's type is unspecified and the driver determines its function.
InterfaceTypeWDS indicates that an interface is a wireless distribution interface, used as part of a network of multiple access points.

# Variables

errNotSupported is returned when an operation is not supported.

# Structs

A BSS is an 802.11 basic service set.
BSSLoad is an Information Element containing measurements of the load on the BSS.
A Client is a type which can access WiFi device actions and statistics using operating system-specific operations.
An Interface is a WiFi network interface.
StationInfo contains statistics about a WiFi interface operating in station mode.
No description provided by the author

# Type aliases

A BSSStatus indicates the current status of client within a BSS.
An InterfaceType is the operating mode of an Interface.