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);
}
#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;
struct ifreq * rq, /* Data passed */
int cmd) /* Ioctl number */
{
+#if WIRELESS_EXT <= 12
struct iwreq * wrq = (struct iwreq *) rq;
+#endif
int ret = 0;
#ifdef DEBUG_IOCTL_TRACE
switch(cmd)
{
case SIOCETHTOOL:
- ret = netdev_ethtool_ioctl(dev, (void *) rq->ifr_data);
+ ret = wl_netdev_ethtool_ioctl(dev, (void *) rq->ifr_data);
break;
#if WIRELESS_EXT <= 12