staging: rtl8192e: Remove ToLegalChannel()
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Tue, 14 Jul 2015 20:04:04 +0000 (22:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 05:43:28 +0000 (22:43 -0700)
Function is not used.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/dot11d.c
drivers/staging/rtl8192e/dot11d.h

index ef9da863c3357ec33bbb856831334d74ec77f251..7f48845e71252f8a2eef1cec88bb96611e6213be 100644 (file)
@@ -190,27 +190,3 @@ void DOT11D_ScanComplete(struct rtllib_device *dev)
                break;
        }
 }
-
-int ToLegalChannel(struct rtllib_device *dev, u8 channel)
-{
-       struct rt_dot11d_info *pDot11dInfo = GET_DOT11D_INFO(dev);
-       u8 default_chn = 0;
-       u32 i;
-
-       for (i = 1; i <= MAX_CHANNEL_NUMBER; i++) {
-               if (pDot11dInfo->channel_map[i] > 0) {
-                       default_chn = i;
-                       break;
-               }
-       }
-
-       if (MAX_CHANNEL_NUMBER < channel) {
-               netdev_err(dev->dev, "%s(): Invalid Channel\n", __func__);
-               return default_chn;
-       }
-
-       if (pDot11dInfo->channel_map[channel] > 0)
-               return channel;
-
-       return default_chn;
-}
index 69e0f8f7e3f8b3e6a2eeecfd138b493c77306b31..e1c1888e282b66910c27c211b6d35dd9d2f6a306 100644 (file)
@@ -98,6 +98,5 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
                            u16 CoutryIeLen, u8 *pCoutryIe);
 u8 DOT11D_GetMaxTxPwrInDbm(struct rtllib_device *dev, u8 Channel);
 void DOT11D_ScanComplete(struct rtllib_device *dev);
-int ToLegalChannel(struct rtllib_device *dev, u8 channel);
 
 #endif