-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add functions to accesspoint.vala #13
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for the PR! |
The UUID (Universally Unique Identifier) is used to uniquely identify a connection profile in NetworkManager's system, differentiating it from all other network profiles, regardless of network type (Wi-Fi, Ethernet, VPN, etc.). The |
But each access point has only one UUID as I understand, so why does the forget_ap method requires it as a paramater? shouldnt it use the instance's uuid? |
You're right, the current implementation only supports one connection profile per access point. However, each profile corresponds to a unique network configuration, and Right now I just used the instance's uuid until I get some extra time to create |
accesspoint.vala
public async void create_new_connection(
string? password = null,
string? ssid = this.ssid,
string? bssid = this.bssid,
string mode = "infrastructure",
string? band = null,
uint channel = 0,
string? mac_address = null,
bool powersave = true,
string security_type = "wpa-psk",
string auth_alg = "open",
string ip4_method = "auto",
string[]? ip4_dns = null,
string ip6_method = "auto",
bool autoconnect = false,
bool read_only = false
) accesspoint_profile.vala
TODO:
|
I think everything is ready now accesspoint.vala
accesspoint_profile.vala
|
Will be awesome to have these! |
Try adding to
accesspoint.vala
connect_to_ap(string? password = null)
forget_ap(string uuid)