wpa_dbus

package
v0.0.0-...-10297d2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) 2020 ARM Limited and affiliates. Copyright (c) 2016 Mark Berner SPDX-License-Identifier: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2020 ARM Limited and affiliates. Copyright (c) 2016 Mark Berner SPDX-License-Identifier: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2020 ARM Limited and affiliates. Copyright (c) 2016 Mark Berner SPDX-License-Identifier: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2020 ARM Limited and affiliates. Copyright (c) 2016 Mark Berner SPDX-License-Identifier: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BSSWPA

type BSSWPA struct {
	Interface     *InterfaceWPA
	Object        dbus.BusObject
	BSSID         string
	SSID          string
	WPAKeyMgmt    []string
	RSNKeyMgmt    []string
	WPS           string
	Frequency     uint16
	Signal        int16
	Age           uint32
	Mode          string
	Privacy       bool
	SignalChannel chan *dbus.Signal
	Error         error
}

func (*BSSWPA) AddSignalsObserver

func (self *BSSWPA) AddSignalsObserver() *BSSWPA

func (*BSSWPA) ReadAge

func (self *BSSWPA) ReadAge() *BSSWPA

func (*BSSWPA) ReadBSSID

func (self *BSSWPA) ReadBSSID() *BSSWPA

func (*BSSWPA) ReadFrequency

func (self *BSSWPA) ReadFrequency() *BSSWPA

func (*BSSWPA) ReadMode

func (self *BSSWPA) ReadMode() *BSSWPA

func (*BSSWPA) ReadPrivacy

func (self *BSSWPA) ReadPrivacy() *BSSWPA

func (*BSSWPA) ReadRSN

func (self *BSSWPA) ReadRSN() *BSSWPA

func (*BSSWPA) ReadSSID

func (self *BSSWPA) ReadSSID() *BSSWPA

func (*BSSWPA) ReadSignal

func (self *BSSWPA) ReadSignal() *BSSWPA

func (*BSSWPA) ReadWPA

func (self *BSSWPA) ReadWPA() *BSSWPA

func (*BSSWPA) ReadWPS

func (self *BSSWPA) ReadWPS() *BSSWPA

func (*BSSWPA) RemoveSignalsObserver

func (self *BSSWPA) RemoveSignalsObserver() *BSSWPA

type InterfaceWPA

type InterfaceWPA struct {
	WPA              *WPA
	Object           dbus.BusObject
	Networks         []NetworkWPA
	BSSs             []BSSWPA
	State            string
	Scanning         bool
	Ifname           string
	CurrentBSS       *BSSWPA
	TempBSS          *BSSWPA
	CurrentNetwork   *NetworkWPA
	NewNetwork       *NetworkWPA
	ScanInterval     int32
	DisconnectReason int32
	SignalChannel    chan *dbus.Signal
	Error            error
}

func (*InterfaceWPA) AddNetwork

func (self *InterfaceWPA) AddNetwork(args map[string]dbus.Variant) *InterfaceWPA

func (*InterfaceWPA) AddSignalsObserver

func (self *InterfaceWPA) AddSignalsObserver() *InterfaceWPA

func (*InterfaceWPA) Disconnect

func (self *InterfaceWPA) Disconnect() *InterfaceWPA

func (*InterfaceWPA) MakeTempBSS

func (self *InterfaceWPA) MakeTempBSS() *InterfaceWPA

func (*InterfaceWPA) ReadBSSList

func (self *InterfaceWPA) ReadBSSList() *InterfaceWPA

func (*InterfaceWPA) ReadDisconnectReason

func (self *InterfaceWPA) ReadDisconnectReason() *InterfaceWPA

func (*InterfaceWPA) ReadIfname

func (self *InterfaceWPA) ReadIfname() *InterfaceWPA

func (*InterfaceWPA) ReadNetworksList

func (self *InterfaceWPA) ReadNetworksList() *InterfaceWPA

func (*InterfaceWPA) ReadScanInterval

func (self *InterfaceWPA) ReadScanInterval() *InterfaceWPA

func (*InterfaceWPA) ReadScanning

func (self *InterfaceWPA) ReadScanning() *InterfaceWPA

func (*InterfaceWPA) ReadState

func (self *InterfaceWPA) ReadState() *InterfaceWPA

func (*InterfaceWPA) Reassociate

func (self *InterfaceWPA) Reassociate() *InterfaceWPA

func (*InterfaceWPA) Reattach

func (self *InterfaceWPA) Reattach() *InterfaceWPA

func (*InterfaceWPA) Reconnect

func (self *InterfaceWPA) Reconnect() *InterfaceWPA

func (*InterfaceWPA) RemoveAllNetworks

func (self *InterfaceWPA) RemoveAllNetworks() *InterfaceWPA

func (*InterfaceWPA) RemoveSignalsObserver

func (self *InterfaceWPA) RemoveSignalsObserver() *InterfaceWPA

func (*InterfaceWPA) Scan

func (self *InterfaceWPA) Scan() *InterfaceWPA

type NetworkWPA

type NetworkWPA struct {
	Interface     *InterfaceWPA
	Object        dbus.BusObject
	SSID          string
	KeyMgmt       string
	SignalChannel chan *dbus.Signal
	Error         error
}

func (*NetworkWPA) AddSignalsObserver

func (self *NetworkWPA) AddSignalsObserver() *NetworkWPA

func (*NetworkWPA) ReadProperties

func (self *NetworkWPA) ReadProperties() *NetworkWPA

func (*NetworkWPA) RemoveSignalsObserver

func (self *NetworkWPA) RemoveSignalsObserver() *NetworkWPA

func (*NetworkWPA) Select

func (self *NetworkWPA) Select() *NetworkWPA

type WPA

type WPA struct {
	Connection    *dbus.Conn
	Object        dbus.BusObject
	Interfaces    []InterfaceWPA
	Interface     *InterfaceWPA
	SignalChannel chan *dbus.Signal
	Error         error
}

func NewWPA

func NewWPA() (wpa *WPA, e error)

func (*WPA) AddSignalsObserver

func (self *WPA) AddSignalsObserver() *WPA

func (*WPA) ReadInterface

func (self *WPA) ReadInterface(ifname string) *WPA

func (*WPA) ReadInterfaceList

func (self *WPA) ReadInterfaceList() *WPA

func (*WPA) RemoveSignalsObserver

func (self *WPA) RemoveSignalsObserver() *WPA

func (*WPA) StopWaitForSignals

func (self *WPA) StopWaitForSignals() *WPA

func (*WPA) WaitForSignals

func (self *WPA) WaitForSignals(callBack func(*WPA, *dbus.Signal)) *WPA

Jump to

Keyboard shortcuts

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