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
63c0f605
Commit
63c0f605
authored
Jun 27, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o wl3501: move some variable declaration to where they are needed
parent
da67e5a4
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 @
63c0f605
...
@@ -644,14 +644,13 @@ static int wl3501_send_pkt(struct wl3501_card *this, u8 *data, u16 len)
...
@@ -644,14 +644,13 @@ static int wl3501_send_pkt(struct wl3501_card *this, u8 *data, u16 len)
static
int
wl3501_mgmt_resync
(
struct
wl3501_card
*
this
)
static
int
wl3501_mgmt_resync
(
struct
wl3501_card
*
this
)
{
{
struct
wl3501_resync_req
signal
;
struct
wl3501_resync_req
signal
;
u16
ptr
;
int
rc
=
1
;
int
rc
=
1
;
signal
.
next_blk
=
0
;
signal
.
next_blk
=
0
;
signal
.
sig_id
=
WL3501_SIG_RESYNC_REQ
;
signal
.
sig_id
=
WL3501_SIG_RESYNC_REQ
;
if
(
wl3501_esbq_req_test
(
this
))
{
if
(
wl3501_esbq_req_test
(
this
))
{
ptr
=
wl3501_get_tx_buffer
(
this
,
sizeof
(
signal
));
u16
ptr
=
wl3501_get_tx_buffer
(
this
,
sizeof
(
signal
));
if
(
ptr
)
{
if
(
ptr
)
{
wl3501_set_to_wla
(
this
,
ptr
,
&
signal
,
sizeof
(
signal
));
wl3501_set_to_wla
(
this
,
ptr
,
&
signal
,
sizeof
(
signal
));
wl3501_esbq_req
(
this
,
&
ptr
);
wl3501_esbq_req
(
this
,
&
ptr
);
...
@@ -664,7 +663,6 @@ static int wl3501_mgmt_resync(struct wl3501_card *this)
...
@@ -664,7 +663,6 @@ static int wl3501_mgmt_resync(struct wl3501_card *this)
static
int
wl3501_mgmt_scan
(
struct
wl3501_card
*
this
,
u16
chan_time
)
static
int
wl3501_mgmt_scan
(
struct
wl3501_card
*
this
,
u16
chan_time
)
{
{
struct
wl3501_scan_req
signal
;
struct
wl3501_scan_req
signal
;
u16
ptr
;
int
rc
=
1
;
int
rc
=
1
;
signal
.
next_blk
=
0
;
signal
.
next_blk
=
0
;
...
@@ -684,7 +682,7 @@ static int wl3501_mgmt_scan(struct wl3501_card *this, u16 chan_time)
...
@@ -684,7 +682,7 @@ static int wl3501_mgmt_scan(struct wl3501_card *this, u16 chan_time)
this
->
bss_cnt
=
this
->
join_sta_bss
=
0
;
this
->
bss_cnt
=
this
->
join_sta_bss
=
0
;
if
(
wl3501_esbq_req_test
(
this
))
{
if
(
wl3501_esbq_req_test
(
this
))
{
ptr
=
wl3501_get_tx_buffer
(
this
,
sizeof
(
signal
));
u16
ptr
=
wl3501_get_tx_buffer
(
this
,
sizeof
(
signal
));
if
(
ptr
)
{
if
(
ptr
)
{
wl3501_set_to_wla
(
this
,
ptr
,
&
signal
,
sizeof
(
signal
));
wl3501_set_to_wla
(
this
,
ptr
,
&
signal
,
sizeof
(
signal
));
wl3501_esbq_req
(
this
,
&
ptr
);
wl3501_esbq_req
(
this
,
&
ptr
);
...
@@ -697,7 +695,6 @@ static int wl3501_mgmt_scan(struct wl3501_card *this, u16 chan_time)
...
@@ -697,7 +695,6 @@ static int wl3501_mgmt_scan(struct wl3501_card *this, u16 chan_time)
static
int
wl3501_mgmt_join
(
struct
wl3501_card
*
this
,
u16
stas
)
static
int
wl3501_mgmt_join
(
struct
wl3501_card
*
this
,
u16
stas
)
{
{
struct
wl3501_join_req
signal
;
struct
wl3501_join_req
signal
;
u16
ptr
;
signal
.
next_blk
=
0
;
signal
.
next_blk
=
0
;
signal
.
sig_id
=
WL3501_SIG_JOIN_REQ
;
signal
.
sig_id
=
WL3501_SIG_JOIN_REQ
;
...
@@ -706,8 +703,9 @@ static int wl3501_mgmt_join(struct wl3501_card *this, u16 stas)
...
@@ -706,8 +703,9 @@ static int wl3501_mgmt_join(struct wl3501_card *this, u16 stas)
(
char
*
)
&
(
this
->
bss_set
[
stas
].
beacon_period
),
72
);
(
char
*
)
&
(
this
->
bss_set
[
stas
].
beacon_period
),
72
);
this
->
cap_info
=
signal
.
cap_info
;
this
->
cap_info
=
signal
.
cap_info
;
this
->
chan
=
signal
.
phy_pset
[
2
];
this
->
chan
=
signal
.
phy_pset
[
2
];
if
(
wl3501_esbq_req_test
(
this
))
{
if
(
wl3501_esbq_req_test
(
this
))
{
ptr
=
wl3501_get_tx_buffer
(
this
,
sizeof
(
signal
));
u16
ptr
=
wl3501_get_tx_buffer
(
this
,
sizeof
(
signal
));
if
(
ptr
)
{
if
(
ptr
)
{
wl3501_set_to_wla
(
this
,
ptr
,
&
signal
,
sizeof
(
signal
));
wl3501_set_to_wla
(
this
,
ptr
,
&
signal
,
sizeof
(
signal
));
wl3501_esbq_req
(
this
,
&
ptr
);
wl3501_esbq_req
(
this
,
&
ptr
);
...
@@ -721,7 +719,6 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
...
@@ -721,7 +719,6 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
{
{
struct
wl3501_start_req
signal
;
struct
wl3501_start_req
signal
;
int
rc
=
1
;
int
rc
=
1
;
u16
ptr
;
signal
.
next_blk
=
0
;
signal
.
next_blk
=
0
;
signal
.
sig_id
=
WL3501_SIG_START_REQ
;
signal
.
sig_id
=
WL3501_SIG_START_REQ
;
...
@@ -746,8 +743,9 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
...
@@ -746,8 +743,9 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
signal
.
ibss_pset
[
1
]
=
2
;
signal
.
ibss_pset
[
1
]
=
2
;
signal
.
ibss_pset
[
2
]
=
10
;
signal
.
ibss_pset
[
2
]
=
10
;
signal
.
ibss_pset
[
3
]
=
0
;
signal
.
ibss_pset
[
3
]
=
0
;
if
(
wl3501_esbq_req_test
(
this
))
{
if
(
wl3501_esbq_req_test
(
this
))
{
ptr
=
wl3501_get_tx_buffer
(
this
,
sizeof
(
signal
));
u16
ptr
=
wl3501_get_tx_buffer
(
this
,
sizeof
(
signal
));
if
(
ptr
)
{
if
(
ptr
)
{
wl3501_set_to_wla
(
this
,
ptr
,
&
signal
,
sizeof
(
signal
));
wl3501_set_to_wla
(
this
,
ptr
,
&
signal
,
sizeof
(
signal
));
wl3501_esbq_req
(
this
,
&
ptr
);
wl3501_esbq_req
(
this
,
&
ptr
);
...
...
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