I'm currently building an application that leverages NetworkManager for providing network configuration functionalities. The application uses the DBus API to communicate with NetworkManager.
I'm now stuck on the following problem: I want to have a UI element that lists the WiFi channels/frequencies that the user can select when setting up a WiFi access point but I'm not able to find a way to ask NetworkManager for this information. If I understand correctly the supported channel/frequencies depend on the network card capabilities and the country code set for the system.
When I use nmtui the channel selector is a text box and when I select an unsupported channel it throws an error. It looks like this information is available somewhere but I can't access it.
I know that I can retrieve this info from iwlist but, as per their documentation, that command output is not meant to be parsed and is not stable.
I tried skimming through the wpa_supplicant DBus API but it doesn't seem to provide this information either.
Is there a service/API I can use for retrieving this information?