1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-20 18:04:25 +03:00

mac80211: remove trailing whitespaces in mac80211.sh

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18582 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2009-11-28 18:00:53 +00:00
parent eaa1ec9472
commit 0da4b7c208

View File

@ -134,7 +134,7 @@ enable_mac80211() {
esac esac
# All interfaces must have unique mac addresses # All interfaces must have unique mac addresses
# which can either be explicitly set in the device # which can either be explicitly set in the device
# section, or automatically generated # section, or automatically generated
config_get macaddr "$device" macaddr config_get macaddr "$device" macaddr
local mac_1="${macaddr%%:*}" local mac_1="${macaddr%%:*}"
@ -142,7 +142,7 @@ enable_mac80211() {
config_get vif_mac "$vif" macaddr config_get vif_mac "$vif" macaddr
[ -n "$vif_mac" ] || { [ -n "$vif_mac" ] || {
if [ "$i" -gt 0 ]; then if [ "$i" -gt 0 ]; then
offset="$(( 2 + $i * 4 ))" offset="$(( 2 + $i * 4 ))"
else else
offset="0" offset="0"
@ -168,7 +168,7 @@ enable_mac80211() {
# none -> NO encryption # none -> NO encryption
# #
# wep + keymgmt = '' -> we use iw to connect to the # wep + keymgmt = '' -> we use iw to connect to the
# network. # network.
# #
# wep + keymgmt = 'NONE' -> wpa_supplicant will be # wep + keymgmt = 'NONE' -> wpa_supplicant will be
# configured to handle the wep connection # configured to handle the wep connection
@ -182,7 +182,7 @@ enable_mac80211() {
zidx = idx - 1 zidx = idx - 1
config_get key "$vif" "key${idx}" config_get key "$vif" "key${idx}"
if [ -n "$key" ]; then if [ -n "$key" ]; then
append keystring "${zidx}:${key} " append keystring "${zidx}:${key} "
fi fi
done done
fi fi
@ -238,7 +238,7 @@ enable_mac80211() {
;; ;;
sta|mesh) sta|mesh)
config_get bssid "$vif" bssid config_get bssid "$vif" bssid
case "$enc" in case "$enc" in
wep) wep)
if [ -e "$keymgmt" ]; then if [ -e "$keymgmt" ]; then
[ -n "$keystring" ] && [ -n "$keystring" ] &&
@ -293,7 +293,7 @@ detect_mac80211() {
config_foreach check_device wifi-device config_foreach check_device wifi-device
[ "$found" -gt 0 ] && continue [ "$found" -gt 0 ] && continue
while :; do while :; do
config_get type "wifi$devidx" type config_get type "wifi$devidx" type
[ -n "$type" ] || break [ -n "$type" ] || break
devidx=$(($devidx + 1)) devidx=$(($devidx + 1))