Developing lightweight computation at the DSG edge

Commit 7a606be3 authored by p4u's avatar p4u
Browse files

Improved automatic channel selection. Changed countrycode to ES, now it works

parent eb6b8d90
......@@ -39,7 +39,7 @@ define Package/qmp-big-node
+openvpn \
+openssl-util \
+tcptraceroute6 \
+iperf +mtr +netcat +netperf \
+iperf +mtr +netcat \
+tcpdump-mini \
+nmap +lsof \
+wget +horst \
......
......@@ -40,7 +40,7 @@ define Package/qmp-small-node
+ahcpd \
+radvd \
+hostapd \
+wireless-tools +iw \
+wireless-tools +iw +netperf \
+wide-dhcpv6-client +wide-dhcpv6-control +wide-dhcpv6-server \
+bmx6-qmp +bmx6-qmp-uci-config +bmx6-qmp-json +bmx6-qmp-sms +bmx6-luci +qmp-tinyproxy\
+olsrd +olsrd-mod-txtinfo +olsrd-mod-httpinfo +olsrd-mod-watchdog \
......
......@@ -58,12 +58,13 @@ config 'qmp' 'wireless'
config 'wireless'
option 'mode' 'adhoc'
option 'name' 'qMp'
option 'name' 'qMp.cat'
config 'wireless'
option 'mode' 'ap'
option 'name' 'qMp-AP'
option 'txpower' '20'
config 'wireless'
option 'mode' 'adhoc'
option 'name' 'qMp'
option 'name' 'qMp.cat'
......@@ -29,7 +29,7 @@ configure() {
echo "[Configuring wireless]"
. $QMP_DIR/qmp_wireless.sh
qmp_configure_wifi_driver
# qmp_configure_wifi_driver
qmp_configure_wifi_initial
qmp_configure_wifi
wifi
......@@ -38,7 +38,7 @@ configure() {
. $QMP_DIR/qmp_functions.sh
qmp_configure
/etc/init.d/network restart
sleep 5
sleep 3
QMP_HOSTNAME=$(uci get system.@system[0].hostname)
echo "Update hostname for: '$QMP_HOSTNAME'"
echo "$QMP_HOSTNAME" > /proc/sys/kernel/hostname
......
......@@ -39,7 +39,7 @@ qmp_enable_netserver() {
qmp_disable_netserver() {
qmp_uci_set networks.netserver 0
killall -9 netserver
killall -9 netserver || true
}
......@@ -292,6 +292,15 @@ qmp_wifi_get_default() {
}
qmp_configure_wifi_initial() {
#First we are going to configure default parameters if they are not present
[ -z "$(qmp_uci_get wireless)" ] && qmp_uci_set wireless qmp
[ -z "$(qmp_uci_get wireless.driver)" ] && qmp_uci_set wireless.driver $(qmp_wifi_get_default driver)
[ -z "$(qmp_uci_get wireless.country)" ] && qmp_uci_set wireless.country $(qmp_wifi_get_default country)
[ -z "$(qmp_uci_get wireless.bssid)" ] && qmp_uci_set wireless.bssid $(qmp_wifi_get_default bssid)
#Changing to configured countrycode
iw reg set $(qmp_uci_get wireless.country)
macs="$(qmp_get_wifi_mac_devices)"
......
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