Fix disconnect station in local mac.

Fix management of AC IEEE802.11 management packet to station.
This commit is contained in:
vemax78
2014-04-23 22:11:24 +02:00
parent ebb4eb0c98
commit 1c810c2d72
4 changed files with 49 additions and 81 deletions

View File

@ -767,7 +767,6 @@ uint32_t wtp_radio_add_station(struct capwap_parsed_packet* packet) {
/* */
uint32_t wtp_radio_delete_station(struct capwap_parsed_packet* packet) {
struct wtp_radio* radio;
struct station_delete_params stationparams;
struct capwap_deletestation_element* deletestation;
/* Get message elements */
@ -779,11 +778,7 @@ uint32_t wtp_radio_delete_station(struct capwap_parsed_packet* packet) {
return CAPWAP_RESULTCODE_FAILURE;
}
/* Authorize station */
memset(&stationparams, 0, sizeof(struct station_delete_params));
stationparams.address = deletestation->address;
if (wifi_station_deauthorize(radio->devicehandle, &stationparams)) {
if (wifi_station_deauthorize(radio->devicehandle, deletestation->address)) {
return CAPWAP_RESULTCODE_FAILURE;
}