aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAna Rey <anarey@gmail.com>2014-03-19 06:54:54 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-19 12:30:01 -0400
commit5cd3b24908ab2a35d09ddb4de3444e74c43c4c30 (patch)
treef30cc7b1bb8ce9fa1ea023ca6465ba5200449303
parente635b0793d0d3cd8fc1d261110c981c7330cea2b (diff)
staging: rtl8192u: Delete 'DM_CTSToSelfSetting' function in r8192U_dm.c
Delete the DM_CTSToSelfSetting function that is not used in anywhere in the driver. Fix sparse warnings: drivers/staging/rtl8192u/r8192U_dm.c:2623:6: warning: symbol 'DM_CTSToSelfSetting' was not declared. Should it be static? Signed-off-by: Ana Rey <anarey@gmail.com> Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8192u/r8192U_dm.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 6d2ba8710909..c3205ad218dd 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -2644,26 +2644,6 @@ dm_CheckEdcaTurbo_EXIT:
2644 lastRxOkCnt = priv->stats.rxbytesunicast; 2644 lastRxOkCnt = priv->stats.rxbytesunicast;
2645} // dm_CheckEdcaTurbo 2645} // dm_CheckEdcaTurbo
2646 2646
2647void DM_CTSToSelfSetting(struct net_device *dev, u32 DM_Type, u32 DM_Value)
2648{
2649 struct r8192_priv *priv = ieee80211_priv((struct net_device *)dev);
2650
2651 if (DM_Type == 0) // CTS to self disable/enable
2652 {
2653 if(DM_Value > 1)
2654 DM_Value = 1;
2655 priv->ieee80211->bCTSToSelfEnable = (bool)DM_Value;
2656 //DbgPrint("pMgntInfo->bCTSToSelfEnable = %d\n", pMgntInfo->bCTSToSelfEnable);
2657 }
2658 else if(DM_Type == 1) //CTS to self Th
2659 {
2660 if(DM_Value >= 50)
2661 DM_Value = 50;
2662 priv->ieee80211->CTSToSelfTH = (u8)DM_Value;
2663 //DbgPrint("pMgntInfo->CTSToSelfTH = %d\n", pMgntInfo->CTSToSelfTH);
2664 }
2665}
2666
2667static void dm_init_ctstoself(struct net_device *dev) 2647static void dm_init_ctstoself(struct net_device *dev)
2668{ 2648{
2669 struct r8192_priv *priv = ieee80211_priv((struct net_device *)dev); 2649 struct r8192_priv *priv = ieee80211_priv((struct net_device *)dev);