Use iwconfig defaults and config if available.

This commit is contained in:
Roy Marples 2008-05-27 10:46:27 +00:00
parent 3a592fa31b
commit bb069e1618

View File

@ -78,11 +78,9 @@ wpa_supplicant_pre_start()
service_set_value "SSID" "" service_set_value "SSID" ""
ebegin "Starting wpa_supplicant on ${IFVAR}" ebegin "Starting wpa_supplicant on ${IFVAR}"
if [ -x /sbin/iwconfig ]; then if type iwconfig_defaults >/dev/null 2>&1; then
local x= iwconfig_defaults
for x in txpower rate rts frag; do iwconfig_user_config
iwconfig "${IFACE}" "${x}" auto 2>/dev/null
done
fi fi
cfgfile=${opts##* -c} cfgfile=${opts##* -c}