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
13d1ef29
Commit
13d1ef29
authored
Oct 04, 2005
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge
rsync://bughost.org/repos/ieee80211-delta/
parents
e2608361
ff0037b2
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
166 additions
and
184 deletions
+166
-184
include/net/ieee80211.h
include/net/ieee80211.h
+29
-1
include/net/ieee80211_crypt.h
include/net/ieee80211_crypt.h
+3
-3
net/ieee80211/ieee80211_rx.c
net/ieee80211/ieee80211_rx.c
+134
-180
No files found.
include/net/ieee80211.h
View file @
13d1ef29
...
...
@@ -613,7 +613,7 @@ struct ieee80211_disassoc {
}
__attribute__
((
packed
));
/* Alias deauth for disassoc */
#define ieee8
20
11_deauth ieee80211_disassoc
#define ieee8
02
11_deauth ieee80211_disassoc
struct
ieee80211_probe_request
{
struct
ieee80211_hdr_3addr
header
;
...
...
@@ -1045,6 +1045,34 @@ static inline u8 *ieee80211_get_payload(struct ieee80211_hdr *hdr)
}
static
inline
int
ieee80211_is_ofdm_rate
(
u8
rate
)
{
switch
(
rate
&
~
IEEE80211_BASIC_RATE_MASK
)
{
case
IEEE80211_OFDM_RATE_6MB
:
case
IEEE80211_OFDM_RATE_9MB
:
case
IEEE80211_OFDM_RATE_12MB
:
case
IEEE80211_OFDM_RATE_18MB
:
case
IEEE80211_OFDM_RATE_24MB
:
case
IEEE80211_OFDM_RATE_36MB
:
case
IEEE80211_OFDM_RATE_48MB
:
case
IEEE80211_OFDM_RATE_54MB
:
return
1
;
}
return
0
;
}
static
inline
int
ieee80211_is_cck_rate
(
u8
rate
)
{
switch
(
rate
&
~
IEEE80211_BASIC_RATE_MASK
)
{
case
IEEE80211_CCK_RATE_1MB
:
case
IEEE80211_CCK_RATE_2MB
:
case
IEEE80211_CCK_RATE_5MB
:
case
IEEE80211_CCK_RATE_11MB
:
return
1
;
}
return
0
;
}
/* ieee80211.c */
extern
void
free_ieee80211
(
struct
net_device
*
dev
);
extern
struct
net_device
*
alloc_ieee80211
(
int
sizeof_priv
);
...
...
include/net/ieee80211_crypt.h
View file @
13d1ef29
...
...
@@ -26,7 +26,7 @@
#include <linux/skbuff.h>
enum
{
IEEE80211_CRYPTO_TKIP_COUNTERMEASURES
=
(
1
<<
0
),
IEEE80211_CRYPTO_TKIP_COUNTERMEASURES
=
(
1
<<
0
),
};
struct
ieee80211_crypto_ops
{
...
...
@@ -65,8 +65,8 @@ struct ieee80211_crypto_ops {
char
*
(
*
print_stats
)
(
char
*
p
,
void
*
priv
);
/* Crypto specific flag get/set for configuration settings */
unsigned
long
(
*
get_flags
)(
void
*
priv
);
unsigned
long
(
*
set_flags
)(
unsigned
long
flags
,
void
*
priv
);
unsigned
long
(
*
get_flags
)
(
void
*
priv
);
unsigned
long
(
*
set_flags
)
(
unsigned
long
flags
,
void
*
priv
);
/* maximum number of bytes added by encryption; encrypt buf is
* allocated with extra_prefix_len bytes, copy of in_buf, and
...
...
net/ieee80211/ieee80211_rx.c
View file @
13d1ef29
This diff is collapsed.
Click to expand it.
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