wifi_darwin.go 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //go:build darwin
  2. // +build darwin
  3. package wifi
  4. /*
  5. This interface is left to be developed in the future when I have a macbook :P
  6. */
  7. import "errors"
  8. // Toggle WiFi On Off. Only allow on sudo mode
  9. func (w *WiFiManager) SetInterfacePower(wlanInterface string, on bool) error {
  10. return errors.New("Platform not supported")
  11. }
  12. func (w *WiFiManager) GetInterfacePowerStatuts(wlanInterface string) (bool, error) {
  13. return false, errors.New("Platform not supported")
  14. }
  15. func (w *WiFiManager) ScanNearbyWiFi(interfaceName string) ([]WiFiInfo, error) {
  16. return []WiFiInfo{}, errors.New("Platform not supported")
  17. }
  18. func (w *WiFiManager) GetWirelessInterfaces() ([]string, error) {
  19. return []string{}, nil
  20. }
  21. func (w *WiFiManager) ConnectWiFi(ssid string, password string, connType string, identity string) (*WiFiConnectionResult, error) {
  22. return &WiFiConnectionResult{}, errors.New("Platform not supported")
  23. }
  24. func (w *WiFiManager) GetConnectedWiFi() (string, string, error) {
  25. return "", "", errors.New("Platform not supported")
  26. }
  27. func (w *WiFiManager) RemoveWifi(ssid string) error {
  28. return errors.New("Platform not supported")
  29. }