config_get txpower "$device" txpower
config_get country "$device" country
config_get distance "$device" distance
- config_get txantenna "$device" txantenna
- config_get rxantenna "$device" rxantenna
+ config_get txantenna "$device" txantenna all
+ config_get rxantenna "$device" rxantenna all
config_get frag "$device" frag
config_get rts "$device" rts
find_mac80211_phy "$device" || return 0
fixed=1
}
- local antspec="${txantenna:+$txantenna }$rxantenna"
- iw phy "$phy" set antenna ${antspec:-all}
+ iw phy "$phy" set antenna $txantenna $rxantenna
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
[ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}"
[ $idx -eq $key ] && ikey="d:$ikey"
append keyspec "$ikey"
}
+ done
;;
*) append keyspec "d:0:$(prepare_key_wep "$key")" ;;
+ esac
}
local mcval=""
iw dev "$ifname" ibss join "$ssid" $freq \
${fixed:+fixed-freq} $bssid \
- ${mcval:+mcast-rate $mcval} \
${bintval:+beacon-interval $bintval} \
${basicrates:+basic-rates $basicrates} \
+ ${mcval:+mcast-rate $mcval} \
${keyspec:+keys $keyspec}
;;
sta)