X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d0b16203c647d4e7b2979084694a200c9f500ff5..7c8a20940f20bec8379726889960d8d7caaa1949:/package/hostap-driver/files/lib/wifi/hostap.sh?ds=sidebyside diff --git a/package/hostap-driver/files/lib/wifi/hostap.sh b/package/hostap-driver/files/lib/wifi/hostap.sh index 29556b824..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 <