staging: rtl8192e: remove unused functions
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 10 Mar 2015 09:44:58 +0000 (15:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 14:59:15 +0000 (15:59 +0100)
removed some functions which were not being used anywhere.
build tested and also verified by git grep that there is no other
reference to these functions.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtllib.h

index 165975ad4ce586f17b9bf578750cb872ca76cd8f..6157536e404ab22730e5f72999b57d152c8eccab 100644 (file)
@@ -117,160 +117,6 @@ void HTUpdateDefaultSetting(struct rtllib_device *ieee)
        pHTInfo->RxReorderPendingTime = 30;
 }
 
-void HTDebugHTCapability(u8 *CapIE, u8 *TitleString)
-{
-
-       static u8       EWC11NHTCap[] = {0x00, 0x90, 0x4c, 0x33};
-       struct ht_capab_ele *pCapELE;
-
-       if (!memcmp(CapIE, EWC11NHTCap, sizeof(EWC11NHTCap))) {
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "EWC IE in %s()\n", __func__);
-               pCapELE = (struct ht_capab_ele *)(&CapIE[4]);
-       } else
-               pCapELE = (struct ht_capab_ele *)(&CapIE[0]);
-
-       RTLLIB_DEBUG(RTLLIB_DL_HT, "<Log HT Capability>. Called by %s\n",
-                    TitleString);
-
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tSupported Channel Width = %s\n",
-                    (pCapELE->ChlWidth) ? "20MHz" : "20/40MHz");
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tSupport Short GI for 20M = %s\n",
-                    (pCapELE->ShortGI20Mhz) ? "YES" : "NO");
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tSupport Short GI for 40M = %s\n",
-                    (pCapELE->ShortGI40Mhz) ? "YES" : "NO");
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tSupport TX STBC = %s\n",
-                    (pCapELE->TxSTBC) ? "YES" : "NO");
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tMax AMSDU Size = %s\n",
-                    (pCapELE->MaxAMSDUSize) ? "3839" : "7935");
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tSupport CCK in 20/40 mode = %s\n",
-                    (pCapELE->DssCCk) ? "YES" : "NO");
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tMax AMPDU Factor = %d\n",
-                    pCapELE->MaxRxAMPDUFactor);
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tMPDU Density = %d\n",
-                    pCapELE->MPDUDensity);
-       RTLLIB_DEBUG(RTLLIB_DL_HT,  "\tMCS Rate Set = [%x][%x][%x][%x][%x]\n",
-                    pCapELE->MCS[0], pCapELE->MCS[1], pCapELE->MCS[2],
-                    pCapELE->MCS[3], pCapELE->MCS[4]);
-       return;
-
-}
-
-void HTDebugHTInfo(u8 *InfoIE, u8 *TitleString)
-{
-
-       static u8       EWC11NHTInfo[] = {0x00, 0x90, 0x4c, 0x34};
-       struct ht_info_ele *pHTInfoEle;
-
-       if (!memcmp(InfoIE, EWC11NHTInfo, sizeof(EWC11NHTInfo))) {
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "EWC IE in %s()\n", __func__);
-               pHTInfoEle = (struct ht_info_ele *)(&InfoIE[4]);
-       } else
-               pHTInfoEle = (struct ht_info_ele *)(&InfoIE[0]);
-
-
-       RTLLIB_DEBUG(RTLLIB_DL_HT, "<Log HT Information Element>. "
-                    "Called by %s\n", TitleString);
-
-       RTLLIB_DEBUG(RTLLIB_DL_HT, "\tPrimary channel = %d\n",
-                    pHTInfoEle->ControlChl);
-       RTLLIB_DEBUG(RTLLIB_DL_HT, "\tSenondary channel =");
-       switch (pHTInfoEle->ExtChlOffset) {
-       case 0:
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "Not Present\n");
-               break;
-       case 1:
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "Upper channel\n");
-               break;
-       case 2:
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "Reserved. Eooro!!!\n");
-               break;
-       case 3:
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "Lower Channel\n");
-               break;
-       }
-       RTLLIB_DEBUG(RTLLIB_DL_HT, "\tRecommended channel width = %s\n",
-                    (pHTInfoEle->RecommemdedTxWidth) ? "20Mhz" : "40Mhz");
-
-       RTLLIB_DEBUG(RTLLIB_DL_HT, "\tOperation mode for protection = ");
-       switch (pHTInfoEle->OptMode) {
-       case 0:
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "No Protection\n");
-               break;
-       case 1:
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "HT non-member protection mode\n");
-               break;
-       case 2:
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "Suggest to open protection\n");
-               break;
-       case 3:
-               RTLLIB_DEBUG(RTLLIB_DL_HT, "HT mixed mode\n");
-               break;
-       }
-
-       RTLLIB_DEBUG(RTLLIB_DL_HT, "\tBasic MCS Rate Set = [%x][%x][%x][%x]"
-                    "[%x]\n", pHTInfoEle->BasicMSC[0], pHTInfoEle->BasicMSC[1],
-                    pHTInfoEle->BasicMSC[2], pHTInfoEle->BasicMSC[3],
-                    pHTInfoEle->BasicMSC[4]);
-}
-
-static bool IsHTHalfNmode40Bandwidth(struct rtllib_device *ieee)
-{
-       bool                    retValue = false;
-       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
-
-       if (pHTInfo->bCurrentHTSupport == false)
-               retValue = false;
-       else if (pHTInfo->bRegBW40MHz == false)
-               retValue = false;
-       else if (!ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
-               retValue = false;
-       else if (((struct ht_capab_ele *)(pHTInfo->PeerHTCapBuf))->ChlWidth)
-               retValue = true;
-       else
-               retValue = false;
-
-       return retValue;
-}
-
-static bool IsHTHalfNmodeSGI(struct rtllib_device *ieee, bool is40MHz)
-{
-       bool                    retValue = false;
-       struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
-
-       if (pHTInfo->bCurrentHTSupport == false)
-               retValue = false;
-       else if (!ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
-               retValue = false;
-       else if (is40MHz) {
-               if (((struct ht_capab_ele *)
-                   (pHTInfo->PeerHTCapBuf))->ShortGI40Mhz)
-                       retValue = true;
-               else
-                       retValue = false;
-       } else {
-               if (((struct ht_capab_ele *)
-                  (pHTInfo->PeerHTCapBuf))->ShortGI20Mhz)
-                       retValue = true;
-               else
-                       retValue = false;
-       }
-
-       return retValue;
-}
-
-u16 HTHalfMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate)
-{
-
-       u8      is40MHz;
-       u8      isShortGI;
-
-       is40MHz  =  (IsHTHalfNmode40Bandwidth(ieee)) ? 1 : 0;
-       isShortGI = (IsHTHalfNmodeSGI(ieee, is40MHz)) ? 1 : 0;
-
-       return MCS_DATA_RATE[is40MHz][isShortGI][(nMcsRate & 0x7f)];
-}
-
-
 u16 HTMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate)
 {
        struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
index cef2dc27103f30223dd08cf4ddc770d5d158b8fd..94ef8d34469b582affd6a39a311b7de912f47234 100644 (file)
@@ -2882,8 +2882,6 @@ extern int rtllib_wx_get_rts(struct rtllib_device *ieee,
                             struct iw_request_info *info,
                             union iwreq_data *wrqu, char *extra);
 #define MAX_RECEIVE_BUFFER_SIZE 9100
-extern void HTDebugHTCapability(u8 *CapIE, u8 *TitleString);
-extern void HTDebugHTInfo(u8 *InfoIE, u8 *TitleString);
 
 void HTSetConnectBwMode(struct rtllib_device *ieee,
                        enum ht_channel_width Bandwidth,
@@ -2910,7 +2908,6 @@ extern u16 MCS_DATA_RATE[2][2][77] ;
 extern u8 HTCCheck(struct rtllib_device *ieee, u8 *pFrame);
 extern void HTResetIOTSetting(struct rt_hi_throughput *pHTInfo);
 extern bool IsHTHalfNmodeAPs(struct rtllib_device *ieee);
-extern u16 HTHalfMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate);
 extern u16 HTMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate);
 extern u16  TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate);
 extern int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb);