staging: rtl8188eu: Remove function nat25_db_expire()
authornavin patidar <navin.patidar@gmail.com>
Mon, 16 Jun 2014 16:05:42 +0000 (21:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:37:17 +0000 (15:37 -0700)
We've removed the code which was responsible for building NAT table,
so no use of keeping nat_db_expire().

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/include/usb_osintf.h

index e0e119cd11dd8e8142cc8ef436177d51b4f61f26..e73a784d5f178fa304e7355fe709b5c51842534e 100644 (file)
@@ -1516,7 +1516,6 @@ static void rtw_auto_scan_handler(struct adapter *padapter)
 
 void rtw_dynamic_check_timer_handlder(struct adapter *adapter)
 {
-       struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
        struct registry_priv *pregistrypriv = &adapter->registrypriv;
 
        if (!adapter)
@@ -1539,16 +1538,6 @@ void rtw_dynamic_check_timer_handlder(struct adapter *adapter)
                        rtw_auto_scan_handler(adapter);
                }
        }
-
-       rcu_read_lock();
-
-       if (rcu_dereference(adapter->pnetdev->rx_handler_data) &&
-           (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == true)) {
-               /*  expire NAT2.5 entry */
-               nat25_db_expire(adapter);
-       }
-
-       rcu_read_unlock();
 }
 
 #define RTW_SCAN_RESULT_EXPIRE 2000
index 8036c3873fda4563e052552e1091e7c70ca2f926..484411fd7411529de3ab4c03ce2ebaa84a88979d 100644 (file)
@@ -33,7 +33,6 @@ void netdev_br_init(struct net_device *netdev);
 void dhcp_flag_bcast(struct adapter *priv, struct sk_buff *skb);
 void *scdb_findEntry(struct adapter *priv, unsigned char *macAddr,
                     unsigned char *ipAddr);
-void nat25_db_expire(struct adapter *priv);
 
 int rtw_resume_process(struct adapter *padapter);