projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mac80211: reduce tx queue length of wireless interfaces - improves latency under...
[openwrt.git]
/
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
8ad378b
..
820a2e7
100755
(executable)
--- 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
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)
case "$mode" in
sta)
@@
-124,6
+124,7
@@
enable_prism2() {
;;
ap) iwconfig "$phy" mode master;;
wds) iwpriv "$phy" wds_add "$ssid";;
;;
ap) iwconfig "$phy" mode master;;
wds) iwpriv "$phy" wds_add "$ssid";;
+ adhoc) iwconfig "$phy" mode ad-hoc;;
*) iwconfig "$phy" mode "$mode";;
esac
*) iwconfig "$phy" mode "$mode";;
esac
@@
-220,7
+221,7
@@
enable_prism2() {
}
}
-check_device() {
+check_
prism2_
device() {
[ ${1%[0-9]} = "wlan" ] && config_set "$1" phy "$1"
config_get phy "$1" phy
[ -z "$phy" ] && {
[ ${1%[0-9]} = "wlan" ] && config_set "$1" phy "$1"
config_get phy "$1" phy
[ -z "$phy" ] && {
@@
-242,10
+243,9
@@
detect_prism2() {
[ -d wlan* ] || return
for dev in $(ls -d wlan* 2>&-); do
found=0
[ -d wlan* ] || return
for dev in $(ls -d wlan* 2>&-); do
found=0
- config_foreach check_device wifi-device
+ config_foreach check_
prism2_
device wifi-device
[ "$found" -gt 0 ] && continue
cat <<EOF
[ "$found" -gt 0 ] && continue
cat <<EOF
-
config wifi-device radio$devidx
option type prism2
option channel 11
config wifi-device radio$devidx
option type prism2
option channel 11
@@
-260,6
+260,7
@@
config wifi-iface
option mode ap
option ssid OpenWrt
option encryption none
option mode ap
option ssid OpenWrt
option encryption none
+
EOF
devidx=$(($devidx + 1))
done
EOF
devidx=$(($devidx + 1))
done
This page took
0.025264 seconds
and
4
git commands to generate.