Bump github.com/mdlayher/wifi to relax station info restrictions
This commit is contained in:
parent
38a4292360
commit
c0cc85716a
3 changed files with 36 additions and 14 deletions
12
vendor/github.com/mdlayher/wifi/client.go
generated
vendored
12
vendor/github.com/mdlayher/wifi/client.go
generated
vendored
|
|
@ -1,16 +1,11 @@
|
|||
package wifi
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
var (
|
||||
// errNotStation is returned when attempting to query station info for
|
||||
// an interface which is not a station.
|
||||
errNotStation = errors.New("interface is not a station")
|
||||
|
||||
// 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",
|
||||
|
|
@ -50,13 +45,8 @@ func (c *Client) BSS(ifi *Interface) (*BSS, error) {
|
|||
return c.c.BSS(ifi)
|
||||
}
|
||||
|
||||
// StationInfo retrieves statistics about a WiFi interface operating in
|
||||
// station mode.
|
||||
// StationInfo retrieves station statistics about a WiFi interface.
|
||||
func (c *Client) StationInfo(ifi *Interface) (*StationInfo, error) {
|
||||
if ifi.Type != InterfaceTypeStation {
|
||||
return nil, errNotStation
|
||||
}
|
||||
|
||||
return c.c.StationInfo(ifi)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue