aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-27 10:46:27 +0000
committerRoy Marples <roy@marples.name>2008-05-27 10:46:27 +0000
commitbb069e161838f9bb343f140a38a80414b62c41c3 (patch)
tree5f2a6bbd530eedaf4e6c4c542f58c9b044391ea4 /net
parent3a592fa31b2f51062d496378153e7e446f8246fc (diff)
Use iwconfig defaults and config if available.
Diffstat (limited to 'net')
-rw-r--r--net/wpa_supplicant.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh
index f7c4bc00..543f251a 100644
--- a/net/wpa_supplicant.sh
+++ b/net/wpa_supplicant.sh
@@ -78,11 +78,9 @@ wpa_supplicant_pre_start()
service_set_value "SSID" ""
ebegin "Starting wpa_supplicant on ${IFVAR}"
- if [ -x /sbin/iwconfig ]; then
- local x=
- for x in txpower rate rts frag; do
- iwconfig "${IFACE}" "${x}" auto 2>/dev/null
- done
+ if type iwconfig_defaults >/dev/null 2>&1; then
+ iwconfig_defaults
+ iwconfig_user_config
fi
cfgfile=${opts##* -c}