[ -n "$hwmode_11n" ] && {
hwmode="$hwmode_11n"
config_get ht_capab "$device" ht_capab
+ [ -n "$ht_capab" -a -n "${ht_capab%%\[*}" ] && {
+ ht_capab=`echo "[$ht_capab]" | sed -e 's, ,][,g'`
+ }
}
}
cat > /var/run/hostapd-$ifname.conf <<EOF
${wpa_group_rekey:+wpa_group_rekey=$wpa_group_rekey}
${ieee80211d:+ieee80211d=$ieee80211d}
$hostapd_cfg
+EOF
+ case "$driver" in
+ madwifi)
+ ;;
+ *)
+ cat >> /var/run/hostapd-$ifname.conf <<EOF
wme_enabled=1
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
tx_queue_data0_cwmax=7
tx_queue_data0_burst=1.5
EOF
+ ;;
+ esac
hostapd -P /var/run/wifi-$ifname.pid -B /var/run/hostapd-$ifname.conf
}