wpa_supplicant / hostapd 2.0

ieee802_11.h

Go to the documentation of this file.
00001 
00010 #ifndef IEEE802_11_H
00011 #define IEEE802_11_H
00012 
00013 struct hostapd_iface;
00014 struct hostapd_data;
00015 struct sta_info;
00016 struct hostapd_frame_info;
00017 struct ieee80211_ht_capabilities;
00018 
00019 void ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
00020                      struct hostapd_frame_info *fi);
00021 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len,
00022                         u16 stype, int ok);
00023 void ieee802_11_print_ssid(char *buf, const u8 *ssid, u8 len);
00024 #ifdef NEED_AP_MLME
00025 int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
00026 int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
00027                            char *buf, size_t buflen);
00028 #else /* NEED_AP_MLME */
00029 static inline int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf,
00030                                      size_t buflen)
00031 {
00032         return 0;
00033 }
00034 
00035 static inline int ieee802_11_get_mib_sta(struct hostapd_data *hapd,
00036                                          struct sta_info *sta,
00037                                          char *buf, size_t buflen)
00038 {
00039         return 0;
00040 }
00041 #endif /* NEED_AP_MLME */
00042 u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta,
00043                            int probe);
00044 u8 * hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid);
00045 u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid);
00046 u8 * hostapd_eid_ext_supp_rates(struct hostapd_data *hapd, u8 *eid);
00047 u8 * hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid);
00048 u8 * hostapd_eid_ht_operation(struct hostapd_data *hapd, u8 *eid);
00049 int hostapd_ht_operation_update(struct hostapd_iface *iface);
00050 void ieee802_11_send_sa_query_req(struct hostapd_data *hapd,
00051                                   const u8 *addr, const u8 *trans_id);
00052 void hostapd_get_ht_capab(struct hostapd_data *hapd,
00053                           struct ieee80211_ht_capabilities *ht_cap,
00054                           struct ieee80211_ht_capabilities *neg_ht_cap);
00055 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta,
00056                       const u8 *ht_capab, size_t ht_capab_len);
00057 void update_ht_state(struct hostapd_data *hapd, struct sta_info *sta);
00058 void hostapd_tx_status(struct hostapd_data *hapd, const u8 *addr,
00059                        const u8 *buf, size_t len, int ack);
00060 void hostapd_eapol_tx_status(struct hostapd_data *hapd, const u8 *dst,
00061                              const u8 *data, size_t len, int ack);
00062 void ieee802_11_rx_from_unknown(struct hostapd_data *hapd, const u8 *src,
00063                                 int wds);
00064 u8 * hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd,
00065                                      struct sta_info *sta, u8 *eid);
00066 void ieee802_11_sa_query_action(struct hostapd_data *hapd,
00067                                 const u8 *sa, const u8 action_type,
00068                                 const u8 *trans_id);
00069 u8 * hostapd_eid_interworking(struct hostapd_data *hapd, u8 *eid);
00070 u8 * hostapd_eid_adv_proto(struct hostapd_data *hapd, u8 *eid);
00071 u8 * hostapd_eid_roaming_consortium(struct hostapd_data *hapd, u8 *eid);
00072 u8 * hostapd_eid_time_adv(struct hostapd_data *hapd, u8 *eid);
00073 u8 * hostapd_eid_time_zone(struct hostapd_data *hapd, u8 *eid);
00074 int hostapd_update_time_adv(struct hostapd_data *hapd);
00075 void hostapd_client_poll_ok(struct hostapd_data *hapd, const u8 *addr);
00076 
00077 #endif /* IEEE802_11_H */
00078 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines