[package] hostap-driver: Fix adhoc mode
[openwrt/svn-archive/archive.git] / package / hostap-driver / files / lib / wifi / hostap.sh
index 29556b8241c0af513cdddaace7843dd74e074380..3de5b04a004a33c3c477109faad9e7838af72018 100755 (executable)
@@ -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