pkg

package
v0.0.0-...-be6d0a5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NM_802_11_AP_SEC_NONE            = 0x0000
	NM_802_11_AP_SEC_PAIR_WEP40      = 0x0001 // WEP (40-bit)
	NM_802_11_AP_SEC_PAIR_WEP104     = 0x0002 // WEP (104-bit)
	NM_802_11_AP_SEC_PAIR_TKIP       = 0x0004 // TKIP encryption
	NM_802_11_AP_SEC_PAIR_CCMP       = 0x0008 // CCMP encryption
	NM_802_11_AP_SEC_GROUP_WEP40     = 0x0010 // WEP (40-bit)
	NM_802_11_AP_SEC_GROUP_WEP104    = 0x0020 // WEP (104-bit)
	NM_802_11_AP_SEC_GROUP_TKIP      = 0x0040 // Group TKIP
	NM_802_11_AP_SEC_GROUP_CCMP      = 0x0080 // Group CCMP
	NM_802_11_AP_SEC_KEY_MGMT_PSK    = 0x0100 // Pre-shared key
	NM_802_11_AP_SEC_KEY_MGMT_802_1X = 0x0200 // 802.1X
)

NM_802_11_AP_SEC flags (for WpaFlags and RsnFlags)

Variables

This section is empty.

Functions

func ConnectWiFi

func ConnectWiFi(ctx context.Context, conn *dbus.Conn, request *dev.WiFiConnectRequest) error

func StartHotspot

func StartHotspot(ctx context.Context, conn *dbus.Conn, hotspotSSID string, hotspotPassword string, hotspotInterfaceName string) error

func WifiScan

func WifiScan(ctx context.Context, conn *dbus.Conn, networkInterfaceName string) ([]*dev.WiFiAccessPoint, error)

Types

type ConnectivityServer

type ConnectivityServer struct{}

func NewConnectivityServer

func NewConnectivityServer() *ConnectivityServer

type TimeServer

type TimeServer struct {
	// contains filtered or unexported fields
}

func NewTimeServer

func NewTimeServer(dbus *dbus.Conn) *TimeServer

Jump to

Keyboard shortcuts

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