wifi_freebsd.go 1.1 KB

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