rethink netdev name again

This commit is contained in:
soypat
2023-12-19 23:12:46 -03:00
parent 728bdbba5b
commit d4705e501d
+3 -3
View File
@@ -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
} }