forward action frames from STAs to AC

This commit is contained in:
Andreas Schultz 2016-08-28 18:18:53 +02:00
parent 6dcf8fa350
commit 4068f7d308
1 changed files with 13 additions and 1 deletions

View File

@ -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;
}
}