1 /* Copyright (C) 2006, Red Hat, Inc. */
8 void libertas_association_worker(struct work_struct *work);
10 struct assoc_request * wlan_get_association_request(wlan_adapter *adapter);
12 #define ASSOC_DELAY (HZ / 2)
13 static inline void wlan_postpone_association_work(wlan_private *priv)
15 if (priv->adapter->surpriseremoved)
17 cancel_delayed_work(&priv->assoc_work);
18 queue_delayed_work(priv->assoc_thread, &priv->assoc_work, ASSOC_DELAY);
21 static inline void wlan_cancel_association_work(wlan_private *priv)
23 cancel_delayed_work(&priv->assoc_work);
24 if (priv->adapter->assoc_req) {
25 kfree(priv->adapter->assoc_req);
26 priv->adapter->assoc_req = NULL;
30 #endif /* _WLAN_ASSOC_H */