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
Kirill Smelkov
linux
Commits
0f956e71
Commit
0f956e71
authored
Jul 29, 2010
by
John W. Linville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtl8180: use RTL818X_MSR_ADHOC for IBSS connection
Signed-off-by:
John W. Linville
<
linville@tuxdriver.com
>
parent
030725d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
drivers/net/wireless/rtl818x/rtl8180_dev.c
drivers/net/wireless/rtl818x/rtl8180_dev.c
+9
-6
No files found.
drivers/net/wireless/rtl818x/rtl8180_dev.c
View file @
0f956e71
...
...
@@ -790,6 +790,7 @@ static void rtl8180_bss_info_changed(struct ieee80211_hw *dev,
struct
rtl8180_priv
*
priv
=
dev
->
priv
;
struct
rtl8180_vif
*
vif_priv
;
int
i
;
u8
reg
;
vif_priv
=
(
struct
rtl8180_vif
*
)
&
vif
->
drv_priv
;
...
...
@@ -798,12 +799,14 @@ static void rtl8180_bss_info_changed(struct ieee80211_hw *dev,
rtl818x_iowrite8
(
priv
,
&
priv
->
map
->
BSSID
[
i
],
info
->
bssid
[
i
]);
if
(
is_valid_ether_addr
(
info
->
bssid
))
rtl818x_iowrite8
(
priv
,
&
priv
->
map
->
MSR
,
RTL818X_MSR_INFRA
);
else
rtl818x_iowrite8
(
priv
,
&
priv
->
map
->
MSR
,
RTL818X_MSR_NO_LINK
);
if
(
is_valid_ether_addr
(
info
->
bssid
))
{
if
(
vif
->
type
==
NL80211_IFTYPE_ADHOC
)
reg
=
RTL818X_MSR_ADHOC
;
else
reg
=
RTL818X_MSR_INFRA
;
}
else
reg
=
RTL818X_MSR_NO_LINK
;
rtl818x_iowrite8
(
priv
,
&
priv
->
map
->
MSR
,
reg
);
}
if
(
changed
&
BSS_CHANGED_ERP_SLOT
&&
priv
->
rf
->
conf_erp
)
...
...
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