2007-02-10 09:25:27 -05:00
|
|
|
/* Copyright (C) 2006, Red Hat, Inc. */
|
|
|
|
|
|
|
|
#ifndef _WLAN_ASSOC_H_
|
|
|
|
#define _WLAN_ASSOC_H_
|
|
|
|
|
|
|
|
#include "dev.h"
|
|
|
|
|
2007-05-24 23:41:15 -04:00
|
|
|
void libertas_association_worker(struct work_struct *work);
|
2007-02-10 09:25:27 -05:00
|
|
|
|
|
|
|
struct assoc_request * wlan_get_association_request(wlan_adapter *adapter);
|
|
|
|
|
|
|
|
#define ASSOC_DELAY (HZ / 2)
|
|
|
|
static inline void wlan_postpone_association_work(wlan_private *priv)
|
|
|
|
{
|
|
|
|
if (priv->adapter->surpriseremoved)
|
|
|
|
return;
|
|
|
|
cancel_delayed_work(&priv->assoc_work);
|
|
|
|
queue_delayed_work(priv->assoc_thread, &priv->assoc_work, ASSOC_DELAY);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wlan_cancel_association_work(wlan_private *priv)
|
|
|
|
{
|
|
|
|
cancel_delayed_work(&priv->assoc_work);
|
|
|
|
if (priv->adapter->assoc_req) {
|
|
|
|
kfree(priv->adapter->assoc_req);
|
|
|
|
priv->adapter->assoc_req = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _WLAN_ASSOC_H */
|