Renamed nelink_init() to indicate_init() and added indicate_shutdown().
This commit is contained in:
parent
7984d93fc7
commit
18262f1820
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue