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
f5731d03
Commit
f5731d03
authored
Nov 01, 2017
by
David Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates for forcing module params to lower case
parent
50901b82
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
mtwifi
linux_kernel_modules/mt7697wifi/scripts/mtwifi
+4
-7
No files found.
linux_kernel_modules/mt7697wifi/scripts/mtwifi
View file @
f5731d03
...
...
@@ -7,10 +7,8 @@
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mnt/flash/wifi
mt_wifi_start
()
{
shopt
-s
nocasematch
if
[
$1
=
"uart"
]
;
then
echo
"Setup MT7697 serial"
;
if
[
`
echo
$1
|
tr
-s
'[:upper:]'
'[:lower:]` = `echo "uart" | tr -s '
[
:upper:]
' '
[
:lower:]
`
]
;
then
echo
"Setup MT7697 UART"
;
stty
-F
/dev/ttyHS0 raw
||
exit
127
stty
-F
/dev/ttyHS0 921600
||
exit
127
stty
-F
/dev/ttyHS0 crtscts
||
exit
127
...
...
@@ -19,7 +17,8 @@ mt_wifi_start() {
lsmod |
grep
2_mt7697wifi_core
>
/dev/null
if
[
$?
-eq
1
]
;
then
insmod /legato/systems/current/modules/2-mt7697wifi_core.ko
hw_itf
=
$1
itf_idx_start
=
$2
||
exit
127
hw_itf
=
`
echo
$1
|
tr
'[A-Z]'
'[a-z]'
`
insmod /legato/systems/current/modules/2-mt7697wifi_core.ko
hw_itf
=
$hw_itf
itf_idx_start
=
$2
||
exit
127
echo
"Initialized MT7697 WiFi core"
;
sleep
2
fi
...
...
@@ -40,8 +39,6 @@ mt_wifi_start() {
}
mt_wifi_stop
()
{
kill
-9
$(
pidof wpa_supplicant
)
echo
"Stop MT7697 WiFi core wlan
$1
"
;
ifconfig |
grep
wlan
$1
>
/dev/null
if
[
$?
-eq
0
]
;
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