hostapd: do not configure wme when using madwifi - fixes wpa/wpa2 association problems
authorFelix Fietkau <nbd@openwrt.org>
Sat, 17 Oct 2009 04:55:59 +0000 (04:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 17 Oct 2009 04:55:59 +0000 (04:55 +0000)
SVN-Revision: 18051

package/hostapd/files/hostapd.sh

index 9d0fb60549aae1bb8f2f187f5507786ac662dddc..0db5e0648bd63b6fe9520302cfd20ad147391d7e 100644 (file)
@@ -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
 }