1 authsae_start_interface() {
5 local authsae_conf_file="/var/run/authsae-$ifname.cfg"
8 json_get_vars mcast_rate mesh_id
9 set_default mcast_rate "12000"
12 HT20|HT40+|HT40-) mesh_htmode="$htmode";;
13 *) mesh_htmode="none";;
21 if [ "$mcast_rate" -gt 1000 ]; then
22 # authsae only allows integers as rates and not things like 5.5
23 mcval=$(($mcast_rate / 1000))
25 # compat: to still support mbit/s rates
29 cat > "$authsae_conf_file" <<EOF
36 group = [19, 26, 21, 25, 20];
44 interface = "$ifname";
50 htmode = "$mesh_htmode";
56 /usr/bin/meshd-nl80211 -i "$ifname" -s "$mesh_id" -c "$authsae_conf_file" </dev/null >/dev/null 2>/dev/null &
60 echo $authsae_pid > /var/run/authsae-$ifname.pid
61 wireless_add_process "$authsae_pid" "/usr/bin/meshd-nl80211" 1
63 [ "$ret" != 0 ] && wireless_setup_vif_failed AUTHSAE_FAILED