Vendor github.com/mdlayher/wifi and dependencies
This commit is contained in:
parent
e9cea11553
commit
82a2b8fc02
34 changed files with 8970 additions and 0 deletions
35
vendor/github.com/mdlayher/wifi/client_others.go
generated
vendored
Normal file
35
vendor/github.com/mdlayher/wifi/client_others.go
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
//+build !linux
|
||||
|
||||
package wifi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
var (
|
||||
// errUnimplemented is returned by all functions on platforms that
|
||||
// do not have package wifi implemented.
|
||||
errUnimplemented = fmt.Errorf("package wifi not implemented on %s/%s",
|
||||
runtime.GOOS, runtime.GOARCH)
|
||||
)
|
||||
|
||||
var _ osClient = &client{}
|
||||
|
||||
// A conn is the no-op implementation of a netlink sockets connection.
|
||||
type client struct{}
|
||||
|
||||
// newClient always returns an error.
|
||||
func newClient() (*client, error) {
|
||||
return nil, errUnimplemented
|
||||
}
|
||||
|
||||
// Interfaces always returns an error.
|
||||
func (c *client) Interfaces() ([]*Interface, error) {
|
||||
return nil, errUnimplemented
|
||||
}
|
||||
|
||||
// StationInfo always returns an error.
|
||||
func (c *client) StationInfo(ifi *Interface) (*StationInfo, error) {
|
||||
return nil, errUnimplemented
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue