Update vendored wifi, handle stations with missing info

This commit is contained in:
Matt Layher 2017-01-17 00:54:18 -05:00
commit ca3f07feef
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
6 changed files with 288 additions and 41 deletions

View file

@ -2,18 +2,6 @@
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.
@ -34,6 +22,11 @@ func (c *client) Interfaces() ([]*Interface, error) {
return nil, errUnimplemented
}
// BSS always returns an error.
func (c *client) BSS(ifi *Interface) (*BSS, error) {
return nil, errUnimplemented
}
// StationInfo always returns an error.
func (c *client) StationInfo(ifi *Interface) (*StationInfo, error) {
return nil, errUnimplemented