projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] base-files: fix whitespaces
[openwrt.git]
/
package
/
base-files
/
files
/
sbin
/
wifi
diff --git
a/package/base-files/files/sbin/wifi
b/package/base-files/files/sbin/wifi
index f40cd7febb377effe80f2bd7f3cbd288b59220dc..897ee4ff14083a4a6b90a84a07dabae064cc3c88 100755
(executable)
--- a/
package/base-files/files/sbin/wifi
+++ b/
package/base-files/files/sbin/wifi
@@
-64,7
+64,7
@@
prepare_key_wep() {
[ "${#key}" -eq 10 -a $hex -eq 1 ] || \
[ "${#key}" -eq 26 -a $hex -eq 1 ] || {
[ "${key:0:2}" = "s:" ] && key="${key#s:}"
[ "${#key}" -eq 10 -a $hex -eq 1 ] || \
[ "${#key}" -eq 26 -a $hex -eq 1 ] || {
[ "${key:0:2}" = "s:" ] && key="${key#s:}"
- key="$(echo -n "$key" | hexdump -ve '1/1 "%02x" ""')"
+ key="$(echo -n "$key" | hexdump -ve '1/1 "%02x" ""')"
}
echo "$key"
}
}
echo "$key"
}
@@
-91,7
+91,7
@@
wifi_fixup_hwmode() {
;;
*)
hwmode=
;;
*)
hwmode=
- if [ "${channel:-0}" -gt 0 ]; then
+ if [ "${channel:-0}" -gt 0 ]; then
if [ "${channel:-0}" -gt 14 ]; then
hwmode=a
else
if [ "${channel:-0}" -gt 14 ]; then
hwmode=a
else
@@
-211,7
+211,7
@@
scan_wifi() {
case "$TYPE" in
wifi-iface)
config_get device "$CONFIG_SECTION" device
case "$TYPE" in
wifi-iface)
config_get device "$CONFIG_SECTION" device
- config_get vifs "$device" vifs
+ config_get vifs "$device" vifs
append vifs "$CONFIG_SECTION"
config_set "$device" vifs "$vifs"
;;
append vifs "$CONFIG_SECTION"
config_set "$device" vifs "$vifs"
;;