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
b572f32d
Commit
b572f32d
authored
Jan 11, 2018
by
David Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug with re-opening wireless interface
parent
d01c77fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
uart.c
linux_kernel_modules/mt7697serial/uart.c
+2
-2
cfg80211.c
linux_kernel_modules/mt7697wifi/cfg80211.c
+1
-0
main.c
linux_kernel_modules/mt7697wifi/main.c
+11
-0
No files found.
linux_kernel_modules/mt7697serial/uart.c
View file @
b572f32d
...
@@ -213,7 +213,7 @@ void* mt7697_uart_open(rx_hndlr rx_fcn, void* rx_hndl)
...
@@ -213,7 +213,7 @@ void* mt7697_uart_open(rx_hndlr rx_fcn, void* rx_hndl)
goto
cleanup
;
goto
cleanup
;
}
}
dev_dbg
(
uart_info
->
dev
,
"%s(): fd_hndl(%p)
\n
"
,
dev_dbg
(
uart_info
->
dev
,
"%s(): fd_hndl(
0x
%p)
\n
"
,
__func__
,
uart_info
->
fd_hndl
);
__func__
,
uart_info
->
fd_hndl
);
uart_info
->
rx_fcn
=
rx_fcn
;
uart_info
->
rx_fcn
=
rx_fcn
;
...
@@ -236,7 +236,7 @@ int mt7697_uart_close(void *arg)
...
@@ -236,7 +236,7 @@ int mt7697_uart_close(void *arg)
struct
mt7697_uart_info
*
uart_info
=
arg
;
struct
mt7697_uart_info
*
uart_info
=
arg
;
int
ret
=
0
;
int
ret
=
0
;
dev_dbg
(
uart_info
->
dev
,
"%s(): fd_hndl(%p)
\n
"
,
dev_dbg
(
uart_info
->
dev
,
"%s(): fd_hndl(
0x
%p)
\n
"
,
__func__
,
uart_info
->
fd_hndl
);
__func__
,
uart_info
->
fd_hndl
);
if
(
uart_info
->
fd_hndl
==
MT7697_UART_INVALID_FD
||
if
(
uart_info
->
fd_hndl
==
MT7697_UART_INVALID_FD
||
...
...
linux_kernel_modules/mt7697wifi/cfg80211.c
View file @
b572f32d
...
@@ -1145,6 +1145,7 @@ int mt7697_cfg80211_stop(struct mt7697_vif *vif)
...
@@ -1145,6 +1145,7 @@ int mt7697_cfg80211_stop(struct mt7697_vif *vif)
__func__
,
ret
);
__func__
,
ret
);
}
}
vif
->
cfg
->
txq_hdl
=
NULL
;
vif
->
cfg
->
rxq_hdl
=
NULL
;
vif
->
cfg
->
rxq_hdl
=
NULL
;
cleanup:
cleanup:
...
...
linux_kernel_modules/mt7697wifi/main.c
View file @
b572f32d
...
@@ -55,6 +55,17 @@ static int mt7697_open(struct net_device *ndev)
...
@@ -55,6 +55,17 @@ static int mt7697_open(struct net_device *ndev)
dev_dbg
(
cfg
->
dev
,
"%s(): open net device
\n
"
,
__func__
);
dev_dbg
(
cfg
->
dev
,
"%s(): open net device
\n
"
,
__func__
);
if
(
!
cfg
->
rxq_hdl
&&
!
cfg
->
txq_hdl
)
{
dev_dbg
(
cfg
->
dev
,
"%s(): open mt7697 uart
\n
"
,
__func__
);
cfg
->
txq_hdl
=
cfg
->
hif_ops
->
open
(
mt7697_proc_80211cmd
,
cfg
);
if
(
!
cfg
->
txq_hdl
)
{
dev_err
(
cfg
->
dev
,
"%s(): open() failed
\n
"
,
__func__
);
goto
cleanup
;
}
cfg
->
rxq_hdl
=
cfg
->
txq_hdl
;
}
if
((
cfg
->
wifi_cfg
.
opmode
==
MT7697_WIFI_MODE_STA_ONLY
)
&&
if
((
cfg
->
wifi_cfg
.
opmode
==
MT7697_WIFI_MODE_STA_ONLY
)
&&
(
cfg
->
radio_state
==
MT7697_RADIO_STATE_OFF
))
{
(
cfg
->
radio_state
==
MT7697_RADIO_STATE_OFF
))
{
ret
=
mt7697_wr_set_radio_state_req
(
cfg
,
MT7697_RADIO_STATE_ON
);
ret
=
mt7697_wr_set_radio_state_req
(
cfg
,
MT7697_RADIO_STATE_ON
);
...
...
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