X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/013d58fbe3352de582575a22444f0c9f729fcdac..fb9f9cdc813406041715d4c692f2b18cfd418cee:/package/madwifi/files/lib/wifi/madwifi.sh?ds=sidebyside diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 29e9f3791..9e0e70b38 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -87,7 +87,7 @@ enable_atheros() { config_get_bool antdiv "$device" diversity config_get antrx "$device" rxantenna config_get anttx "$device" txantenna - config_get_bool softled "$device" softled 1 + config_get_bool softled "$device" softled config_get antenna "$device" antenna devname="$(cat /proc/sys/dev/$device/dev_name)" @@ -215,7 +215,11 @@ enable_atheros() { } case "$enc" in - WEP|wep) + wep*) + case "$enc" in + *shared*) iwpriv "$ifname" authmode 2;; + *) iwpriv "$ifname" authmode 1;; + esac for idx in 1 2 3 4; do config_get key "$vif" "key${idx}" iwconfig "$ifname" enc "[$idx]" "${key:-off}"