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
0f56ba5b
Commit
0f56ba5b
authored
Feb 21, 2018
by
David Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated log msgs for MT7697 UART and WiFi drivers
parent
01f59040
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
uart.c
linux_kernel_modules/mt7697serial/uart.c
+2
-2
wmi.c
linux_kernel_modules/mt7697wifi/wmi.c
+12
-6
No files found.
linux_kernel_modules/mt7697serial/uart.c
View file @
0f56ba5b
...
...
@@ -60,6 +60,8 @@ static int mt7697_uart_rx_poll(struct mt7697_uart_info* uart_info)
while
(
1
)
{
mask
=
uart_info
->
fd_hndl
->
f_op
->
poll
(
uart_info
->
fd_hndl
,
&
table
.
pt
);
dev_dbg
(
uart_info
->
dev
,
"%s(): Rx data mask(0x%08x)
\n
"
,
__func__
,
mask
);
if
(
mask
&
POLLERR
)
{
dev_warn
(
uart_info
->
dev
,
"%s(): poll error
\n
"
,
__func__
);
...
...
@@ -71,8 +73,6 @@ static int mt7697_uart_rx_poll(struct mt7697_uart_info* uart_info)
ret
=
-
EPIPE
;
goto
cleanup
;
}
else
if
(
mask
&
(
POLLRDNORM
|
POLLRDBAND
|
POLLIN
))
{
dev_dbg
(
uart_info
->
dev
,
"%s(): Rx data mask(0x%08x)
\n
"
,
__func__
,
mask
);
break
;
}
...
...
linux_kernel_modules/mt7697wifi/wmi.c
View file @
0f56ba5b
...
...
@@ -49,9 +49,10 @@ static int mt7697_proc_mac_addr(const struct mt7697_rsp_hdr* rsp,
ret
=
(
ret
<
0
)
?
ret
:-
EIO
;
goto
cleanup
;
}
#ifdef DEBUG
print_hex_dump
(
KERN_DEBUG
,
DRVNAME
" MAC address "
,
DUMP_PREFIX_OFFSET
,
16
,
1
,
addr
,
ETH_ALEN
,
0
);
#endif
memcpy
(
cfg
->
mac_addr
.
addr
,
addr
,
ETH_ALEN
);
rtnl_lock
();
...
...
@@ -184,9 +185,11 @@ static int mt7697_proc_get_cfg(const struct mt7697_rsp_hdr* rsp,
}
if
(
wifi_cfg
->
sta
.
bssid_present
)
{
#ifdef DEBUG
print_hex_dump
(
KERN_DEBUG
,
DRVNAME
"STA BSSID "
,
DUMP_PREFIX_OFFSET
,
16
,
1
,
wifi_cfg
->
sta
.
bssid
,
ETH_ALEN
,
0
);
#endif
}
dev_dbg
(
cfg
->
dev
,
"%s(): STA passphrase len(%u)
\n
"
,
...
...
@@ -418,9 +421,10 @@ static int mt7697_proc_scan_ind(const struct mt7697_rsp_hdr* rsp,
ret
=
-
ENOMEM
;
goto
cleanup
;
}
#ifdef DEBUG
print_hex_dump
(
KERN_DEBUG
,
DRVNAME
" BSS BSSID "
,
DUMP_PREFIX_OFFSET
,
16
,
1
,
bss
->
bssid
,
ETH_ALEN
,
0
);
#endif
dev_dbg
(
cfg
->
dev
,
"%s(): BSS signal(%d) scan width(%u) cap(0x%08x)
\n
"
,
__func__
,
bss
->
signal
,
bss
->
scan_width
,
...
...
@@ -569,10 +573,10 @@ static int mt7697_proc_connect_ind(const struct mt7697_rsp_hdr* rsp,
ret
=
(
ret
<
0
)
?
ret
:-
EIO
;
goto
cleanup
;
}
#ifdef DEBUG
print_hex_dump
(
KERN_DEBUG
,
DRVNAME
" BSSID "
,
DUMP_PREFIX_OFFSET
,
16
,
1
,
bssid
,
ETH_ALEN
,
0
);
#endif
if
(
list_empty
(
&
cfg
->
vif_list
))
{
dev_dbg
(
cfg
->
dev
,
"%s(): no interfaces
\n
"
,
__func__
);
goto
cleanup
;
...
...
@@ -662,10 +666,10 @@ static int mt7697_proc_disconnect_ind(struct mt7697_cfg80211_info *cfg)
ret
=
(
ret
<
0
)
?
ret
:-
EIO
;
goto
cleanup
;
}
#ifdef DEBUG
print_hex_dump
(
KERN_DEBUG
,
DRVNAME
" BSSID "
,
DUMP_PREFIX_OFFSET
,
16
,
1
,
bssid
,
ETH_ALEN
,
0
);
#endif
if
(
list_empty
(
&
cfg
->
vif_list
))
{
dev_dbg
(
cfg
->
dev
,
"%s(): no interfaces
\n
"
,
__func__
);
goto
cleanup
;
...
...
@@ -1385,9 +1389,11 @@ int mt7697_wr_scan_req(const struct mt7697_cfg80211_info *cfg, u32 if_idx,
dev_dbg
(
cfg
->
dev
,
"%s(): ssid len(%d)
\n
"
,
__func__
,
req
->
ssids
[
0
].
ssid_len
);
scan_req
.
ssid_len
=
req
->
ssids
[
0
].
ssid_len
;
#ifdef DEBUG
print_hex_dump
(
KERN_DEBUG
,
DRVNAME
" SSID "
,
DUMP_PREFIX_OFFSET
,
16
,
1
,
req
->
ssids
[
0
].
ssid
,
req
->
ssids
[
0
].
ssid_len
,
0
);
#endif
memcpy
(
scan_req
.
ssid
,
req
->
ssids
[
0
].
ssid
,
req
->
ssids
[
0
].
ssid_len
);
}
...
...
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