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
6e1acf20
Commit
6e1acf20
authored
Jul 12, 2011
by
Larry Finger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
staging: rtl8192e: Remove dead code associated with CONFIG_MP
Signed-off-by:
Larry Finger
<
Larry.Finger@lwfinger.net
>
parent
82a7fc6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
94 deletions
+0
-94
drivers/staging/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl_core.c
+0
-25
drivers/staging/rtl8192e/rtl_wx.c
drivers/staging/rtl8192e/rtl_wx.c
+0
-69
No files found.
drivers/staging/rtl8192e/rtl_core.c
View file @
6e1acf20
...
...
@@ -1044,13 +1044,9 @@ int _rtl8192_sta_up(struct net_device *dev,bool is_silent_reset)
#endif
if
(
priv
->
rtllib
->
state
!=
RTLLIB_LINKED
)
#ifndef CONFIG_MP
rtllib_softmac_start_protocol
(
priv
->
rtllib
,
0
);
#endif
rtllib_reset_queue
(
priv
->
rtllib
);
#ifndef CONFIG_MP
watch_dog_timer_callback
((
unsigned
long
)
dev
);
#endif
if
(
!
netif_queue_stopped
(
dev
))
...
...
@@ -1411,9 +1407,6 @@ short rtl8192_init(struct net_device *dev)
struct
r8192_priv
*
priv
=
rtllib_priv
(
dev
);
memset
(
&
(
priv
->
stats
),
0
,
sizeof
(
struct
Stats
));
#ifdef CONFIG_MP
rtl8192_init_mp
(
dev
);
#endif
rtl8192_dbgp_flag_init
(
dev
);
...
...
@@ -2724,27 +2717,9 @@ int rtl8192_close(struct net_device *dev)
int
rtl8192_down
(
struct
net_device
*
dev
,
bool
shutdownrf
)
{
#ifdef CONFIG_MP
struct
r8192_priv
*
priv
=
rtllib_priv
(
dev
);
#endif
if
(
rtl8192_sta_down
(
dev
,
shutdownrf
)
==
-
1
)
return
-
1
;
#ifdef CONFIG_MP
if
(
priv
->
bCckContTx
)
{
RT_TRACE
(
COMP_DBG
,
"####RTL819X MP####stop single cck continious TX
\n
"
);
mpt_StopCckCoNtTx
(
dev
);
}
if
(
priv
->
bOfdmContTx
)
{
RT_TRACE
(
COMP_DBG
,
"####RTL819X MP####stop single ofdm continious TX
\n
"
);
mpt_StopOfdmContTx
(
dev
);
}
if
(
priv
->
bSingleCarrier
)
{
RT_TRACE
(
COMP_DBG
,
"####RTL819X MP####stop single carrier mode
\n
"
);
MPT_ProSetSingleCarrier
(
dev
,
false
);
}
#endif
return
0
;
}
...
...
drivers/staging/rtl8192e/rtl_wx.c
View file @
6e1acf20
...
...
@@ -23,10 +23,6 @@
#include "dot11d.h"
#endif
#ifdef CONFIG_MP
#include "r8192S_mp.h"
#endif
#define RATE_COUNT 12
u32
rtl8192_rates
[]
=
{
1000000
,
2000000
,
5500000
,
11000000
,
6000000
,
9000000
,
12000000
,
18000000
,
24000000
,
36000000
,
48000000
,
54000000
};
...
...
@@ -458,10 +454,6 @@ static int r8192_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
RT_RF_POWER_STATE
rtState
;
int
ret
;
#ifdef CONFIG_MP
printk
(
"######################%s(): In MP Test Can not Scan
\n
"
,
__func__
);
return
0
;
#endif
if
(
!
(
ieee
->
softmac_features
&
IEEE_SOFTMAC_SCAN
)){
if
((
ieee
->
state
>=
RTLLIB_ASSOCIATING
)
&&
(
ieee
->
state
<=
RTLLIB_ASSOCIATING_AUTHENTICATED
)){
return
0
;
...
...
@@ -567,10 +559,6 @@ static int r8192_wx_set_essid(struct net_device *dev,
if
((
rtllib_act_scanning
(
priv
->
rtllib
,
false
))
&&
!
(
priv
->
rtllib
->
softmac_features
&
IEEE_SOFTMAC_SCAN
)){
;
}
#ifdef CONFIG_MP
printk
(
"######################%s(): In MP Test Can not Set Essid
\n
"
,
__func__
);
return
0
;
#endif
if
(
priv
->
bHwRadioOff
==
true
){
printk
(
"=========>%s():hw radio off,or Rf state is eRfOff, return
\n
"
,
__func__
);
return
0
;
...
...
@@ -759,10 +747,6 @@ static int r8192_wx_set_enc(struct net_device *dev,
if
((
rtllib_act_scanning
(
priv
->
rtllib
,
false
))
&&
!
(
priv
->
rtllib
->
softmac_features
&
IEEE_SOFTMAC_SCAN
)){
;
}
#ifdef CONFIG_MP
printk
(
"######################%s(): In MP Test Can not Set Enc
\n
"
,
__func__
);
return
0
;
#endif
if
(
priv
->
bHwRadioOff
==
true
)
return
0
;
...
...
@@ -1325,48 +1309,6 @@ static const struct iw_priv_args r8192_private_args[] = {
SIOCIWFIRSTPRIV
+
0xc
,
0
,
IW_PRIV_TYPE_CHAR
|
2047
,
"adhoc_peer_list"
}
#ifdef CONFIG_MP
,
{
SIOCIWFIRSTPRIV
+
0xe
,
IW_PRIV_TYPE_INT
|
IW_PRIV_SIZE_FIXED
|
1
,
0
,
"SetChan"
}
,
{
SIOCIWFIRSTPRIV
+
0xf
,
IW_PRIV_TYPE_INT
|
IW_PRIV_SIZE_FIXED
|
1
,
0
,
"SetRate"
}
,
{
SIOCIWFIRSTPRIV
+
0x10
,
IW_PRIV_TYPE_INT
|
IW_PRIV_SIZE_FIXED
|
1
,
0
,
"SetTxPower"
}
,
{
SIOCIWFIRSTPRIV
+
0x11
,
IW_PRIV_TYPE_INT
|
IW_PRIV_SIZE_FIXED
|
1
,
0
,
"SetBW"
}
,
{
SIOCIWFIRSTPRIV
+
0x12
,
IW_PRIV_TYPE_INT
|
IW_PRIV_SIZE_FIXED
|
1
,
0
,
"TxStart"
}
,
{
SIOCIWFIRSTPRIV
+
0x13
,
IW_PRIV_TYPE_INT
|
IW_PRIV_SIZE_FIXED
|
1
,
0
,
"SetSingleCarrier"
}
,
{
SIOCIWFIRSTPRIV
+
0x14
,
IW_PRIV_TYPE_INT
|
IW_PRIV_SIZE_FIXED
|
3
,
0
,
"WriteRF"
}
,
{
SIOCIWFIRSTPRIV
+
0x15
,
IW_PRIV_TYPE_INT
|
IW_PRIV_SIZE_FIXED
|
3
,
0
,
"WriteMAC"
}
#endif
,
{
SIOCIWFIRSTPRIV
+
0x16
,
...
...
@@ -1395,16 +1337,6 @@ static iw_handler r8192_private_handler[] = {
(
iw_handler
)
r8192se_wx_set_force_lps
,
(
iw_handler
)
r8192_wx_get_adhoc_peers
,
(
iw_handler
)
NULL
,
#ifdef CONFIG_MP
(
iw_handler
)
r8192_wx_mp_set_chan
,
(
iw_handler
)
r8192_wx_mp_set_txrate
,
(
iw_handler
)
r8192_wx_mp_set_txpower
,
(
iw_handler
)
r8192_wx_mp_set_bw
,
(
iw_handler
)
r8192_wx_mp_set_txstart
,
(
iw_handler
)
r8192_wx_mp_set_singlecarrier
,
(
iw_handler
)
r8192_wx_mp_write_rf
,
(
iw_handler
)
r8192_wx_mp_write_mac
,
#else
(
iw_handler
)
NULL
,
(
iw_handler
)
NULL
,
(
iw_handler
)
NULL
,
...
...
@@ -1413,7 +1345,6 @@ static iw_handler r8192_private_handler[] = {
(
iw_handler
)
NULL
,
(
iw_handler
)
NULL
,
(
iw_handler
)
NULL
,
#endif
(
iw_handler
)
r8192_wx_set_PromiscuousMode
,
(
iw_handler
)
r8192_wx_get_PromiscuousMode
,
};
...
...
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