-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathclient_others.go
30 lines (24 loc) · 1.35 KB
/
client_others.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//go:build !linux
// +build !linux
package wifi
import (
"fmt"
"runtime"
"time"
)
// errUnimplemented is returned by all functions on platforms that
// do not have package wifi implemented.
var errUnimplemented = fmt.Errorf("wifi: not implemented on %s", runtime.GOOS)
// A conn is the no-op implementation of a netlink sockets connection.
type client struct{}
func newClient() (*client, error) { return nil, errUnimplemented }
func (*client) Close() error { return errUnimplemented }
func (*client) Interfaces() ([]*Interface, error) { return nil, errUnimplemented }
func (*client) BSS(_ *Interface) (*BSS, error) { return nil, errUnimplemented }
func (*client) StationInfo(_ *Interface) ([]*StationInfo, error) { return nil, errUnimplemented }
func (*client) Connect(_ *Interface, _ string) error { return errUnimplemented }
func (*client) Disconnect(_ *Interface) error { return errUnimplemented }
func (*client) ConnectWPAPSK(_ *Interface, _, _ string) error { return errUnimplemented }
func (*client) SetDeadline(t time.Time) error { return errUnimplemented }
func (*client) SetReadDeadline(t time.Time) error { return errUnimplemented }
func (*client) SetWriteDeadline(t time.Time) error { return errUnimplemented }