Added INC/DEC_USE for prism2 and p80211 modules.

This commit is contained in:
mark 2000-06-15 18:04:59 +00:00
parent f42a10aefd
commit 6f35799dcc
3 changed files with 17 additions and 0 deletions

View File

@ -75,6 +75,18 @@ typedef struct device netdevice_t;
typedef struct net_device netdevice_t;
#endif
#ifndef _LINUX_K_COMPAT_H
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,1))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,0,16))
#define init_waitqueue_head(p) (*(p) = NULL)
#else
#define init_waitqueue_head(p) init_waitqueue(p)
#endif
typedef struct wait_queue *wait_queue_head_t;
#endif
#endif
/* Received frame statistics */
typedef struct p80211_frmrx_t
{

View File

@ -711,6 +711,7 @@ int register_wlandev(wlandevice_t *wlandev)
}
rtnl_unlock();
MOD_INC_USE_COUNT;
DBFEXIT;
return 0;
}
@ -740,6 +741,7 @@ int unregister_wlandev(wlandevice_t *wlandev)
unregister_netdevice(wlandev->netdev);
wlandev_clear_index(wlandev);
rtnl_unlock();
MOD_DEC_USE_COUNT;
DBFEXIT;
return 0;
}

View File

@ -327,6 +327,7 @@ int prism2sta_open(wlandevice_t *wlandev)
if ( i >= HFA384x_NUMPORTS_MAX ) {
result = -ENOMEDIUM;
}
MOD_INC_USE_COUNT;
/* We don't currently have to do anything else. */
/* The setup of the MAC should have been done previously */
@ -365,6 +366,8 @@ int prism2sta_close(wlandevice_t *wlandev)
{
DBFENTER;
MOD_DEC_USE_COUNT;
/* We don't currently have to do anything else. */
/* Higher layers know we're not ready from dev->start==0 and */
/* dev->tbusy==1. Our rx path knows to not pass up received */