The IEEE 802.11 Management packages can be sent into CAPWAP Data Channel only
in native format
This commit is contained in:
@ -93,7 +93,7 @@ struct device_setconfiguration_params {
|
||||
};
|
||||
|
||||
/* */
|
||||
typedef void (*send_mgmtframe_to_ac)(void* param, const struct ieee80211_header_mgmt* mgmt, int mgmtlength, int leavenativeframe);
|
||||
typedef void (*send_mgmtframe_to_ac)(void* param, const struct ieee80211_header_mgmt* mgmt, int mgmtlength);
|
||||
|
||||
struct wlan_startap_params {
|
||||
send_mgmtframe_to_ac send_mgmtframe;
|
||||
|
@ -692,7 +692,7 @@ static void nl80211_do_mgmt_probe_request_event(struct nl80211_wlan_handle* wlan
|
||||
|
||||
/* If enable Split Mac send the probe request message to AC */
|
||||
if (wlanhandle->macmode == CAPWAP_ADD_WLAN_MACMODE_SPLIT) {
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength, 1);
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength);
|
||||
}
|
||||
}
|
||||
|
||||
@ -782,9 +782,9 @@ static void nl80211_do_mgmt_authentication_event(struct nl80211_wlan_handle* wla
|
||||
wlanhandle->last_cookie = wlan_params.cookie;
|
||||
|
||||
/* Notify authentication message also to AC */
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength, 1);
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength);
|
||||
} else if ((wlanhandle->macmode == CAPWAP_ADD_WLAN_MACMODE_SPLIT) && (responsestatuscode == IEEE80211_STATUS_SUCCESS)) {
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength, 1);
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength);
|
||||
}
|
||||
}
|
||||
|
||||
@ -880,7 +880,7 @@ static void nl80211_do_mgmt_disassociation_event(struct nl80211_wlan_handle* wla
|
||||
/* TODO */
|
||||
|
||||
/* Notify disassociation message also to AC */
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength, 1);
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength);
|
||||
}
|
||||
|
||||
/* */
|
||||
@ -966,9 +966,9 @@ static void nl80211_do_mgmt_association_request_event(struct nl80211_wlan_handle
|
||||
wlanhandle->last_cookie = wlan_params.cookie;
|
||||
|
||||
/* Notify association request message also to AC */
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength, 1);
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength);
|
||||
} else if ((wlanhandle->macmode == CAPWAP_ADD_WLAN_MACMODE_SPLIT) && (resultstatuscode == IEEE80211_STATUS_SUCCESS)) {
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength, 1);
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength);
|
||||
}
|
||||
}
|
||||
|
||||
@ -995,7 +995,7 @@ static void nl80211_do_mgmt_deauthentication_event(struct nl80211_wlan_handle* w
|
||||
nl80211_station_delete(wlanhandle, mgmt->sa);
|
||||
|
||||
/* Notify deauthentication message also to AC */
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength, 1);
|
||||
wlanhandle->send_mgmtframe(wlanhandle->send_mgmtframe_to_ac_cbparam, mgmt, mgmtlength);
|
||||
}
|
||||
|
||||
/* */
|
||||
|
Reference in New Issue
Block a user