After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750646 - Allow to override freq_list from NM config
Allow to override freq_list from NM config
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: Wi-Fi
git master
Other Linux
: Normal enhancement
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-06-09 15:07 UTC by George Shuklin
Modified: 2020-11-12 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description George Shuklin 2015-06-09 15:07:36 UTC
Due combination of bug in my WiFi card and buggy AP at 2.4GHz, if one specify list of frequencies in freq_list in wpa_supplicant, or does not specify anything, it will not work.

Examples of broken configs:

country=CY
         network={
               freq_list=5220,5240
               ssid="AP"
               key_mgmt=WPA-PSK
               psk="pass"
          }

country=CY
         network={
               ssid="AP"
               key_mgmt=WPA-PSK
               psk="pass"
          }

The only way to get working WiFi is to pin frequency:

country=CY
         network={
               freq_list=5240
               ssid="AP"
               key_mgmt=WPA-PSK
               psk="pass"
          }

But NM does not allow this.

The single piece of code to control freq_list is:

        if (!strcmp (band, "a"))
            freqs = FIVE_GHZ_FREQS;
        else if (!strcmp (band, "bg"))
            freqs = TWO_GHZ_FREQS;

        if (freqs && !nm_supplicant_config_add_option (self, "freq_list", freqs, strlen (freqs), FALSE)) {

And it produce (for 'a' mode):

NetworkManager[32406]: <info>  Config: added 'freq_list' value '4915,4920,4925,4935,4940,4945,4960,4980,5035,5040,5045,5055,5060,5080,5170,5180,5190,5200,5210,5220,5230,5240,5260,5280,5300,5320,5500,5520,5540,5560,5580,5600,5620,5640,5660,5680,5700,5745,5765,5785,5805,5825'

Which is not working, unfortunately.

Can you please, please, add separate option to NM to control that list? Something like  (nmcli)

set 802-11-wireless.freq_list 5240

It should looks like this (sorry for my C):

    freq_list = nm_setting_wireless_get_freq_list (settings);
    if (freq_list) {
        if (freq_list && !nm_supplicant_config_add_option (self, "freq_list", freqs, strlen (freqs), FALSE)) {
            nm_log_warn (LOGD_SUPPLICANT, "Error adding frequency list to supplicant config.");
            return FALSE;
        }
    }


Thanks!
Comment 1 André Klapper 2020-11-12 14:28:38 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).