5 local remote="$(wlc ifname "$iface" wdsmac)"
7 [ -z "$remote" ] && return
10 [ -z "$CONFIG_SECTION" ] && return
12 config_get type "$CONFIG_SECTION" TYPE
13 [ "$type" = "wifi-iface" ] || return
15 config_get network "$CONFIG_SECTION" network
16 [ -z "$network" ] && return
18 config_get addr "$CONFIG_SECTION" bssid
19 [ "$addr" = "$remote" ] && {
20 local cfg="$CONFIG_SECTION"
25 setup_interface "$iface" "$network"
27 config_get encryption "$cfg" encryption
28 config_get key "$cfg" key
29 config_get ssid "$cfg" ssid
31 [ "$encryption" == "psk" ] && \
32 nas4not lan "$iface" up auto aes "$encryption" "$key" "$ssid"
41 [ "${INTERFACE%%0.*}" = wds ] && setup_broadcom_wds "$INTERFACE"