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
4f6807e8
Commit
4f6807e8
authored
Jul 11, 2011
by
Mike McCormack
Committed by
Larry Finger
Aug 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtl8192e: Remove occurences of #if 1
Signed-off-by:
Mike McCormack
<
mikem@ring3k.org
>
parent
3591733d
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
651 deletions
+14
-651
drivers/staging/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/r8192E_phy.c
+1
-2
drivers/staging/rtl8192e/rtl819x_TSProc.c
drivers/staging/rtl8192e/rtl819x_TSProc.c
+3
-6
drivers/staging/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl_core.c
+3
-4
drivers/staging/rtl8192e/rtl_dm.c
drivers/staging/rtl8192e/rtl_dm.c
+0
-15
drivers/staging/rtl8192e/rtl_ps.c
drivers/staging/rtl8192e/rtl_ps.c
+0
-2
drivers/staging/rtl8192e/rtllib_rx.c
drivers/staging/rtl8192e/rtllib_rx.c
+3
-616
drivers/staging/rtl8192e/rtllib_softmac.c
drivers/staging/rtl8192e/rtllib_softmac.c
+2
-2
drivers/staging/rtl8192e/rtllib_softmac_wx.c
drivers/staging/rtl8192e/rtllib_softmac_wx.c
+2
-2
drivers/staging/rtl8192e/rtllib_tx.c
drivers/staging/rtl8192e/rtllib_tx.c
+0
-2
No files found.
drivers/staging/rtl8192e/r8192E_phy.c
View file @
4f6807e8
...
...
@@ -1394,7 +1394,6 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev)
}
#if 1
switch
(
priv
->
rf_chip
)
{
case
RF_8225
:
...
...
@@ -1417,7 +1416,7 @@ void rtl8192_SetBWModeWorkItem(struct net_device *dev)
RT_TRACE
(
COMP_ERR
,
"Unknown RFChipID: %d
\n
"
,
priv
->
rf_chip
);
break
;
}
#endif
atomic_dec
(
&
(
priv
->
rtllib
->
atm_swbw
));
priv
->
SetBWModeInProgress
=
false
;
...
...
drivers/staging/rtl8192e/rtl819x_TSProc.c
View file @
4f6807e8
...
...
@@ -540,7 +540,7 @@ void RemovePeerTS(struct rtllib_device* ieee, u8* Addr)
{
PTS_COMMON_INFO
pTS
,
pTmpTS
;
printk
(
"===========>RemovePeerTS,"
MAC_FMT
"
\n
"
,
MAC_ARG
(
Addr
));
#if 1
list_for_each_entry_safe
(
pTS
,
pTmpTS
,
&
ieee
->
Tx_TS_Pending_List
,
List
)
{
if
(
memcmp
(
pTS
->
Addr
,
Addr
,
6
)
==
0
)
...
...
@@ -581,13 +581,12 @@ void RemovePeerTS(struct rtllib_device* ieee, u8* Addr)
list_add_tail
(
&
pTS
->
List
,
&
ieee
->
Rx_TS_Unused_List
);
}
}
#endif
}
void
RemoveAllTS
(
struct
rtllib_device
*
ieee
)
{
PTS_COMMON_INFO
pTS
,
pTmpTS
;
#if 1
list_for_each_entry_safe
(
pTS
,
pTmpTS
,
&
ieee
->
Tx_TS_Pending_List
,
List
)
{
RemoveTsEntry
(
ieee
,
pTS
,
TX_DIR
);
...
...
@@ -615,7 +614,6 @@ void RemoveAllTS(struct rtllib_device* ieee)
list_del_init
(
&
pTS
->
List
);
list_add_tail
(
&
pTS
->
List
,
&
ieee
->
Rx_TS_Unused_List
);
}
#endif
}
void
TsStartAddBaProcess
(
struct
rtllib_device
*
ieee
,
PTX_TS_RECORD
pTxTS
)
...
...
@@ -623,7 +621,7 @@ void TsStartAddBaProcess(struct rtllib_device* ieee, PTX_TS_RECORD pTxTS)
if
(
pTxTS
->
bAddBaReqInProgress
==
false
)
{
pTxTS
->
bAddBaReqInProgress
=
true
;
#if 1
if
(
pTxTS
->
bAddBaReqDelayed
)
{
RTLLIB_DEBUG
(
RTLLIB_DL_BA
,
"TsStartAddBaProcess(): Delayed Start ADDBA after 60 sec!!
\n
"
);
...
...
@@ -634,7 +632,6 @@ void TsStartAddBaProcess(struct rtllib_device* ieee, PTX_TS_RECORD pTxTS)
RTLLIB_DEBUG
(
RTLLIB_DL_BA
,
"TsStartAddBaProcess(): Immediately Start ADDBA now!!
\n
"
);
mod_timer
(
&
pTxTS
->
TsAddBaTimer
,
jiffies
+
10
);
}
#endif
}
else
RTLLIB_DEBUG
(
RTLLIB_DL_BA
,
"%s()==>BA timer is already added
\n
"
,
__func__
);
...
...
drivers/staging/rtl8192e/rtl_core.c
View file @
4f6807e8
...
...
@@ -398,7 +398,7 @@ MgntActSet_RF_State(
{
spin_unlock_irqrestore
(
&
priv
->
rf_ps_lock
,
flag
);
RT_TRACE
((
COMP_PS
|
COMP_RF
),
"MgntActSet_RF_State(): RF Change in progress! Wait to set..StateToSet(%d).
\n
"
,
StateToSet
);
#if 1
while
(
priv
->
RFChangeInProgress
)
{
RFWaitCounter
++
;
...
...
@@ -411,7 +411,6 @@ MgntActSet_RF_State(
return
false
;
}
}
#endif
}
else
{
...
...
@@ -2796,7 +2795,7 @@ void rtl8192_rx_normal(struct net_device *dev)
}
else
{
dev_kfree_skb_any
(
skb
);
}
#if 1
new_skb
=
dev_alloc_skb
(
priv
->
rxbuffersize
);
if
(
unlikely
(
!
new_skb
))
{
...
...
@@ -2805,7 +2804,7 @@ void rtl8192_rx_normal(struct net_device *dev)
}
skb
=
new_skb
;
skb
->
dev
=
dev
;
#endif
priv
->
rx_buf
[
rx_queue_idx
][
priv
->
rx_idx
[
rx_queue_idx
]]
=
skb
;
*
((
dma_addr_t
*
)
skb
->
cb
)
=
pci_map_single
(
priv
->
pdev
,
skb_tail_pointer_rsl
(
skb
),
priv
->
rxbuffersize
,
PCI_DMA_FROMDEVICE
);
...
...
drivers/staging/rtl8192e/rtl_dm.c
View file @
4f6807e8
...
...
@@ -469,10 +469,8 @@ static void dm_check_rate_adaptive(struct net_device * dev)
}
}
#if 1
if
(
priv
->
rtllib
->
GetHalfNmodeSupportByAPsHandler
(
dev
))
targetRATR
&=
0xf00fffff
;
#endif
currentRATR
=
read_nic_dword
(
dev
,
RATR0
);
if
(
targetRATR
!=
currentRATR
)
...
...
@@ -2983,7 +2981,6 @@ extern void dm_init_edca_turbo(struct net_device * dev)
priv
->
bis_cur_rdlstate
=
false
;
}
#if 1
static
void
dm_check_edca_turbo
(
struct
net_device
*
dev
)
{
...
...
@@ -3086,7 +3083,6 @@ static void dm_check_edca_turbo(
lastTxOkCnt
=
priv
->
stats
.
txbytesunicast
;
lastRxOkCnt
=
priv
->
stats
.
rxbytesunicast
;
}
#endif
extern
void
DM_CTSToSelfSetting
(
struct
net_device
*
dev
,
u32
DM_Type
,
u32
DM_Value
)
{
...
...
@@ -3138,18 +3134,7 @@ static void dm_ctstoself(struct net_device *dev)
}
else
{
#if 1
pHTInfo
->
IOTAction
|=
HT_IOT_ACT_FORCED_CTS2SELF
;
#else
if
(
priv
->
undecorated_smoothed_pwdb
<
priv
->
rtllib
->
CTSToSelfTH
)
{
pHTInfo
->
IOTAction
&=
~
HT_IOT_ACT_FORCED_CTS2SELF
;
}
else
if
(
priv
->
undecorated_smoothed_pwdb
>=
(
priv
->
rtllib
->
CTSToSelfTH
+
5
))
{
pHTInfo
->
IOTAction
|=
HT_IOT_ACT_FORCED_CTS2SELF
;
}
#endif
}
lastTxOkCnt
=
priv
->
stats
.
txbytesunicast
;
...
...
drivers/staging/rtl8192e/rtl_ps.c
View file @
4f6807e8
...
...
@@ -460,10 +460,8 @@ PlatformDisableASPM(struct net_device *dev)
{
struct
r8192_priv
*
priv
=
(
struct
r8192_priv
*
)
rtllib_priv
(
dev
);
PRT_POWER_SAVE_CONTROL
pPSC
=
(
PRT_POWER_SAVE_CONTROL
)(
&
(
priv
->
rtllib
->
PowerSaveControl
));
#if 1
u32
PciCfgAddrPort
=
0
;
u8
Num4Bytes
;
#endif
u8
LinkCtrlReg
;
u16
PciBridgeLinkCtrlReg
,
ASPMLevel
=
0
;
...
...
drivers/staging/rtl8192e/rtllib_rx.c
View file @
4f6807e8
This diff is collapsed.
Click to expand it.
drivers/staging/rtl8192e/rtllib_softmac.c
View file @
4f6807e8
...
...
@@ -2750,7 +2750,7 @@ void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee)
if
(
tcb_desc
->
bMulticast
)
{
ieee
->
stats
.
multicast
++
;
}
#if 1
/* if xmit available, just xmit it immediately, else just insert it to the wait queue */
for
(
i
=
0
;
i
<
txb
->
nr_frags
;
i
++
)
{
#ifdef USB_TX_DRIVER_AGGREGATION_ENABLE
...
...
@@ -2785,7 +2785,7 @@ void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee)
ieee
->
dev
,
ieee
->
rate
);
}
}
#endif
rtllib_txb_free
(
txb
);
spin_unlock_irqrestore
(
&
ieee
->
lock
,
flags
);
...
...
drivers/staging/rtl8192e/rtllib_softmac_wx.c
View file @
4f6807e8
...
...
@@ -570,7 +570,7 @@ int rtllib_wx_set_power(struct rtllib_device *ieee,
union
iwreq_data
*
wrqu
,
char
*
extra
)
{
int
ret
=
0
;
#if 1
if
(
(
!
ieee
->
sta_wake_up
)
||
(
!
ieee
->
enter_sleep_state
)
||
...
...
@@ -580,7 +580,7 @@ int rtllib_wx_set_power(struct rtllib_device *ieee,
return
-
1
;
}
#endif
down
(
&
ieee
->
wx_sem
);
if
(
wrqu
->
power
.
disabled
){
...
...
drivers/staging/rtl8192e/rtllib_tx.c
View file @
4f6807e8
...
...
@@ -978,7 +978,6 @@ int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
success:
if
(
txb
)
{
#if 1
cb_desc
*
tcb_desc
=
(
cb_desc
*
)(
txb
->
fragments
[
0
]
->
cb
+
MAX_DEV_ADDR_SIZE
);
tcb_desc
->
bTxEnableFwCalcDur
=
1
;
tcb_desc
->
priority
=
skb
->
priority
;
...
...
@@ -1086,7 +1085,6 @@ int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
rtllib_query_protectionmode
(
ieee
,
tcb_desc
,
txb
->
fragments
[
0
]);
#endif
}
#endif
}
spin_unlock_irqrestore
(
&
ieee
->
lock
,
flags
);
dev_kfree_skb_any
(
skb
);
...
...
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