Developing lightweight computation at the DSG edge

Commit 1bb12712 authored by p4u's avatar p4u
Browse files

Wifi default mode for the second (and third) B/G device is now adhoc

parent 92413e84
...@@ -328,12 +328,19 @@ qmp_wifi_get_default() { ...@@ -328,12 +328,19 @@ qmp_wifi_get_default() {
echo "adhoc_ap" echo "adhoc_ap"
else else
#If only one B/G device and only two devices, using the non B/G one as adhoc #If only one B/G device of two devices, using the non B/G one as adhoc
if [ $bg_devices -eq 1 -a $devices -eq 2 ]; then if [ $bg_devices -eq 1 -a $devices -eq 2 ]; then
echo "adhoc" echo "adhoc"
else else
#If more than one device BG, using first for ADHOC+AP and the others for ADHOC
if [ $devices -gt 1 ]; then
[ $index == 0 ] && echo "adhoc_ap" || echo "adhoc"
else
#This should never happend
echo "adhoc_ap" echo "adhoc_ap"
fi;fi;fi fi;fi;fi;fi
# CHANNEL # CHANNEL
# Default channel depends on the card and on configured mode # Default channel depends on the card and on configured mode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment