projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
madwifi: add support for the ahdemo (ad-hoc demo) mode in /etc/config/wireless. using...
[openwrt.git]
/
package
/
madwifi
/
files
/
lib
/
wifi
/
madwifi.sh
diff --git
a/package/madwifi/files/lib/wifi/madwifi.sh
b/package/madwifi/files/lib/wifi/madwifi.sh
index
e24730f
..
51dedfa
100755
(executable)
--- a/
package/madwifi/files/lib/wifi/madwifi.sh
+++ b/
package/madwifi/files/lib/wifi/madwifi.sh
@@
-14,7
+14,7
@@
scan_atheros() {
config_get mode "$vif" mode
case "$mode" in
config_get mode "$vif" mode
case "$mode" in
- adhoc|sta|ap)
+ adhoc|
ahdemo|
sta|ap)
append $mode "$vif"
;;
wds)
append $mode "$vif"
;;
wds)
@@
-42,7
+42,7
@@
scan_atheros() {
*) echo "$device: Invalid mode combination in config"; return 1;;
esac
*) echo "$device: Invalid mode combination in config"; return 1;;
esac
- config_set "$device" vifs "${ap:+$ap }${adhoc:+$adhoc }${sta:+$sta }${wds:+$wds }"
+ config_set "$device" vifs "${ap:+$ap }${adhoc:+$adhoc }${
ahdemo:+$ahdemo }${
sta:+$sta }${wds:+$wds }"
}
}
@@
-142,7
+142,7
@@
enable_atheros() {
config_get addr "$vif" bssid
iwpriv "$ifname" wds_add "$addr"
;;
config_get addr "$vif" bssid
iwpriv "$ifname" wds_add "$addr"
;;
- adhoc)
+ adhoc
|ahdemo
)
config_get addr "$vif" bssid
[ -z "$addr" ] || {
iwconfig "$ifname" ap "$addr"
config_get addr "$vif" bssid
[ -z "$addr" ] || {
iwconfig "$ifname" ap "$addr"
This page took
0.021492 seconds
and
4
git commands to generate.