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
f24e0975
Commit
f24e0975
authored
Nov 09, 2005
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge
rsync://bughost.org/repos/ieee80211-delta/
parents
d7eaee08
d7e02edb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
include/net/ieee80211.h
include/net/ieee80211.h
+1
-1
net/ieee80211/ieee80211_wx.c
net/ieee80211/ieee80211_wx.c
+9
-5
No files found.
include/net/ieee80211.h
View file @
f24e0975
...
...
@@ -29,7 +29,7 @@
#include <linux/kernel.h>
/* ARRAY_SIZE */
#include <linux/wireless.h>
#define IEEE80211_VERSION "git-1.1.
6
"
#define IEEE80211_VERSION "git-1.1.
7
"
#define IEEE80211_DATA_LEN 2304
/* Maximum size for the MA-UNITDATA primitive, 802.11 standard section
...
...
net/ieee80211/ieee80211_wx.c
View file @
f24e0975
...
...
@@ -161,9 +161,11 @@ static inline char *ipw2100_translate_scan(struct ieee80211_device *ieee,
(
ieee
->
perfect_rssi
-
ieee
->
worst_rssi
)
-
(
ieee
->
perfect_rssi
-
network
->
stats
.
rssi
)
*
(
15
*
(
ieee
->
perfect_rssi
-
ieee
->
worst_rssi
)
+
62
*
(
ieee
->
perfect_rssi
-
network
->
stats
.
rssi
)))
/
((
ieee
->
perfect_rssi
-
ieee
->
worst_rssi
)
*
(
ieee
->
perfect_rssi
-
ieee
->
worst_rssi
));
62
*
(
ieee
->
perfect_rssi
-
network
->
stats
.
rssi
)))
/
((
ieee
->
perfect_rssi
-
ieee
->
worst_rssi
)
*
(
ieee
->
perfect_rssi
-
ieee
->
worst_rssi
));
if
(
iwe
.
u
.
qual
.
qual
>
100
)
iwe
.
u
.
qual
.
qual
=
100
;
else
if
(
iwe
.
u
.
qual
.
qual
<
1
)
...
...
@@ -520,7 +522,8 @@ int ieee80211_wx_set_encodeext(struct ieee80211_device *ieee,
crypt
=
&
ieee
->
crypt
[
idx
];
group_key
=
1
;
}
else
{
if
(
idx
!=
0
)
/* some Cisco APs use idx>0 for unicast in dynamic WEP */
if
(
idx
!=
0
&&
ext
->
alg
!=
IW_ENCODE_ALG_WEP
)
return
-
EINVAL
;
if
(
ieee
->
iw_mode
==
IW_MODE_INFRA
)
crypt
=
&
ieee
->
crypt
[
idx
];
...
...
@@ -688,7 +691,8 @@ int ieee80211_wx_get_encodeext(struct ieee80211_device *ieee,
}
else
idx
=
ieee
->
tx_keyidx
;
if
(
!
ext
->
ext_flags
&
IW_ENCODE_EXT_GROUP_KEY
)
if
(
!
ext
->
ext_flags
&
IW_ENCODE_EXT_GROUP_KEY
&&
ext
->
alg
!=
IW_ENCODE_ALG_WEP
)
if
(
idx
!=
0
||
ieee
->
iw_mode
!=
IW_MODE_INFRA
)
return
-
EINVAL
;
...
...
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