BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
2c3d3032
Commit
2c3d3032
authored
Sep 21, 2017
by
David Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates after AP mode is working - now needs to be speed up
parent
45127792
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
20 deletions
+8
-20
spi.c
linux_kernel_modules/mt7697q/spi.c
+4
-4
mt7697ap.sh
linux_kernel_modules/mt7697wifi/scripts/mt7697ap.sh
+3
-3
mtwifi
linux_kernel_modules/mt7697wifi/scripts/mtwifi
+1
-13
No files found.
linux_kernel_modules/mt7697q/spi.c
View file @
2c3d3032
...
...
@@ -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
--
;
...
...
linux_kernel_modules/mt7697wifi/scripts/mt7697ap.sh
View file @
2c3d3032
...
...
@@ -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
\n
log-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
..."
...
...
linux_kernel_modules/mt7697wifi/scripts/mtwifi
View file @
2c3d3032
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment