Implement wpa_supplicant backend
This commit is contained in:
parent
79c28da9c5
commit
04ada45f44
7 changed files with 874 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
|
||||
"github.com/nemunaire/repeater/internal/wifi/backend"
|
||||
"github.com/nemunaire/repeater/internal/wifi/iwd"
|
||||
"github.com/nemunaire/repeater/internal/wifi/wpasupplicant"
|
||||
)
|
||||
|
||||
// createBackend creates the appropriate WiFi backend based on the backend name
|
||||
|
|
@ -13,8 +14,7 @@ func createBackend(backendName string) (backend.WiFiBackend, error) {
|
|||
case "iwd":
|
||||
return iwd.NewIWDBackend(), nil
|
||||
case "wpasupplicant":
|
||||
// TODO: Implement wpa_supplicant backend
|
||||
return nil, fmt.Errorf("wpa_supplicant backend not yet implemented")
|
||||
return wpasupplicant.NewWPABackend(), nil
|
||||
default:
|
||||
return nil, fmt.Errorf("invalid wifi backend: %s (must be 'iwd' or 'wpasupplicant')", backendName)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue