Help us shape the future of Go! Take the 2026 Go Developer Survey

wireless

package module
v0.0.0-...-b8d6ee2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 5 Imported by: 0

README

wireless

Build Status GoDoc

A golang library to interact with the wireless library on linux.

Dependencies

  • You must be building your golang application with cgo enabled (so no cross-compilation)
  • libiw to be installed (libiw-dev on Ubuntu, wireless-tools on Arch)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name      string
	HasNwid   bool
	Nwid      IwParam
	HasFreq   bool
	Freq      float64
	FreqFlags int
	HasKey    bool
	Key       string
	KeySize   int
	KeyFlags  int
	HasEssid  bool
	EssidOn   bool
	Essid     string
	HasMode   bool
	Mode      int
}

Config is the wireless_config struct from iwlib.h

type IwParam

type IwParam struct {
	Value    int
	Fixed    bool
	Disabled bool
	Flags    uint16
}

IwParam is the iwparam struct from wireless.22.h

type NetworkInterface

type NetworkInterface string

NetworkInterface is the name of the wireless interface you wish to perform operations on

func NetworkInterfaces

func NetworkInterfaces() ([]NetworkInterface, error)

NetworkInterfaces enumerates /proc/net/wireless to discover all of the available wireless interfaces

func (NetworkInterface) BasicConfig

func (i NetworkInterface) BasicConfig() (Config, error)

BasicConfig retrieves the wireless configuration for the given interface name.

Directories

Path Synopsis
examples
list_interfaces command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL