mirror of
https://github.com/MengMengCode/VoCat.git
synced 2026-08-18 05:43:42 +08:00
37 lines
585 B
Go
37 lines
585 B
Go
//go:build !linux
|
|
|
|
package device
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"vocat/internal/modem"
|
|
)
|
|
|
|
func setQMINetwork(
|
|
context.Context,
|
|
modem.Candidate,
|
|
bool,
|
|
string,
|
|
string,
|
|
string,
|
|
string,
|
|
string,
|
|
) (NetworkResult, error) {
|
|
return NetworkResult{}, fmt.Errorf("%w: QMI control is supported only on Linux", ErrDataBackendUnavailable)
|
|
}
|
|
|
|
func setMBIMNetwork(
|
|
context.Context,
|
|
modem.Candidate,
|
|
bool,
|
|
string,
|
|
string,
|
|
string,
|
|
string,
|
|
string,
|
|
) (NetworkResult, error) {
|
|
return NetworkResult{}, fmt.Errorf("%w: MBIM control is supported only on Linux", ErrDataBackendUnavailable)
|
|
}
|