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
32
vendor/github.com/mdlayher/wifi/wifi.go
generated
vendored
32
vendor/github.com/mdlayher/wifi/wifi.go
generated
vendored
|
|
@ -69,6 +69,38 @@ const (
|
|||
InterfaceTypeNAN
|
||||
)
|
||||
|
||||
// String returns the string representation of an InterfaceType.
|
||||
func (t InterfaceType) String() string {
|
||||
switch t {
|
||||
case InterfaceTypeUnspecified:
|
||||
return "unspecified"
|
||||
case InterfaceTypeAdHoc:
|
||||
return "ad-hoc"
|
||||
case InterfaceTypeStation:
|
||||
return "station"
|
||||
case InterfaceTypeAP:
|
||||
return "access point"
|
||||
case InterfaceTypeWDS:
|
||||
return "wireless distribution"
|
||||
case InterfaceTypeMonitor:
|
||||
return "monitor"
|
||||
case InterfaceTypeMeshPoint:
|
||||
return "mesh point"
|
||||
case InterfaceTypeP2PClient:
|
||||
return "P2P client"
|
||||
case InterfaceTypeP2PGroupOwner:
|
||||
return "P2P group owner"
|
||||
case InterfaceTypeP2PDevice:
|
||||
return "P2P device"
|
||||
case InterfaceTypeOCB:
|
||||
return "outside context of BSS"
|
||||
case InterfaceTypeNAN:
|
||||
return "near-me area network"
|
||||
default:
|
||||
return fmt.Sprintf("unknown(%d)", t)
|
||||
}
|
||||
}
|
||||
|
||||
// An Interface is a WiFi network interface.
|
||||
type Interface struct {
|
||||
// The index of the interface.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue