mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-16 21:03:23 +00:00
rethink netdev name again
This commit is contained in:
+3
-3
@@ -113,9 +113,9 @@ type Resolver interface {
|
|||||||
GetHostByName(name string) (netip.Addr, error)
|
GetHostByName(name string) (netip.Addr, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// L4WifiInterface is returned by `Probe` function for devices that communicate
|
// WifiStack is returned by `Probe` function for devices that communicate
|
||||||
// on the OSI level 4 (transport) layer.
|
// on the OSI level 4 (transport) layer.
|
||||||
type L4WifiInterface interface {
|
type WifiStack interface {
|
||||||
InterfaceWifi
|
InterfaceWifi
|
||||||
SocketStack
|
SocketStack
|
||||||
}
|
}
|
||||||
@@ -184,7 +184,7 @@ type WifiAutoconnectParams struct {
|
|||||||
WatchdogTimeout time.Duration
|
WatchdogTimeout time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
func StartWifiAutoconnect(dev L4WifiInterface, cfg WifiAutoconnectParams) error {
|
func StartWifiAutoconnect(dev WifiStack, cfg WifiAutoconnectParams) error {
|
||||||
if dev == nil {
|
if dev == nil {
|
||||||
return ErrConnectModeNoGood
|
return ErrConnectModeNoGood
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user