[arch-projects] [netctl] [PATCH] wpa: add Frequency= option

Ivan Shapovalov intelfx100 at gmail.com
Tue Apr 22 12:15:50 EDT 2014


This option sets a frequency to use in ad-hoc mode for a newly created IBSS
(when it is going to be created).
---

Rationale: in some cases (driver ath9k card Atheros AR5B97) wpa_supplicant
refuses to associate unless this is set.

 docs/netctl.profile.5.txt | 4 ++++
 src/lib/wpa               | 1 +
 2 files changed, 5 insertions(+)

diff --git a/docs/netctl.profile.5.txt b/docs/netctl.profile.5.txt
index c125ce5..9397ce3 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..b399b11 100644
--- a/src/lib/wpa
+++ b/src/lib/wpa
@@ -253,6 +253,7 @@ wpa_make_config_block() {
     is_yes "${AdHoc:-no}" && echo "mode=1"
     [[ $ScanFrequencies ]] && echo "scan_freq=$ScanFrequencies"
     [[ $Priority ]] && echo "priority=$Priority"
+    [[ $Frequency ]] && echo "frequency=$Frequency"
 }
 
 
-- 
1.9.2



More information about the arch-projects mailing list