staging: rtl8188eu: core: rtw_ap : Remove unnecessary functions
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 29 Oct 2015 06:17:03 +0000 (11:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Drop unnecessary functions that are declared but not being used.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ap.c

index 3cdb40fea5ee7041ed253de939dbd006b786052b..e5d29fe9d4461b913e93e2c258766ea9a57e6270 100644 (file)
@@ -1240,11 +1240,6 @@ int rtw_acl_remove_sta(struct adapter *padapter, u8 *addr)
        return 0;
 }
 
-static void update_bcn_fixed_ie(struct adapter *padapter)
-{
-       DBG_88E("%s\n", __func__);
-}
-
 static void update_bcn_erpinfo_ie(struct adapter *padapter)
 {
        struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
@@ -1279,31 +1274,6 @@ static void update_bcn_erpinfo_ie(struct adapter *padapter)
        }
 }
 
-static void update_bcn_htcap_ie(struct adapter *padapter)
-{
-       DBG_88E("%s\n", __func__);
-}
-
-static void update_bcn_htinfo_ie(struct adapter *padapter)
-{
-       DBG_88E("%s\n", __func__);
-}
-
-static void update_bcn_rsn_ie(struct adapter *padapter)
-{
-       DBG_88E("%s\n", __func__);
-}
-
-static void update_bcn_wpa_ie(struct adapter *padapter)
-{
-       DBG_88E("%s\n", __func__);
-}
-
-static void update_bcn_wmm_ie(struct adapter *padapter)
-{
-       DBG_88E("%s\n", __func__);
-}
-
 static void update_bcn_wps_ie(struct adapter *padapter)
 {
        u8 *pwps_ie = NULL, *pwps_ie_src;
@@ -1354,22 +1324,12 @@ static void update_bcn_wps_ie(struct adapter *padapter)
        kfree(pbackup_remainder_ie);
 }
 
-static void update_bcn_p2p_ie(struct adapter *padapter)
-{
-}
-
 static void update_bcn_vendor_spec_ie(struct adapter *padapter, u8 *oui)
 {
        DBG_88E("%s\n", __func__);
 
-       if (!memcmp(RTW_WPA_OUI, oui, 4))
-               update_bcn_wpa_ie(padapter);
-       else if (!memcmp(WMM_OUI, oui, 4))
-               update_bcn_wmm_ie(padapter);
-       else if (!memcmp(WPS_OUI, oui, 4))
+       if (!memcmp(WPS_OUI, oui, 4))
                update_bcn_wps_ie(padapter);
-       else if (!memcmp(P2P_OUI, oui, 4))
-               update_bcn_p2p_ie(padapter);
        else
                DBG_88E("unknown OUI type!\n");
 }
@@ -1391,24 +1351,12 @@ void update_beacon(struct adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
        spin_lock_bh(&pmlmepriv->bcn_update_lock);
 
        switch (ie_id) {
-       case 0xFF:
-               update_bcn_fixed_ie(padapter);/* 8: TimeStamp, 2: Beacon Interval 2:Capability */
-               break;
        case _TIM_IE_:
                update_BCNTIM(padapter);
                break;
        case _ERPINFO_IE_:
                update_bcn_erpinfo_ie(padapter);
                break;
-       case _HT_CAPABILITY_IE_:
-               update_bcn_htcap_ie(padapter);
-               break;
-       case _RSN_IE_2_:
-               update_bcn_rsn_ie(padapter);
-               break;
-       case _HT_ADD_INFO_IE_:
-               update_bcn_htinfo_ie(padapter);
-               break;
        case _VENDOR_SPECIFIC_IE_:
                update_bcn_vendor_spec_ie(padapter, oui);
                break;
This page took 0.027624 seconds and 5 git commands to generate.