From 4068f7d308ad7cd3025b14a66174f7270d1104e6 Mon Sep 17 00:00:00 2001 From: Andreas Schultz Date: Sun, 28 Aug 2016 18:18:53 +0200 Subject: [PATCH] forward action frames from STAs to AC --- src/binding/ieee80211/wifi_drivers.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/binding/ieee80211/wifi_drivers.c b/src/binding/ieee80211/wifi_drivers.c index dda2831..d129e0c 100644 --- a/src/binding/ieee80211/wifi_drivers.c +++ b/src/binding/ieee80211/wifi_drivers.c @@ -1226,6 +1226,17 @@ wifi_wlan_receive_station_mgmt_deauthentication(struct wifi_wlan* wlan, wifi_wlan_send_frame(wlan, (uint8_t*)frame, length, rssi, snr, rate); } +/* */ +static void +wifi_wlan_receive_station_mgmt_action(struct wifi_wlan* wlan, + const struct ieee80211_header_mgmt* frame, + int length, uint8_t rssi, + uint8_t snr, uint16_t rate) +{ + log_hexdump(LOG_DEBUG, "Wifi ACTION FRAME", (uint8_t *)frame, length); + wifi_wlan_send_frame(wlan, (uint8_t *)frame, length, rssi, snr, rate); +} + /* */ static void wifi_wlan_receive_station_mgmt_frame(struct wifi_wlan* wlan, @@ -1278,7 +1289,8 @@ wifi_wlan_receive_station_mgmt_frame(struct wifi_wlan* wlan, break; case IEEE80211_FRAMECONTROL_MGMT_SUBTYPE_ACTION: - /* TODO */ + wifi_wlan_receive_station_mgmt_action(wlan, frame, length, + rssi, snr, rate); break; } }