X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/9c435c9f94da8c20fc6f6fe88f93de238899fb60..a3c9e2fe7a4ff8242cdcdeec5f76f0988359aed7:/package/hostap-driver/files/lib/wifi/hostap.sh diff --git a/package/hostap-driver/files/lib/wifi/hostap.sh b/package/hostap-driver/files/lib/wifi/hostap.sh index 0eb0ff75e..820a2e786 100755 --- a/package/hostap-driver/files/lib/wifi/hostap.sh +++ b/package/hostap-driver/files/lib/wifi/hostap.sh @@ -112,7 +112,7 @@ enable_prism2() { config_get ssid "$vif" ssid config_get mode "$vif" mode - [ "$mode" = "wds" ] || iwconfig "$phy" essid -- "$ssid" + [ "$mode" = "wds" ] || iwconfig "$phy" essid ${ssid:+-- }"${ssid:-any}" case "$mode" in sta) @@ -124,6 +124,7 @@ enable_prism2() { ;; ap) iwconfig "$phy" mode master;; wds) iwpriv "$phy" wds_add "$ssid";; + adhoc) iwconfig "$phy" mode ad-hoc;; *) iwconfig "$phy" mode "$mode";; esac @@ -245,7 +246,6 @@ detect_prism2() { config_foreach check_prism2_device wifi-device [ "$found" -gt 0 ] && continue cat <