Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5f746f2c
Commit
5f746f2c
authored
Feb 12, 2003
by
Jean Tourrilhes
Committed by
Linus Torvalds
Feb 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[irda][CORRECT] Properly initialise IrCOMM status line (DCE settings)
<Patch from Jan Kiszka>
parent
7f939798
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
net/irda/ircomm/ircomm_param.c
net/irda/ircomm/ircomm_param.c
+3
-1
net/irda/ircomm/ircomm_tty.c
net/irda/ircomm/ircomm_tty.c
+2
-1
No files found.
net/irda/ircomm/ircomm_param.c
View file @
5f746f2c
...
@@ -442,7 +442,9 @@ static int ircomm_param_dte(void *instance, irda_param_t *param, int get)
...
@@ -442,7 +442,9 @@ static int ircomm_param_dte(void *instance, irda_param_t *param, int get)
param
->
pv
.
i
=
self
->
settings
.
dte
;
param
->
pv
.
i
=
self
->
settings
.
dte
;
else
{
else
{
dte
=
(
__u8
)
param
->
pv
.
i
;
dte
=
(
__u8
)
param
->
pv
.
i
;
self
->
settings
.
dce
=
0
;
if
(
dte
&
IRCOMM_DELTA_DTR
)
if
(
dte
&
IRCOMM_DELTA_DTR
)
self
->
settings
.
dce
|=
(
IRCOMM_DELTA_DSR
|
self
->
settings
.
dce
|=
(
IRCOMM_DELTA_DSR
|
IRCOMM_DELTA_RI
|
IRCOMM_DELTA_RI
|
...
...
net/irda/ircomm/ircomm_tty.c
View file @
5f746f2c
...
@@ -490,7 +490,8 @@ static int ircomm_tty_open(struct tty_struct *tty, struct file *filp)
...
@@ -490,7 +490,8 @@ static int ircomm_tty_open(struct tty_struct *tty, struct file *filp)
if
(
line
<
0x10
)
{
if
(
line
<
0x10
)
{
self
->
service_type
=
IRCOMM_3_WIRE
|
IRCOMM_9_WIRE
;
self
->
service_type
=
IRCOMM_3_WIRE
|
IRCOMM_9_WIRE
;
self
->
settings
.
service_type
=
IRCOMM_9_WIRE
;
/* 9 wire as default */
self
->
settings
.
service_type
=
IRCOMM_9_WIRE
;
/* 9 wire as default */
self
->
settings
.
dce
=
IRCOMM_CTS
|
IRCOMM_CD
;
/* Default line settings */
/* Jan Kiszka -> add DSR/RI -> Conform to IrCOMM spec */
self
->
settings
.
dce
=
IRCOMM_CTS
|
IRCOMM_CD
|
IRCOMM_DSR
|
IRCOMM_RI
;
/* Default line settings */
IRDA_DEBUG
(
2
,
"%s(), IrCOMM device
\n
"
,
__FUNCTION__
);
IRDA_DEBUG
(
2
,
"%s(), IrCOMM device
\n
"
,
__FUNCTION__
);
}
else
{
}
else
{
IRDA_DEBUG
(
2
,
"%s(), IrLPT device
\n
"
,
__FUNCTION__
);
IRDA_DEBUG
(
2
,
"%s(), IrLPT device
\n
"
,
__FUNCTION__
);
...
...
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