aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-07-24 23:07:25 +0000
committerJohn Crispin <john@openwrt.org>2012-07-24 23:07:25 +0000
commit7639c9b580ed5dfda7022797c56ddb4b6a8392a7 (patch)
tree0c405df4077a69d6f9a37ce44366f0dd60212c97 /package/hostapd/files
parent8b3882224a40ef79be210a55a7fda779179d5872 (diff)
downloadupstream-7639c9b580ed5dfda7022797c56ddb4b6a8392a7.tar.gz
upstream-7639c9b580ed5dfda7022797c56ddb4b6a8392a7.tar.bz2
upstream-7639c9b580ed5dfda7022797c56ddb4b6a8392a7.zip
mac80211/hostapd: add support for HT capa in case of IBSS/RSN
Signed-off-by: Antonio Quartulli <ordex@autistici.org> SVN-Revision: 32830
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/wpa_supplicant.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh
index 6f89c646aa..babacd7968 100644
--- a/package/hostapd/files/wpa_supplicant.sh
+++ b/package/hostapd/files/wpa_supplicant.sh
@@ -4,6 +4,7 @@ wpa_supplicant_setup_vif() {
local key="$key"
local options="$3"
local freq=""
+ local ht="$5"
local ap_scan=""
local scan_ssid="1"
[ -n "$4" ] && freq="frequency=$4"
@@ -149,6 +150,9 @@ wpa_supplicant_setup_vif() {
mrate=${mcast_rate:+"mcast_rate=$mcval"}
}
+ local ht_str
+ [ -n "$ht" ] && ht_str="htmode=$ht"
+
rm -rf /var/run/wpa_supplicant-$ifname
cat > /var/run/wpa_supplicant-$ifname.conf <<EOF
ctrl_interface=/var/run/wpa_supplicant-$ifname
@@ -165,6 +169,7 @@ network={
$beacon_interval
$brates
$mrate
+ $ht_str
$ieee80211w
$passphrase
$pairwise