2007-02-10 14:25:27 +00:00
|
|
|
/* Copyright (C) 2006, Red Hat, Inc. */
|
|
|
|
|
|
|
|
#ifndef _WLAN_ASSOC_H_
|
|
|
|
#define _WLAN_ASSOC_H_
|
|
|
|
|
|
|
|
#include "dev.h"
|
|
|
|
|
2007-05-25 03:41:15 +00:00
|
|
|
void libertas_association_worker(struct work_struct *work);
|
2007-02-10 14:25:27 +00:00
|
|
|
|
|
|
|
struct assoc_request * wlan_get_association_request(wlan_adapter *adapter);
|
|
|
|
|
2007-05-30 16:14:34 +00:00
|
|
|
void libertas_sync_channel(struct work_struct *work);
|
|
|
|
|
2007-02-10 14:25:27 +00:00
|
|
|
#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);
|
2007-08-02 17:19:04 +00:00
|
|
|
queue_delayed_work(priv->work_thread, &priv->assoc_work, ASSOC_DELAY);
|
2007-02-10 14:25:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void wlan_cancel_association_work(wlan_private *priv)
|
|
|
|
{
|
|
|
|
cancel_delayed_work(&priv->assoc_work);
|
2007-05-25 21:09:41 +00:00
|
|
|
if (priv->adapter->pending_assoc_req) {
|
|
|
|
kfree(priv->adapter->pending_assoc_req);
|
|
|
|
priv->adapter->pending_assoc_req = NULL;
|
2007-02-10 14:25:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _WLAN_ASSOC_H */
|