Skip to content
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

Cannot Create AccessPoint #30

Open
jkassis opened this issue May 2, 2022 · 0 comments
Open

Cannot Create AccessPoint #30

jkassis opened this issue May 2, 2022 · 0 comments

Comments

@jkassis
Copy link

jkassis commented May 2, 2022

	{
		conn := map[string]map[string]interface{}{
			"802-11-wireless": map[string]interface{}{
				"ssid":     "HELLO",
				"mode":     []string{"s", "ap"},
				"security": "802-11-wireless-security",
			},
			"802-11-wireless-security": map[string]interface{}{
				"psk":      "HELLO",
				"key-mgmt": []string{"s", "wpa-psk"},
			},
		}
		var ap gnm.AccessPoint
		if ap, err = gnm.NewAccessPoint(gnm.NetworkManagerObjectPath + "/AccessPoint/0"); err != nil {
			return fmt.Errorf(LP+"Could not make access point: %v", err)
		}
		var activeConn gnm.ActiveConnection
		if activeConn, err = nm.AddAndActivateWirelessConnection(conn, device, ap); err != nil {
			return fmt.Errorf(LP+"Could not make access point: %v", err)
		}
		log.Infof(LP+"New Access Point: %s", activeConn.GetPath())
	}

yields...

{"level":"info","msg":"WIFI Manager: Found the following network devices...","time":"2022-05-02T15:05:13-07:00"}
{"level":"info","msg":"WIFI Manager: lo - /org/freedesktop/NetworkManager/Devices/1","time":"2022-05-02T15:05:13-07:00"}
{"level":"info","msg":"WIFI Manager: eth0 - /org/freedesktop/NetworkManager/Devices/2","time":"2022-05-02T15:05:13-07:00"}
{"level":"info","msg":"WIFI Manager: wlan0 - /org/freedesktop/NetworkManager/Devices/3","time":"2022-05-02T15:05:13-07:00"}
{"level":"info","msg":"WIFI Manager: p2p-dev-wlan0 - /org/freedesktop/NetworkManager/Devices/4","time":"2022-05-02T15:05:13-07:00"}
2022-05-02T15:05:14-07:00 error layer=debugger error loading binary "/lib/aarch64-linux-gnu/libc.so.6": could not parse .eh_frame section: pointer encoding not supported 0x9b at 0x5a24
{"level":"fatal","msg":"WIFI Manager: Could not make access point: The access point /org/freedesktop/NetworkManager/AccessPoint/0 was not in the scan list.","time":"2022-05-02T15:05:20-07:00"}
Process 23015 has exited with status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant