assoc.h 752 B

123456789101112131415161718192021222324252627282930
  1. /* Copyright (C) 2006, Red Hat, Inc. */
  2. #ifndef _WLAN_ASSOC_H_
  3. #define _WLAN_ASSOC_H_
  4. #include "dev.h"
  5. void wlan_association_worker(struct work_struct *work);
  6. struct assoc_request * wlan_get_association_request(wlan_adapter *adapter);
  7. #define ASSOC_DELAY (HZ / 2)
  8. static inline void wlan_postpone_association_work(wlan_private *priv)
  9. {
  10. if (priv->adapter->surpriseremoved)
  11. return;
  12. cancel_delayed_work(&priv->assoc_work);
  13. queue_delayed_work(priv->assoc_thread, &priv->assoc_work, ASSOC_DELAY);
  14. }
  15. static inline void wlan_cancel_association_work(wlan_private *priv)
  16. {
  17. cancel_delayed_work(&priv->assoc_work);
  18. if (priv->adapter->assoc_req) {
  19. kfree(priv->adapter->assoc_req);
  20. priv->adapter->assoc_req = NULL;
  21. }
  22. }
  23. #endif /* _WLAN_ASSOC_H */