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