mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 23:17:47 +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)
|
||||
}
|
||||
|
||||
// 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.
|
||||
type L4WifiInterface interface {
|
||||
type WifiStack interface {
|
||||
InterfaceWifi
|
||||
SocketStack
|
||||
}
|
||||
@@ -184,7 +184,7 @@ type WifiAutoconnectParams struct {
|
||||
WatchdogTimeout time.Duration
|
||||
}
|
||||
|
||||
func StartWifiAutoconnect(dev L4WifiInterface, cfg WifiAutoconnectParams) error {
|
||||
func StartWifiAutoconnect(dev WifiStack, cfg WifiAutoconnectParams) error {
|
||||
if dev == nil {
|
||||
return ErrConnectModeNoGood
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user