|
Lines 505-518
static int proc_get_stats_tx(char *page,
|
Link Here
|
|---|
|
return len; | return len; |
} | } |
| |
|
#if WIRELESS_EXT < 21 |
|
|
static struct iw_statistics *r8180_get_wireless_stats(struct net_device *dev) | static struct iw_statistics *r8180_get_wireless_stats(struct net_device *dev) |
{ | { |
struct r8180_priv *priv = ieee80211_priv(dev); | struct r8180_priv *priv = ieee80211_priv(dev); |
| |
return &priv->wstats; | return &priv->wstats; |
} | } |
|
#endif |
| |
void rtl8180_proc_module_init(void) | void rtl8180_proc_module_init(void) |
{ | { |
|
Lines 4005-4011
static int __devinit rtl8180_pci_probe(s
|
Link Here
|
|---|
|
dev->do_ioctl = rtl8180_ioctl; | dev->do_ioctl = rtl8180_ioctl; |
dev->set_multicast_list = r8180_set_multicast; | dev->set_multicast_list = r8180_set_multicast; |
dev->set_mac_address = r8180_set_mac_adr; | dev->set_mac_address = r8180_set_mac_adr; |
|
#if WIRELESS_EXT < 21 |
dev->get_wireless_stats = r8180_get_wireless_stats; | dev->get_wireless_stats = r8180_get_wireless_stats; |
|
#endif |
dev->type=ARPHRD_ETHER; | dev->type=ARPHRD_ETHER; |
| |
if (dev_alloc_name(dev, ifname) < 0){ | if (dev_alloc_name(dev, ifname) < 0){ |