BigW Consortium Gitlab

Commit 2c3d3032 by David Clark

Updates after AP mode is working - now needs to be speed up

parent 45127792
......@@ -72,8 +72,8 @@ static int __init mt7697spi_init(void)
pr_info(DRVNAME" %s(): '%s' initialize\n", __func__, DRVNAME);
while (!master && (bus_num >= 0)) {
pr_info(DRVNAME" %s(): get SPI master bus(%u)\n",
__func__, bus_num);
// pr_info(DRVNAME" %s(): get SPI master bus(%u)\n",
// __func__, bus_num);
master = spi_busnum_to_master(bus_num);
if (!master)
bus_num--;
......@@ -189,8 +189,8 @@ static void __exit mt7697spi_exit(void)
int bus_num = MT7697_SPI_BUS_NUM;
while (!master && (bus_num >= 0)) {
pr_info(DRVNAME" %s(): get SPI master bus(%u)\n",
__func__, bus_num);
// pr_info(DRVNAME" %s(): get SPI master bus(%u)\n",
// __func__, bus_num);
master = spi_busnum_to_master(bus_num);
if (!master)
bus_num--;
......
......@@ -9,9 +9,9 @@ export PATH=/legato/systems/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/
export ITF_LAN="wlan1" # WiFi? access point interface
export ITF_WAN="rmnet0" # 3G/4G interface as WLAN interface
export APN="internet.sierrawireless.com"
export WIFIAPIP="192.168.20.1"
export WIFIAPMASK="255.255.255.0"
#export SUBNET="192.168.0.0/24"
export WIFIAPSTART="192.168.20.10"
export WIFIAPSTOP="192.168.20.100"
......@@ -29,7 +29,7 @@ test -L /etc/dnsmasq.d/$DHCP_CFG_FILE || ln -s /tmp/$DHCP_CFG_FILE /etc/dnsmasq.
echo "Generating the configuration file for the DHCP server..."
echo -ne "log-dhcp\nlog-queries\n" \
"log-facility=/tmp/dnsmasq.log\n" \
"log-facility=/tmp/dnsmasq.log\n" \
"interface=$ITF_LAN\n" \
"dhcp-option=$ITF_LAN,3,$WIFIAPIP\n" \
"dhcp-option=$ITF_LAN,6,$WIFIAPIP\n" \
......@@ -46,7 +46,7 @@ case "$ITF_WAN" in
cm radio on
sleep 1
echo "Enabling the data connection on $ITF_WAN..."
cm data apn sp.telus.com
cm data apn $APN
cm data connect &
sleep 1
echo "Waiting for data connection on $ITF_WAN..."
......
......@@ -10,19 +10,7 @@ mt_wifi_start() {
ifconfig | grep wlan0 >/dev/null
if [ $? -eq 0 ]; then
ifconfig wlan0 down
fi
lsmod | grep 0_cp2130 >/dev/null
if [ $? -eq 1 ]; then
insmod /legato/systems/current/modules/0-cp2130.ko || exit 127
echo "Initialized CP2130";
fi
lsmod | grep 1_mt7697q >/dev/null
if [ $? -eq 1 ]; then
insmod /legato/systems/current/modules/1-mt7697q.ko || exit 127
echo "Initialized MT7697 queues";
fi
fi
lsmod | grep 2_mt7697wifi_core >/dev/null
if [ $? -eq 1 ]; then
......
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