summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/netctl.profile.5.txt4
-rw-r--r--src/lib/wpa1
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/netctl.profile.5.txt b/docs/netctl.profile.5.txt
index c125ce5..af42501 100644
--- a/docs/netctl.profile.5.txt
+++ b/docs/netctl.profile.5.txt
@@ -253,6 +253,10 @@ of the `wireless' type:
A space-separated list of frequencies in MHz to scan when searching
for the network. Defaults to all available frequencies.
+'Frequency='::
+ A frequency in MHz to use in ad-hoc mode when a new IBSS is created
+ (i.e. the network is not already present).
+
'Priority='::
Priority group for the network. In case of automatic profile
selection, the matched network with the highest priority will be
diff --git a/src/lib/wpa b/src/lib/wpa
index 8804f34..e8ce8b1 100644
--- a/src/lib/wpa
+++ b/src/lib/wpa
@@ -252,6 +252,7 @@ wpa_make_config_block() {
is_yes "${Hidden:-no}" && echo "scan_ssid=1"
is_yes "${AdHoc:-no}" && echo "mode=1"
[[ $ScanFrequencies ]] && echo "scan_freq=$ScanFrequencies"
+ [[ $Frequency ]] && echo "frequency=$Frequency"
[[ $Priority ]] && echo "priority=$Priority"
}