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
3df2b784
Commit
3df2b784
authored
Jul 07, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o wl3501: fix some mib variables sizes
Following what is in the 802.11 specs and doing experimentations.
parent
167ab603
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/wl3501_cs.c
+6
-8
No files found.
drivers/net/wireless/wl3501_cs.c
View file @
3df2b784
...
...
@@ -495,12 +495,10 @@ static int wl3501_mgmt_scan(struct wl3501_card *this, u16 chan_time)
dprintk
(
3
,
"entry"
);
signal
.
next_blk
=
0
;
signal
.
sig_id
=
WL3501_SIG_SCAN_REQ
;
signal
.
ssid
[
0
]
=
0
;
signal
.
ssid
[
1
]
=
0
;
signal
.
ssid
[
0
]
=
signal
.
ssid
[
1
]
=
0
;
signal
.
scan_type
=
WL3501_SCAN_TYPE_ACTIVE
;
signal
.
probe_delay
=
0x10
;
signal
.
min_chan_time
=
chan_time
;
signal
.
max_chan_time
=
chan_time
;
signal
.
min_chan_time
=
signal
.
max_chan_time
=
chan_time
;
if
(
this
->
net_type
==
IW_MODE_INFRA
)
signal
.
bss_type
=
WL3501_NET_TYPE_INFRA
;
...
...
@@ -1434,7 +1432,7 @@ struct iw_statistics *wl3501_get_wireless_stats(struct net_device *dev)
{
struct
wl3501_card
*
this
=
(
struct
wl3501_card
*
)
dev
->
priv
;
struct
iw_statistics
*
wstats
=
&
this
->
wstats
;
u
16
value
;
u
32
value
;
/* size checked: it is u32 */
memset
(
wstats
,
0
,
sizeof
(
*
wstats
));
wstats
->
status
=
netif_running
(
dev
);
...
...
@@ -1776,7 +1774,7 @@ static int wl3501_get_rts_threshold(struct net_device *dev,
struct
iw_request_info
*
info
,
union
iwreq_data
*
wrqu
,
char
*
extra
)
{
u16
threshold
;
u16
threshold
;
/* size checked: it is u16 */
struct
wl3501_card
*
this
=
(
struct
wl3501_card
*
)
dev
->
priv
;
int
rc
=
wl3501_get_mib_value
(
this
,
WL3501_MIB_ATTR_RTS_THRESHOLD
,
&
threshold
,
sizeof
(
threshold
));
...
...
@@ -1792,7 +1790,7 @@ static int wl3501_get_frag_threshold(struct net_device *dev,
struct
iw_request_info
*
info
,
union
iwreq_data
*
wrqu
,
char
*
extra
)
{
u16
threshold
;
u16
threshold
;
/* size checked: it is u16 */
struct
wl3501_card
*
this
=
(
struct
wl3501_card
*
)
dev
->
priv
;
int
rc
=
wl3501_get_mib_value
(
this
,
WL3501_MIB_ATTR_FRAG_THRESHOLD
,
&
threshold
,
sizeof
(
threshold
));
...
...
@@ -1830,7 +1828,7 @@ static int wl3501_get_retry(struct net_device *dev,
struct
iw_request_info
*
info
,
union
iwreq_data
*
wrqu
,
char
*
extra
)
{
u16
retry
;
u16
retry
;
/* size checked: it is u16 */
struct
wl3501_card
*
this
=
(
struct
wl3501_card
*
)
dev
->
priv
;
int
rc
=
wl3501_get_mib_value
(
this
,
WL3501_MIB_ATTR_LONG_RETRY_LIMIT
,
...
...
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