patch-2.4.21 linux-2.4.21/drivers/net/pcmcia/wavelan_cs.c
Next file: linux-2.4.21/drivers/net/pcmcia/xirc2ps_cs.c
Previous file: linux-2.4.21/drivers/net/pcmcia/smc91c92_cs.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
2003-06-13 07:51:35.000000000 -0700
- Orig file:
linux-2.4.20/drivers/net/pcmcia/wavelan_cs.c
- Orig date:
2002-11-28 15:53:14.000000000 -0800
diff -urN linux-2.4.20/drivers/net/pcmcia/wavelan_cs.c linux-2.4.21/drivers/net/pcmcia/wavelan_cs.c
@@ -707,7 +707,7 @@
while(wavepoint!=NULL)
{
- if(wavepoint->last_seen < jiffies-CELL_TIMEOUT)
+ if(time_after(jiffies, wavepoint->last_seen + CELL_TIMEOUT))
{
#ifdef WAVELAN_ROAMING_DEBUG
printk(KERN_DEBUG "WaveLAN: Bye bye %.4X\n",wavepoint->nwid);
@@ -1890,7 +1890,8 @@
}
#endif /* HISTOGRAM */
-static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
+static inline int
+wl_netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
{
u32 ethcmd;
@@ -1933,7 +1934,7 @@
#endif
if (cmd == SIOCETHTOOL)
- return netdev_ethtool_ioctl(dev, (void *) rq->ifr_data);
+ return wl_netdev_ethtool_ioctl(dev, (void *) rq->ifr_data);
/* Disable interrupts & save flags */
wv_splhi(lp, &flags);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)