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
ccce10df
Commit
ccce10df
authored
Jul 06, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o wl3501: kill magic numbers in cap_info, fix bss_type setting
it was only setting INFRA mode...
parent
40ec3f83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
drivers/net/wireless/wl3501.h
drivers/net/wireless/wl3501.h
+6
-0
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/wl3501_cs.c
+9
-5
No files found.
drivers/net/wireless/wl3501.h
View file @
ccce10df
...
...
@@ -187,6 +187,12 @@ enum wl3501_status {
WL3501_STATUS_ALREADY_BSS
,
};
#define WL3501_MGMT_CAPABILITY_ESS 0x0001
/* see 802.11 p.58 */
#define WL3501_MGMT_CAPABILITY_IBSS 0x0002
/* - " - */
#define WL3501_MGMT_CAPABILITY_CF_POLLABLE 0x0004
/* - " - */
#define WL3501_MGMT_CAPABILITY_CF_POLL_REQUEST 0x0008
/* - " - */
#define WL3501_MGMT_CAPABILITY_PRIVACY 0x0010
/* - " - */
#define WL3501_FREQ_DOMAIN_FCC 0x10
/* Channel 1 to 11 */
#define WL3501_FREQ_DOMAIN_IC 0x20
/* Channel 1 to 11 */
#define WL3501_FREQ_DOMAIN_ETSI 0x30
/* Channel 1 to 13 */
...
...
drivers/net/wireless/wl3501_cs.c
View file @
ccce10df
...
...
@@ -553,14 +553,18 @@ static int wl3501_mgmt_start(struct wl3501_card *this)
memcpy
((
char
*
)
signal
.
ssid
,
(
char
*
)
this
->
essid
,
WL3501_ESSID_MAX_LEN
);
memcpy
((
char
*
)
this
->
keep_essid
,
(
char
*
)
this
->
essid
,
WL3501_ESSID_MAX_LEN
);
signal
.
bss_type
=
this
->
net_type
=
IW_MODE_INFRA
?
WL3501_NET_TYPE_INFRA
:
WL3501_NET_TYPE_INFRA
;
if
(
this
->
net_type
==
IW_MODE_INFRA
)
{
signal
.
bss_type
=
WL3501_NET_TYPE_INFRA
;
signal
.
cap_info
=
WL3501_MGMT_CAPABILITY_ESS
;
}
else
{
signal
.
bss_type
=
WL3501_NET_TYPE_ADHOC
;
signal
.
cap_info
=
WL3501_MGMT_CAPABILITY_IBSS
;
}
signal
.
beacon_period
=
400
;
signal
.
dtim_period
=
1
;
signal
.
phy_pset
[
0
]
=
3
;
signal
.
phy_pset
[
1
]
=
1
;
signal
.
phy_pset
[
2
]
=
this
->
chan
;
signal
.
cap_info
=
0x02
;
signal
.
bss_basic_rate_set
[
0
]
=
0x01
;
signal
.
bss_basic_rate_set
[
1
]
=
0x02
;
signal
.
bss_basic_rate_set
[
2
]
=
0x82
;
...
...
@@ -608,9 +612,9 @@ static void wl3501_mgmt_scan_confirm(struct wl3501_card *this, u16 addr)
this
->
bss_cnt
++
;
}
}
else
if
((
this
->
net_type
==
IW_MODE_INFRA
&&
(
signal
.
cap_info
&
0x01
))
||
(
signal
.
cap_info
&
WL3501_MGMT_CAPABILITY_ESS
))
||
(
this
->
net_type
==
IW_MODE_ADHOC
&&
(
signal
.
cap_info
&
0x02
))
||
(
signal
.
cap_info
&
WL3501_MGMT_CAPABILITY_IBSS
))
||
this
->
net_type
==
IW_MODE_AUTO
)
{
if
(
!
this
->
essid
[
1
])
matchflag
=
1
;
...
...
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