Renamed nelink_init() to indicate_init() and added indicate_shutdown().

This commit is contained in:
mark 2000-01-12 21:40:30 +00:00
parent 7984d93fc7
commit 18262f1820
2 changed files with 34 additions and 4 deletions

View file

@ -57,6 +57,7 @@
#include <wlan/p80211conv.h>
#include <wlan/p80211msg.h>
#include <wlan/p80211netdev.h>
#include <wlan/p80211req.h>
/*================================================================*/
/* Local Constants */
@ -120,7 +121,7 @@ int init_module(void)
printk(KERN_NOTICE "%s Loaded\n", version);
p80211netdev_startup();
p80211netlink_init();
p80211indicate_init();
DBFEXIT;
return 0;
@ -150,6 +151,7 @@ void cleanup_module(void)
{
DBFENTER;
p80211indicate_shutdown();
printk(KERN_NOTICE "%s Unloaded\n", version);
DBFEXIT;

View file

@ -265,8 +265,7 @@ void p80211req_confirm(wlandevice_t *wlandev)
* for sniffing and indication messages.
*
* Arguments:
* wlandev WLAN device struct
* msg message to deliver
* none
*
* Returns:
* nothing
@ -274,7 +273,7 @@ void p80211req_confirm(wlandevice_t *wlandev)
* Call context:
* Any
----------------------------------------------------------------*/
void p80211netlink_init(void)
void p80211indicate_init(void)
{
DBFENTER;
nl_indicate =
@ -287,6 +286,35 @@ void p80211netlink_init(void)
}
/*----------------------------------------------------------------
* p80211indicate_shutdown
*
* Called during the p80211 unload to get rid of our netlink
* interface.
*
* Arguments:
* none
*
* Returns:
* nothing
*
* Call context:
* Any
----------------------------------------------------------------*/
void p80211indicate_shutdown(void)
{
struct sock *nl;
DBFENTER;
nl = nl_indicate;
nl_indicate = NULL;
if ( nl != NULL ) {
sock_release(nl->socket);
}
DBFEXIT;
return;
}
/*----------------------------------------------------------------
* p80211ind_rx
*