aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-17 04:55:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-17 04:55:59 +0000
commit27c31f11b1bccf2054a99c242316ffc2f283645d (patch)
treea5647e830986a5422860f0850643a8f27289a4e8
parentb6c8fa2cea7761c79384b3e1d1459c84da000ffc (diff)
downloadupstream-27c31f11b1bccf2054a99c242316ffc2f283645d.tar.gz
upstream-27c31f11b1bccf2054a99c242316ffc2f283645d.tar.bz2
upstream-27c31f11b1bccf2054a99c242316ffc2f283645d.zip
hostapd: do not configure wme when using madwifi - fixes wpa/wpa2 association problems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18051 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/hostapd/files/hostapd.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 9d0fb60549..0db5e0648b 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -107,6 +107,12 @@ ${ht_capab:+ht_capab=$ht_capab}
${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
@@ -145,6 +151,8 @@ tx_queue_data0_cwmin=3
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
}