case "$hwmode" in
*b) hwmode=0;;
+ *bg) hwmode=1;;
*g) hwmode=2;;
*gst) hwmode=4;;
+ *lrs) hwmode=5;;
*) hwmode=1;;
esac
append vif_do_up "wpa_auth $auth" "$N"
append vif_do_up "wsec_restrict $wsec_r" "$N"
append vif_do_up "eap_restrict $eap_r" "$N"
-
+
config_get ssid "$vif" ssid
append vif_post_up "vlan_mode 0" "$N"
append vif_post_up "ssid $ssid" "$N"
append vif_pre_up "allow_mode 1" "$N"
}
} || append vif_pre_up "allow_mode 0" "$N"
-
+
append vif_post_up "enabled 1" "$N"
-
+
config_get ifname "$vif" ifname
#append if_up "ifconfig $ifname up" ";$N"
[ -z "$bridge" ] || {
append vif_post_up "supplicant 1" "$N"
append vif_post_up "passphrase $key" "$N"
-
+
use_nas=0
}
}