staging: rtl8188eu: Remove function netdev_br_init()
netdev_br_init() tries to find MAC address of network interface named "br0", then that MAC address is assigned to adapter->br_netdev and used by driver's NAT implementation code. Signed-off-by: navin patidar <navin.patidar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7bf08a848d
commit
85955ec98a
2 changed files with 0 additions and 29 deletions
|
|
@ -29,7 +29,6 @@ extern int rtw_mc2u_disable;
|
|||
#define USBD_HALTED(Status) ((u32)(Status) >> 30 == 3)
|
||||
|
||||
int pm_netdev_open(struct net_device *pnetdev, u8 bnormal);
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
|
|||
MODULE_AUTHOR("Realtek Semiconductor Corp.");
|
||||
MODULE_VERSION(DRIVERVERSION);
|
||||
|
||||
#define CONFIG_BR_EXT_BRNAME "br0"
|
||||
#define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
|
||||
|
||||
/* module param defaults */
|
||||
|
|
@ -1001,31 +1000,6 @@ u8 rtw_free_drv_sw(struct adapter *padapter)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
void netdev_br_init(struct net_device *netdev)
|
||||
{
|
||||
struct adapter *adapter = (struct adapter *)rtw_netdev_priv(netdev);
|
||||
|
||||
rcu_read_lock();
|
||||
|
||||
if (rcu_dereference(adapter->pnetdev->rx_handler_data)) {
|
||||
struct net_device *br_netdev;
|
||||
struct net *devnet = NULL;
|
||||
|
||||
devnet = dev_net(netdev);
|
||||
br_netdev = dev_get_by_name(devnet, CONFIG_BR_EXT_BRNAME);
|
||||
if (br_netdev) {
|
||||
memcpy(adapter->br_mac, br_netdev->dev_addr, ETH_ALEN);
|
||||
dev_put(br_netdev);
|
||||
} else {
|
||||
pr_info("%s()-%d: dev_get_by_name(%s) failed!",
|
||||
__func__, __LINE__, CONFIG_BR_EXT_BRNAME);
|
||||
}
|
||||
}
|
||||
adapter->ethBrExtInfo.addPPPoETag = 1;
|
||||
|
||||
rcu_read_unlock();
|
||||
}
|
||||
|
||||
int _netdev_open(struct net_device *pnetdev)
|
||||
{
|
||||
uint status;
|
||||
|
|
@ -1082,8 +1056,6 @@ int _netdev_open(struct net_device *pnetdev)
|
|||
else
|
||||
netif_tx_wake_all_queues(pnetdev);
|
||||
|
||||
netdev_br_init(pnetdev);
|
||||
|
||||
netdev_open_normal_process:
|
||||
RT_TRACE(_module_os_intfs_c_, _drv_info_, ("-88eu_drv - dev_open\n"));
|
||||
DBG_88E("-88eu_drv - drv_open, bup =%d\n", padapter->bup);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue