diff --git a/api/api.go b/api/api.go index 7173e85..e9faf02 100644 --- a/api/api.go +++ b/api/api.go @@ -941,7 +941,7 @@ func getServiceLogs(service string, lines int) ([]string, error) { } func (api *ManagementAPI) GetWifiNetworks(w http.ResponseWriter, r *http.Request) { - networks, err := netmanagerclient.ListSavedWifiNetworks() + networks, err := netmanagerclient.ListUserSavedWifiNetworks() if err != nil { serverError(&w, err) return diff --git a/go.mod b/go.mod index 4f1e0e8..ab3c49e 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( ) require ( - github.com/TheCacophonyProject/rpi-net-manager v0.2.1-deb12 + github.com/TheCacophonyProject/rpi-net-manager v0.2.3-deb12 github.com/TheCacophonyProject/trap-controller v0.0.0-20230227002937-262a1adfaa47 golang.org/x/text v0.3.7 ) diff --git a/go.sum b/go.sum index 4be0c1c..97c7b06 100644 --- a/go.sum +++ b/go.sum @@ -77,8 +77,8 @@ github.com/TheCacophonyProject/modemd v0.0.0-20190605010435-ae5b0f2eb760/go.mod github.com/TheCacophonyProject/modemd v0.0.0-20190708011609-1940f5b6677b/go.mod h1:txGgnRinv6H0/jB4n71MpuS+2qtu8tAlntIjY5udXDU= github.com/TheCacophonyProject/periph v2.1.1-0.20200615222341-6834cd5be8c1+incompatible h1:0pEn1FoMTgOZR3EkqOTiqd0++jOS/jWlGrbvOHK0/KM= github.com/TheCacophonyProject/periph v2.1.1-0.20200615222341-6834cd5be8c1+incompatible/go.mod h1:K1wa07sGXKzV0G9p+4R069mZk4GOpqKW8GU6/k+BrIo= -github.com/TheCacophonyProject/rpi-net-manager v0.2.1-deb12 h1:BNlLP4gmwn516kXACoTon6ghuPZWGwNN4ukpH4THwpI= -github.com/TheCacophonyProject/rpi-net-manager v0.2.1-deb12/go.mod h1:6Xl1Dp7F8IyvufOv0O5EfoXQjqoA/qNLeoWh3Rv1Y0c= +github.com/TheCacophonyProject/rpi-net-manager v0.2.3-deb12 h1:wm/90HB7zFF+Kz7bBugGyFXkYTS8fxGO2EWa6sTk6po= +github.com/TheCacophonyProject/rpi-net-manager v0.2.3-deb12/go.mod h1:6Xl1Dp7F8IyvufOv0O5EfoXQjqoA/qNLeoWh3Rv1Y0c= github.com/TheCacophonyProject/rtc-utils v1.2.0 h1:570sPJE/s0b21NrP9VVeSI/gBh/dLK+G5Ne/ZFwkNv0= github.com/TheCacophonyProject/rtc-utils v1.2.0/go.mod h1:uV1SIy93TLZrrBcqDczUNFUz2G/Pk6pZNUdTRglmANU= github.com/TheCacophonyProject/salt-updater v0.4.0 h1:2RCgdI4wr/ZoeWOvfGlZ/Epgz3GTC+Vc7/wS6EI90c0= diff --git a/management-interface.go b/management-interface.go index 98b7234..d02c91e 100644 --- a/management-interface.go +++ b/management-interface.go @@ -330,7 +330,7 @@ func WifiNetworkHandler(w http.ResponseWriter, r *http.Request) { } wifiProps := wifiProperties{} - wifiNetworks, err := netmanagerclient.ListSavedWifiNetworks() + wifiNetworks, err := netmanagerclient.ListUserSavedWifiNetworks() if err != nil { log.Println(err) wifiProps.Error = err.Error()