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
nexedi
linux
Commits
1bbb8796
Commit
1bbb8796
authored
Jul 19, 2003
by
Javier Achirica
Committed by
Jeff Garzik
Jul 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wireless airo] Update structs with the new fields in latest firmwares.
parent
64b133d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
drivers/net/wireless/airo.c
drivers/net/wireless/airo.c
+34
-3
No files found.
drivers/net/wireless/airo.c
View file @
1bbb8796
...
...
@@ -648,9 +648,38 @@ typedef struct {
u16
currentXmitRate
;
u16
apDevExtensions
;
u16
normalizedSignalStrength
;
u16
_reserved1
;
u16
shortPreamble
;
u8
apIP
[
4
];
u16
_reserved
[
7
];
u8
noisePercent
;
/* Noise percent in last second */
u8
noisedBm
;
/* Noise dBm in last second */
u8
noiseAvePercent
;
/* Noise percent in last minute */
u8
noiseAvedBm
;
/* Noise dBm in last minute */
u8
noiseMaxPercent
;
/* Highest noise percent in last minute */
u8
noiseMaxdBm
;
/* Highest noise dbm in last minute */
u16
load
;
u8
carrier
[
4
];
u16
assocStatus
;
#define STAT_NOPACKETS 0
#define STAT_NOCARRIERSET 10
#define STAT_GOTCARRIERSET 11
#define STAT_WRONGSSID 20
#define STAT_BADCHANNEL 25
#define STAT_BADBITRATES 30
#define STAT_BADPRIVACY 35
#define STAT_APFOUND 40
#define STAT_APREJECTED 50
#define STAT_AUTHENTICATING 60
#define STAT_DEAUTHENTICATED 61
#define STAT_AUTHTIMEOUT 62
#define STAT_ASSOCIATING 70
#define STAT_DEASSOCIATED 71
#define STAT_ASSOCTIMEOUT 72
#define STAT_NOTAIROAP 73
#define STAT_ASSOCIATED 80
#define STAT_LEAPING 90
#define STAT_LEAPFAILED 91
#define STAT_LEAPTIMEDOUT 92
#define STAT_LEAPCOMPLETE 93
}
StatusRid
;
typedef
struct
{
...
...
@@ -1193,8 +1222,10 @@ static int readStatusRid(struct airo_info*ai, StatusRid *statr) {
statr
->
len
=
le16_to_cpu
(
statr
->
len
);
for
(
s
=
&
statr
->
mode
;
s
<=
&
statr
->
SSIDlen
;
s
++
)
*
s
=
le16_to_cpu
(
*
s
);
for
(
s
=
&
statr
->
beaconPeriod
;
s
<=
&
statr
->
_reserved
[
9
]
;
s
++
)
for
(
s
=
&
statr
->
beaconPeriod
;
s
<=
&
statr
->
shortPreamble
;
s
++
)
*
s
=
le16_to_cpu
(
*
s
);
statr
->
load
=
le16_to_cpu
(
statr
->
load
);
statr
->
assocStatus
=
le16_to_cpu
(
statr
->
assocStatus
);
return
rc
;
}
...
...
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