aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-13 21:05:39 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-13 21:05:39 (GMT)
commitf8b1f695617c8f00e733064f2f7570ed78719da9 (patch)
tree692355b9a0cd64fb57724d583787786a10bc487a /wpa_supplicant/ap.h
parent1b648c7e1ab9712576394242c35939768c4d4d24 (diff)
downloadhostap-f8b1f695617c8f00e733064f2f7570ed78719da9.zip
hostap-f8b1f695617c8f00e733064f2f7570ed78719da9.tar.gz
hostap-f8b1f695617c8f00e733064f2f7570ed78719da9.tar.bz2
Use generic driver events for TX status and RX reporting
Replace driver wrapper calls to hostapd_tx_status(), hostapd_rx_from_unknown_sta(), hostapd_mgmt_rx(), and hostapd_mgmt_tx_cb() with new generic driver events EVENT_TX_STATUS, EVENT_RX_FROM_UNKNOWN, and EVENT_RX_MGMT. This cleans up lot of the driver wrapper code to be less dependent on whether it is being used within wpa_supplicant AP mode or hostapd.
Diffstat (limited to 'wpa_supplicant/ap.h')
-rw-r--r--wpa_supplicant/ap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.h b/wpa_supplicant/ap.h
index 91dca8e..487de45 100644
--- a/wpa_supplicant/ap.h
+++ b/wpa_supplicant/ap.h
@@ -32,5 +32,12 @@ int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr,
char *buf, size_t buflen);
int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf,
size_t buflen, int verbose);
+void ap_tx_status(void *ctx, const u8 *addr,
+ const u8 *buf, size_t len, int ack);
+void ap_rx_from_unknown_sta(void *ctx, const struct ieee80211_hdr *hdr,
+ size_t len);
+void ap_mgmt_rx(void *ctx, u8 *buf, size_t len,
+ struct hostapd_frame_info *fi);
+void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok);
#endif /* AP_H */