missing frequency in wpa_supplicant.conf when in adhoc mode.

Bug #2020754 reported by Yevgeniy Melnichuk
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Fix Released
Undecided
Unassigned

Bug Description

generated configuration for wpa_supplicant is missing "frequency", when in adhoc mode. Instead it always contains "freq_list", no matter in what mode.

here is my configuration for netplan:
network:
  version: 2
  wifis:
    wlan0:
      access-points:
        "test":
          mode: adhoc
          band: 2.4GHz
          channel: 7
          password: "*******"

the generated configuration for wpa_supplication looks like this:
ctrl_interface=/run/wpa_supplicant
network={
   ssid="edge-test"
   freq_list=2442
   mode=1
   key_mgmt=WPA-PSK
   psk="*******"
}

instead of freq_list=2442 it should be frequency=2442.

here is what documentation for wpa_supplication says about frequency:
frequency: Channel frequency in megahertz (MHz) for IBSS, e.g.,
2412 = IEEE 802.11b/g channel 1. This value is used to configure the initial
channel for IBSS (adhoc) networks. It is ignored in the infrastructure mode.
In addition, this value is only used by the station that creates the IBSS. If
an IBSS network with the configured SSID is already present, the frequency of
the network will be used instead of this configured value.

Tags: adhoc
Revision history for this message
Yevgeniy Melnichuk (yevgeniy-melnichuk) wrote :

here is my suggestion for a bug fix:
https://github.com/canonical/netplan/pull/363

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Hi there,

thanks so much for your bug report and PR. I left some comments there.

Changed in netplan:
status: New → Triaged
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

The PR was merged. Thanks for your contribution!

Changed in netplan:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.