hostap.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef HOSTAP_H
  2. #define HOSTAP_H
  3. /* hostap.c */
  4. extern struct proc_dir_entry *hostap_proc;
  5. u16 hostap_tx_callback_register(local_info_t *local,
  6. void (*func)(struct sk_buff *, int ok, void *),
  7. void *data);
  8. int hostap_tx_callback_unregister(local_info_t *local, u16 idx);
  9. int hostap_set_word(struct net_device *dev, int rid, u16 val);
  10. int hostap_set_string(struct net_device *dev, int rid, const char *val);
  11. u16 hostap_get_porttype(local_info_t *local);
  12. int hostap_set_encryption(local_info_t *local);
  13. int hostap_set_antsel(local_info_t *local);
  14. int hostap_set_roaming(local_info_t *local);
  15. int hostap_set_auth_algs(local_info_t *local);
  16. void hostap_dump_rx_header(const char *name,
  17. const struct hfa384x_rx_frame *rx);
  18. void hostap_dump_tx_header(const char *name,
  19. const struct hfa384x_tx_frame *tx);
  20. int hostap_80211_header_parse(struct sk_buff *skb, unsigned char *haddr);
  21. int hostap_80211_prism_header_parse(struct sk_buff *skb, unsigned char *haddr);
  22. int hostap_80211_get_hdrlen(u16 fc);
  23. struct net_device_stats *hostap_get_stats(struct net_device *dev);
  24. void hostap_setup_dev(struct net_device *dev, local_info_t *local,
  25. int main_dev);
  26. void hostap_set_multicast_list_queue(void *data);
  27. int hostap_set_hostapd(local_info_t *local, int val, int rtnl_locked);
  28. int hostap_set_hostapd_sta(local_info_t *local, int val, int rtnl_locked);
  29. void hostap_cleanup(local_info_t *local);
  30. void hostap_cleanup_handler(void *data);
  31. struct net_device * hostap_add_interface(struct local_info *local,
  32. int type, int rtnl_locked,
  33. const char *prefix, const char *name);
  34. void hostap_remove_interface(struct net_device *dev, int rtnl_locked,
  35. int remove_from_list);
  36. int prism2_update_comms_qual(struct net_device *dev);
  37. int prism2_sta_send_mgmt(local_info_t *local, u8 *dst, u16 stype,
  38. u8 *body, size_t bodylen);
  39. int prism2_sta_deauth(local_info_t *local, u16 reason);
  40. /* hostap_proc.c */
  41. void hostap_init_proc(local_info_t *local);
  42. void hostap_remove_proc(local_info_t *local);
  43. /* hostap_info.c */
  44. void hostap_info_init(local_info_t *local);
  45. void hostap_info_process(local_info_t *local, struct sk_buff *skb);
  46. #endif /* HOSTAP_H */