Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
c2930876
Commit
c2930876
authored
Oct 23, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: white rabbit: at init time, parent wr mode is off
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
9191fe87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
hooks.c
proto-ext-whiterabbit/hooks.c
+2
-1
wr-constants.h
proto-ext-whiterabbit/wr-constants.h
+1
-1
No files found.
proto-ext-whiterabbit/hooks.c
View file @
c2930876
...
@@ -12,7 +12,8 @@ static int wr_init(struct pp_instance *ppi, unsigned char *pkt, int plen)
...
@@ -12,7 +12,8 @@ static int wr_init(struct pp_instance *ppi, unsigned char *pkt, int plen)
wp
->
wrStateRetry
=
WR_DEFAULT_STATE_REPEAT
;
wp
->
wrStateRetry
=
WR_DEFAULT_STATE_REPEAT
;
wp
->
calPeriod
=
WR_DEFAULT_CAL_PERIOD
;
wp
->
calPeriod
=
WR_DEFAULT_CAL_PERIOD
;
wp
->
wrModeOn
=
0
;
wp
->
wrModeOn
=
0
;
wp
->
parentWrConfig
=
0
;
wp
->
parentWrConfig
=
NON_WR
;
wp
->
parentWrModeOn
=
0
;
wp
->
calibrated
=
!
WR_DEFAULT_PHY_CALIBRATION_REQUIRED
;
wp
->
calibrated
=
!
WR_DEFAULT_PHY_CALIBRATION_REQUIRED
;
return
0
;
return
0
;
}
}
...
...
proto-ext-whiterabbit/wr-constants.h
View file @
c2930876
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#define WR_NODE 0x80
#define WR_NODE 0x80
#define WR_IS_CALIBRATED 0x04
#define WR_IS_CALIBRATED 0x04
#define WR_IS_WR_MODE 0x08
#define WR_IS_WR_MODE 0x08
#define WR_NODE_MODE 0x03
#define WR_NODE_MODE 0x03
/* a mask, see NON_WR etc below */
# define WR_TLV_TYPE 0x2004
# define WR_TLV_TYPE 0x2004
...
...
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