X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/114cdb3c01a3c53c14881e449acda60c1d6a5c29..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 4d390dd1d..9e0e70b38 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -217,9 +217,9 @@ enable_atheros() { case "$enc" in wep*) case "$enc" in - *open*) iwpriv "$ifname" authmode 1;; - *) iwpriv "$ifname" authmode 2;; - ;; + *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}"