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
1bb9d9a9
Commit
1bb9d9a9
authored
Jul 14, 2011
by
Larry Finger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
staging: rtl8192e: Remove dead code associated with _ENABLE_SW_BEACON
Signed-off-by:
Larry Finger
<
Larry.Finger@lwfinger.net
>
parent
76de64db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
drivers/staging/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/r8192E_dev.c
+0
-7
drivers/staging/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl_core.c
+0
-14
No files found.
drivers/staging/rtl8192e/r8192E_dev.c
View file @
1bb9d9a9
...
@@ -2052,17 +2052,10 @@ rtl8192_InitializeVariables(struct net_device *dev)
...
@@ -2052,17 +2052,10 @@ rtl8192_InitializeVariables(struct net_device *dev)
strcpy
(
priv
->
nick
,
"rtl8192E"
);
strcpy
(
priv
->
nick
,
"rtl8192E"
);
#ifdef _ENABLE_SW_BEACON
priv
->
rtllib
->
softmac_features
=
IEEE_SOFTMAC_SCAN
|
IEEE_SOFTMAC_ASSOCIATE
|
IEEE_SOFTMAC_PROBERQ
|
IEEE_SOFTMAC_PROBERS
|
IEEE_SOFTMAC_TX_QUEUE
|
IEEE_SOFTMAC_BEACONS
;
#else
priv
->
rtllib
->
softmac_features
=
IEEE_SOFTMAC_SCAN
|
priv
->
rtllib
->
softmac_features
=
IEEE_SOFTMAC_SCAN
|
IEEE_SOFTMAC_ASSOCIATE
|
IEEE_SOFTMAC_PROBERQ
|
IEEE_SOFTMAC_ASSOCIATE
|
IEEE_SOFTMAC_PROBERQ
|
IEEE_SOFTMAC_PROBERS
|
IEEE_SOFTMAC_TX_QUEUE
/* |
IEEE_SOFTMAC_PROBERS
|
IEEE_SOFTMAC_TX_QUEUE
/* |
IEEE_SOFTMAC_BEACONS*/
;
IEEE_SOFTMAC_BEACONS*/
;
#endif
priv
->
rtllib
->
tx_headroom
=
sizeof
(
TX_FWINFO_8190PCI
);
priv
->
rtllib
->
tx_headroom
=
sizeof
(
TX_FWINFO_8190PCI
);
...
...
drivers/staging/rtl8192e/rtl_core.c
View file @
1bb9d9a9
...
@@ -1136,13 +1136,8 @@ static void rtl8192_init_priv_handler(struct net_device* dev)
...
@@ -1136,13 +1136,8 @@ static void rtl8192_init_priv_handler(struct net_device* dev)
priv
->
rtllib
->
SetBWModeHandler
=
rtl8192_SetBWMode
;
priv
->
rtllib
->
SetBWModeHandler
=
rtl8192_SetBWMode
;
priv
->
rf_set_chan
=
rtl8192_phy_SwChnl
;
priv
->
rf_set_chan
=
rtl8192_phy_SwChnl
;
#ifdef _ENABLE_SW_BEACON
priv
->
rtllib
->
start_send_beacons
=
NULL
;
priv
->
rtllib
->
stop_send_beacons
=
NULL
;
#else
priv
->
rtllib
->
start_send_beacons
=
rtl8192e_start_beacon
;
priv
->
rtllib
->
start_send_beacons
=
rtl8192e_start_beacon
;
priv
->
rtllib
->
stop_send_beacons
=
rtl8192_stop_beacon
;
priv
->
rtllib
->
stop_send_beacons
=
rtl8192_stop_beacon
;
#endif
priv
->
rtllib
->
sta_wake_up
=
rtl8192_hw_wakeup
;
priv
->
rtllib
->
sta_wake_up
=
rtl8192_hw_wakeup
;
priv
->
rtllib
->
enter_sleep_state
=
rtl8192_hw_to_sleep
;
priv
->
rtllib
->
enter_sleep_state
=
rtl8192_hw_to_sleep
;
...
@@ -2100,11 +2095,7 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff* skb)
...
@@ -2100,11 +2095,7 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff* skb)
if
(
tcb_desc
->
queue_index
!=
BEACON_QUEUE
)
{
if
(
tcb_desc
->
queue_index
!=
BEACON_QUEUE
)
{
idx
=
(
ring
->
idx
+
skb_queue_len
(
&
ring
->
queue
))
%
ring
->
entries
;
idx
=
(
ring
->
idx
+
skb_queue_len
(
&
ring
->
queue
))
%
ring
->
entries
;
}
else
{
}
else
{
#ifdef _ENABLE_SW_BEACON
idx
=
(
ring
->
idx
+
skb_queue_len
(
&
ring
->
queue
))
%
ring
->
entries
;
#else
idx
=
0
;
idx
=
0
;
#endif
}
}
pdesc
=
&
ring
->
desc
[
idx
];
pdesc
=
&
ring
->
desc
[
idx
];
...
@@ -2843,9 +2834,6 @@ irqreturn_type rtl8192_interrupt(int irq, void *netdev, struct pt_regs *regs)
...
@@ -2843,9 +2834,6 @@ irqreturn_type rtl8192_interrupt(int irq, void *netdev, struct pt_regs *regs)
if
(
inta
&
IMR_BDOK
)
{
if
(
inta
&
IMR_BDOK
)
{
RT_TRACE
(
COMP_INTR
,
"beacon interrupt!
\n
"
);
RT_TRACE
(
COMP_INTR
,
"beacon interrupt!
\n
"
);
#ifdef _ENABLE_SW_BEACON
rtl8192_tx_isr
(
dev
,
BEACON_QUEUE
);
#endif
}
}
if
(
inta
&
IMR_MGNTDOK
)
{
if
(
inta
&
IMR_MGNTDOK
)
{
...
@@ -2880,9 +2868,7 @@ irqreturn_type rtl8192_interrupt(int irq, void *netdev, struct pt_regs *regs)
...
@@ -2880,9 +2868,7 @@ irqreturn_type rtl8192_interrupt(int irq, void *netdev, struct pt_regs *regs)
if
(
inta
&
IMR_BcnInt
)
{
if
(
inta
&
IMR_BcnInt
)
{
RT_TRACE
(
COMP_INTR
,
"prepare beacon for interrupt!
\n
"
);
RT_TRACE
(
COMP_INTR
,
"prepare beacon for interrupt!
\n
"
);
#ifndef _ENABLE_SW_BEACON
tasklet_schedule
(
&
priv
->
irq_prepare_beacon_tasklet
);
tasklet_schedule
(
&
priv
->
irq_prepare_beacon_tasklet
);
#endif
}
}
if
(
inta
&
IMR_RDU
)
{
if
(
inta
&
IMR_RDU
)
{
...
...
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